Repository avatar
Cloud Platforms
v0.1.0
active

cedarlaw

io.github.CloudCorpRecords/cedarlaw

Lebanese legislation corpus: laws, articles, rulings and Gazette issues, verbatim.

Documentation

cedarlaw

An MCP server for the Lebanese legislation corpus: laws, decrees and decisions, their verbatim article texts, court rulings, Official Gazette issues, and the citation and amendment graph between them.

cedarlaw keeps no copy of the corpus. It is a forwarding client for the published Lebanese legislation MCP remote: the ten tools are registered locally with the exact definitions captured from the upstream server, and each call is forwarded upstream over a streamable-HTTP JSON-RPC session. Whatever the upstream returns — text, structured fields, an isError flag — is handed back exactly as received. The corpus itself is published legal text only; the upstream descriptions note throughout that it is not legal advice.

No account and no credentials are involved: the upstream record declares no headers, and cedarlaw never sends an Authorization header.

Tools

ToolWhat it does
search_legislationKeyword search across laws, articles, rulings and Gazette issues (Arabic, French or English).
get_lawOne text's metadata, table of contents, article list and amendment relations.
get_articleOne article's verbatim in-force text, status and amendment history.
get_law_textsThe verbatim texts of a law's articles, one page at a time.
get_rulingOne court ruling: court, number, date, panel and its text or scan reading.
get_gazette_issueOne Official Gazette issue and the texts it published.
get_linksCitation and amendment edges into or out of a law, article, ruling or issue.
list_legislationLaws, decrees and decisions listed by publication date.
list_gazette_issuesGazette issues listed by publication date.
possibly_affectedGeneral-repeal clauses that may touch a given law.

Usage

Run the stdio MCP server:

npx -y @reneturcios/cedarlaw mcp

MCP client configuration:

{
  "mcpServers": {
    "cedarlaw": {
      "command": "npx",
      "args": ["-y", "@reneturcios/cedarlaw", "mcp"]
    }
  }
}

Or call a single tool from the command line, passing its arguments as one JSON object string:

npx -y @reneturcios/cedarlaw search_legislation '{"query":"670"}'
npx -y @reneturcios/cedarlaw get_article '{"law_id":244611,"number":"212"}'
cedarlaw --version

Exit codes: 0 on success, 1 when the forwarded result is an error, 2 on usage errors.

With Docker:

docker run -i ghcr.io/cloudcorprecords/cedarlaw
docker run --rm ghcr.io/cloudcorprecords/cedarlaw get_law '{"id":244611}'

Configuration

The upstream endpoint is pinned to https://lebaneselegislation.com/mcp. It can be replaced with the LEBANESELEGISLATION_MCP_URL environment variable (a labelled reconstruction; the published remote is the default and needs no configuration).

Development

npm install
npm run build   # tsc -> dist/
npm test        # fake-fetch tests only; no live network
npm run dev     # run the CLI from source

License

MIT. See LICENSE.

NPM
@reneturcios/cedarlaw
Install Command
npm install @reneturcios/cedarlaw
Runtime: npx
OCI
ghcr.io/cloudcorprecords/cedarlaw:0.1.0
Install Command
docker pull ghcr.io/cloudcorprecords/cedarlaw:0.1.0:undefined
Runtime: docker