Model Context Protocol
Use it from Claude.
The Claude you already talk to reads the papers and quotes them. HalfTime's code checks every quote and applies the law. No API key, no upload to us: the model is the one in your chat.
claude.ai, Claude Desktop, any client
Add a custom connector with this URL. It works on the sample orders, or on any order text you paste into the chat.
https://halftime.prashantthakur.dev/mcp
claude mcp add --transport http halftime https://halftime.prashantthakur.dev/mcp
On your machine, with a folder of papers
The local server can also read PDFs and text files from folders you allow, and save the application as a Word file. Clone the repo and run pnpm install, then:
claude mcp add halftime --env HALFTIME_ROOTS=/path/to/papers -- \ node /path/to/HalfTime/packages/mcp/bin/halftime-mcp.mjs
{
"mcpServers": {
"halftime": {
"command": "node",
"args": ["/path/to/HalfTime/packages/mcp/bin/halftime-mcp.mjs"],
"env": { "HALFTIME_ROOTS": "/path/to/papers" }
}
}
}Then ask
“Use halftime to sweep the 12 sample orders and show me the lanes.”
“Read the papers in ~/jail-bundle with halftime. Who has crossed the Section 479 line? Draft the application in Hindi for anyone past it.”
“Here is a bail order: … Check it with halftime.”
Tools
- check_order
- Checks Claude's quotes against the order and applies Section 479: verdict, rule trace, rejected claims.
- sweep_jail
- Up to 50 orders at once, sorted into lanes, with a CSV for the DLSA.
- draft_application
- The Section 479(3) application in English or Hindi; the local server saves a .docx.
- apply_section_479
- The engine on typed-in facts, for a lawyer who already knows them.
- lookup_section
- Maximum term for an IPC, BNS or special-act section, with its source.
- list_sample_orders · get_sample_order
- Twelve constructed orders to try it on.
- list_order_files · read_order_file
- Local server only: a folder of court papers on your machine.
Claude never decides eligibility through these tools. If it quotes something that isn't in the order, or a date the quote doesn't contain, the claim is rejected and the case falls back to “can't tell”. How the law is applied.