{"_id":"@ansvar/uk-law-mcp","_rev":"3-98e645cee697478bd72c93b0267c7b85","name":"@ansvar/uk-law-mcp","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.0":{"name":"@ansvar/uk-law-mcp","version":"1.0.0","keywords":["mcp","model-context-protocol","ai","claude","uk-law","united-kingdom","legal","compliance","legislation-gov-uk","ansvar"],"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","_id":"@ansvar/uk-law-mcp@1.0.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/UK-law-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/UK-law-mcp/issues"},"bin":{"uk-law-mcp":"dist/index.js"},"dist":{"shasum":"c800ca9cad246048d25aa6f1d91101231345c554","tarball":"https://registry.npmjs.org/@ansvar/uk-law-mcp/-/uk-law-mcp-1.0.0.tgz","fileCount":115,"integrity":"sha512-HI1/v4q6WkJmRJx5HEDj4W0ohufKgLREPCmhDHpC5OJQmKSxMeVzdrS8h/U4orKPiP9nOCR6zRoX4fy9sp7HCw==","signatures":[{"sig":"MEYCIQD8MpeozgugLQfrQQHLykOCIhfis/RXQr/xv3hIidakOAIhAM2B5mb1APyKmUEe4YrcbnmwPnbSFRX7SB8BluJauNi/","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154706},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"f151b6187860b297f885c8406f67c39691b56aef","mcpName":"io.github.Ansvar-Systems/uk-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","check-updates":"node --import tsx scripts/check-updates.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/UK-law-mcp.git","type":"git"},"_npmVersion":"11.6.2","description":"UK Law MCP — English legislation via Model Context Protocol","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","fast-xml-parser":"^5.3.5","@vitest/coverage-v8":"^4.0.18","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/uk-law-mcp_1.0.0_1771572505762_0.19926003385046043","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/uk-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"},"1.0.2":{"name":"@ansvar/uk-law-mcp","version":"1.0.2","keywords":["mcp","model-context-protocol","ai","claude","uk-law","united-kingdom","legal","compliance","legislation-gov-uk","ansvar"],"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","_id":"@ansvar/uk-law-mcp@1.0.2","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/UK-law-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/UK-law-mcp/issues"},"bin":{"uk-law-mcp":"dist/index.js"},"dist":{"shasum":"bb7606ac39d51231a4fea0556dacb01e0058f9e9","tarball":"https://registry.npmjs.org/@ansvar/uk-law-mcp/-/uk-law-mcp-1.0.2.tgz","fileCount":115,"integrity":"sha512-BTeMvv/bsrdZj+FZI07ivUbodI5yBxTvZOKmtNaX4H6rvDTOLD05ktcaAUMbl5CETY9S9f2DHnMN60uh4HKomg==","signatures":[{"sig":"MEQCIBgiRH8vOjCEo9OxlDkJfz2YZjRDbMKWALdmbeU9jqwDAiA0BMYWrkL9el753cGnGhbXtlG8ogb+TEElXOz3S/018w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2fuk-law-mcp@1.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":154957},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"bcc11f14c46bf31cd4e560d2780188fdf8e1cbfc","mcpName":"eu.ansvar/uk-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","check-updates":"node --import tsx scripts/check-updates.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/UK-law-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"UK Law MCP — English legislation via Model Context Protocol","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","fast-xml-parser":"^5.3.5","@vitest/coverage-v8":"^4.0.18","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/uk-law-mcp_1.0.2_1771773672088_0.7827545875343112","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/uk-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-20T07:28:25.640Z","modified":"2026-05-02T05:49:46.208Z","1.0.0":"2026-02-20T07:28:25.910Z","1.0.2":"2026-02-22T15:21:12.231Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/UK-law-mcp/issues"},"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/UK-law-mcp#readme","keywords":["mcp","model-context-protocol","ai","claude","uk-law","united-kingdom","legal","compliance","legislation-gov-uk","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/UK-law-mcp.git","type":"git"},"description":"UK Law MCP — English legislation via Model Context Protocol","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# UK Law MCP\n\nProduction MCP server for UK legislation search, provision retrieval, citation validation, and EU cross-reference support.\n\n## Capabilities\n\n- `search_legislation`: FTS search over UK provisions.\n- `get_provision`: Retrieve one provision or all provisions in a statute.\n- `validate_citation`: Validate UK citations against the local database.\n- `format_citation`: Normalize citation output format.\n- `check_currency`: Check in-force status for statutes/provisions.\n- `get_eu_basis`, `get_uk_implementations`, `search_eu_implementations`\n- `get_provision_eu_basis`, `validate_eu_compliance`\n\n## Local Development\n\n```bash\nnpm ci\nnpm run build\nnpm test\n```\n\nRun stdio server:\n\n```bash\nnpm run dev\n```\n\nBuild database from seeds:\n\n```bash\nnpm run build:db\n```\n\n## Golden Contract Tests\n\nRun contract suite:\n\n```bash\nnpm run test:contract\n```\n\nNightly-mode checks (URL/hash assertions) are gated behind `CONTRACT_MODE=nightly`.\n\n## Data Freshness and Drift\n\nUpdate checker:\n\n```bash\nnpm run check-updates\n```\n\n- Exit `0`: no updates found\n- Exit `1`: updates found\n- Exit `2`: checker error\n\nDrift detector:\n\n```bash\nnpm run drift:detect\n```\n\n- Exit `0`: no drift\n- Exit `1`: detector/network errors\n- Exit `2`: drift detected\n\n## Vercel Deployment\n\n`/mcp` is served by `api/mcp.ts` (Streamable HTTP MCP transport).  \n`/health` and `/version` are served by `api/health.ts`.\n\nRequired for GitHub Actions deploy workflow:\n\n- `VERCEL_TOKEN`\n- `VERCEL_ORG_ID`\n- `VERCEL_PROJECT_ID`\n\nDeployment workflow file: `.github/workflows/vercel-deploy.yml`.\n\n## Scheduled Automation\n\n- CI + contract tests: `.github/workflows/ci.yml`\n- Daily update checks: `.github/workflows/check-updates.yml`\n- Daily drift detection: `.github/workflows/drift-detect.yml`\n","readmeFilename":"README.md"}