🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ansvar/irish-law-mcp

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ansvar/irish-law-mcp

Irish Law MCP — English legislation via Model Context Protocol

latest
Source
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

Ireland Law MCP

Production-oriented MCP server for Irish legislation, including:

  • Full-text statute/provision search
  • Provision retrieval and citation helpers
  • EU cross-reference endpoints
  • Golden contract tests
  • Scheduled freshness/drift automation
  • Vercel streamable HTTP deployment

Requirements

  • Node.js 18+ (Node 20/22 recommended)
  • npm

Local Setup

npm ci
npm run typecheck
npm run build
npm test

Run as stdio MCP server:

npm run dev

Use an explicit DB path:

IRISH_LAW_DB_PATH=/absolute/path/to/database.db npm run dev

Database Pipeline

Fetch/refresh source material:

npm run ingest

Build SQLite from seed files:

npm run build:db

EU cross-reference seed data is loaded from:

data/source/eu-references.json

Testing

Run all tests:

npm test

Run contract/golden suite only:

npm run test:contract

Nightly contract mode (enables upstream assertions):

CONTRACT_MODE=nightly npm run test:contract

Drift and Freshness Automation

Check upstream data freshness:

npm run check-updates

Detect drift against upstream hash anchors:

npm run drift:detect

Golden hash anchors are defined in fixtures/golden-hashes.json. Initialize or refresh hashes:

npm run golden:refresh-hashes

Vercel Deployment

This repo deploys /mcp (Streamable HTTP), /health, and /version.

For GitHub Actions deployment, configure repository secrets:

  • VERCEL_TOKEN
  • VERCEL_ORG_ID
  • VERCEL_PROJECT_ID

Deployment workflow:

  • .github/workflows/vercel-deploy.yml

Vercel build fetches data/database.db.gz from the GitHub release matching package version (via scripts/download-db.sh).

GitHub Workflows

  • ci.yml: build, tests, coverage, contract tests, scheduled nightly contract mode
  • check-updates.yml: daily freshness check + issue creation on detected updates
  • drift-detect.yml: nightly drift detection + issue creation on hash mismatch
  • vercel-deploy.yml: production deploy (when Vercel secrets are set)

Keywords

mcp

FAQs

Package last updated on 22 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts