Commit Graph

7 Commits

Author SHA1 Message Date
Jeffrey von Rotz
438f63ecc3 feat: add _citation metadata for deterministic citation pipeline (#17)
* feat: add citation metadata utility

* feat: add _citation metadata to get-provision response

* fix: add _citation to ToolResponse interface
2026-04-07 16:37:31 +02:00
Jeffrey von Rotz
d730245538 fix: apply 5 fleet-wide bug fixes (dedup, wildcard, doc-id, fallback, metadata) (#10)
- Add deduplicateResults() to search-legislation and build-legal-stance
- Upgrade fts-query with stemming, boolean passthrough, LIKE fallback, OR tier
- Use resolveDocumentId() for document_id parameter in search tools
- Disclose query_strategy and note in metadata on broadened/failed queries
- Add note and query_strategy optional fields to ResponseMetadata interface

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 09:14:17 +01:00
Jeffrey von Rotz
e5b8a78f92 fix: remove unused imports from about.ts (CI fix) 2026-03-04 10:27:54 +00:00
Jeffrey von Rotz
fac8992038 fix: align about.ts to golden standard Section 4.9 2026-03-04 09:49:24 +00:00
Mortalus
a15fe54367 feat: add HTTP transport for Docker proxy support
Adds src/http-server.ts for Streamable HTTP transport, enabling the
law-mcp-proxy to route requests to this MCP via Docker network.

Endpoints: GET /health, POST /mcp, GET /mcp, DELETE /mcp

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 08:44:56 +01:00
Mortalus
2476300c7e feat: golden-ify Israel Law MCP — census, skipIf tests, dual transport
Add data/census.json (10 laws, 135 provisions, jurisdiction IL) generated
from database.db. Rewrite golden.test.ts to golden standard pattern with
describe.skipIf guards so tests skip gracefully in CI without DB artifacts.
Update server.json to packages format with streamable-http Vercel endpoint.
Bump version to 1.1.0.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 17:30:45 +01:00
Mortalus
1e28f8a6b1 feat: production MCP server with Israeli legislation (multi-source)
Complete production implementation with shell+adapter architecture,
13 MCP tools, SQLite FTS5 search, and multi-source ingestion pipeline.

Ingestion fetches from UCI mirror, UNODC SHERLOC PDFs, and Knesset
mobile PDFs (135 provisions, 33 definitions). 3 acts with full text,
7 acts metadata-only due to gov.il/nevo.co.il access restrictions.
Knesset OData API used for metadata enrichment.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 20:40:01 +01:00