CODESAGEZ/MODEL CONTEXT PROTOCOL (MCP)
MCP Tool Server & JSON-RPC Gateway
Open Model Context Protocol (MCP) server implementation. Exposes repository AST traversal, automated code review, and test generation over standard JSON-RPC 2.0 transport for Claude Desktop, Cursor, and agentic workflows.
RPC-01/
ROLE: code completioncomplete_code
[ PARAMETERS SCHEMA ]
code:string
language:"python" | "typescript" | "rust" | "go" | "sql" | "java"
context:string (optional)
max_tokens:integer (default 512)
[ RETURN PAYLOAD SPEC ]
{completion: string, confidence: float, tokens_used: integer}
RPC-02/
ROLE: code reviewreview_code
[ PARAMETERS SCHEMA ]
code:string
focus:"bugs" | "security" | "performance" | "style" | "all"
[ RETURN PAYLOAD SPEC ]
{issues: Issue[], severity_summary: {high, medium, low}, corrected_code: string, score: 0-10}
RPC-03/
ROLE: testinggenerate_tests
[ PARAMETERS SCHEMA ]
code:string
framework:"pytest" | "unittest" | "jest" | "vitest" | "go test"
coverage_target:float (default 0.90)
[ RETURN PAYLOAD SPEC ]
{test_file: string, estimated_coverage: float, test_count: integer}
RPC-04/
ROLE: documentationexplain_code
[ PARAMETERS SCHEMA ]
code:string
audience:"junior" | "senior" | "non-technical" | "documentation"
include_docstring:boolean
[ RETURN PAYLOAD SPEC ]
{explanation: string, docstring: string, complexity_score: "O(n)", key_concepts: string[]}