MCP & Agents
Hosted Streamable HTTP MCP Overview
Connect coding and legal research agents to https://vidhi-mcp.shamik.app/mcp or local stdio vidhi-mcp.
Vidhi exposes a dedicated Model Context Protocol (MCP) server built on the official Python mcp==2.3.0 MCPServer framework, supporting Streamable HTTP (https://vidhi-mcp.shamik.app/mcp) and local stdio (vidhi-mcp).
Transport & Security Architecture
- Hosted Streamable HTTP Endpoint:
https://vidhi-mcp.shamik.app/mcp(local worktree slotN:http://127.0.0.1:809<N>/mcp). - Authentication: Standard
Authorization: Bearer vdh_live_<32_hex>(orvdh_test_...) passed directly from the MCP client to the server. Your key requires themcp:connectscope alongside underlyingcorpus:readorai:runscopes. - DNS-Rebinding Protection: The Streamable HTTP endpoint validates the
Originheader on incoming requests. - Delegation & Telemetry: Every MCP tool call delegates cleanly to Vidhi's
/api/v1/in/*Go API forwardingAuthorization,X-Vidhi-Client(mcp_httpormcp_stdio), andX-Vidhi-MCP-Tool. - SSE Progress Notifications: Long-running Tier B tools (
audit_adverse_order,generate_research_memo) emit MCPnotifications/progressevents over Streamable HTTP with 15-second keepalives.
Capabilities Summary
| Capability | Count | Details |
|---|---|---|
| Curated Legal Tools | 20 + 2 aliases | Discovery, Cases & Tribunals, Citator, Statutes & Sanhita 2024, 6 Tier B SOTA engines, plus search/fetch compatibility aliases |
| Resources | 4 | vidhi://guide, vidhi://in/coverage, vidhi://in/pricing, vidhi://in/cases/{case_id} |
| Prompts | 6 | Pre-built workflows for good-law verification, brief checking, IPC-to-BNS audit, counter-precedent, order audit, and notice deadlines |