PatchPilot Code Repair Gateway
Autonomous Code Repair & AST Fault Localization Model Context Protocol (MCP) server running on Vercel Serverless. Detects syntax, type, and semantic regressions in diffs and patches with anti-regression verification.
- Selected price
- $0.001 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
PatchPilot Code Repair Gateway
Prepare your request, then continue with your agent.
Selected price
$0.001 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
idintegerjsonrpcstringresultobjecttoolsobject[]annotationsobjectdestructiveHintbooleanidempotentHintbooleanopenWorldHintbooleanreadOnlyHintboolean
descriptionstringinputSchemaobjectpropertiesobjectexport_aegisobjectdefaultbooleandescriptionstringtypestring
original_filesobjectdescriptionstringtypestring
unified_diffobjectdescriptionstringtypestring
include_testsobjectdefaultbooleandescriptionstringtypestring
sourcesobjectdescriptionstringtypestring
token_budgetobjectdefaultintegerdescriptionstringtypestring
top_kobjectdefaultintegerdescriptionstringtypestring
traceback_textobjectdescriptionstringtypestring
allow_test_modificationsobjectdefaultbooleandescriptionstringtypestring
max_files_touchedobjectdefaultintegerdescriptionstringtypestring
max_lines_changedobjectdefaultintegerdescriptionstringtypestring
patched_filesobjectdescriptionstringtypestring
file_pathobjectdescriptionstringtypestring
line_numberobjectdescriptionstringtypestring
query_nameobjectdescriptionstringtypestring
requiredstring[]typestring
namestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
id?: number;
jsonrpc?: string;
result?: {
tools?: Array<{
annotations?: {
destructiveHint?: boolean;
idempotentHint?: boolean;
openWorldHint?: boolean;
readOnlyHint?: boolean;
};
description?: string;
inputSchema?: {
properties?: {
export_aegis?: {
default?: boolean;
description?: string;
type?: string;
};
original_files?: {
description?: string;
type?: string;
};
unified_diff?: {
description?: string;
type?: string;
};
include_tests?: {
default?: boolean;
description?: string;
type?: string;
};
sources?: {
description?: string;
type?: string;
};
token_budget?: {
default?: number;
description?: string;
type?: string;
};
top_k?: {
default?: number;
description?: string;
type?: string;
};
traceback_text?: {
description?: string;
type?: string;
};
allow_test_modifications?: {
default?: boolean;
description?: string;
type?: string;
};
max_files_touched?: {
default?: number;
description?: string;
type?: string;
};
max_lines_changed?: {
default?: number;
description?: string;
type?: string;
};
patched_files?: {
description?: string;
type?: string;
};
file_path?: {
description?: string;
type?: string;
};
line_number?: {
description?: string;
type?: string;
};
query_name?: {
description?: string;
type?: string;
};
};
required?: Array<string>;
type?: string;
};
name?: string;
}>;
};
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
codesphereugCurrent PatchPilot Code Repair Gateway · POST · View API reference | $0.001 / call | — | —successP50— |
- Unit price
- $0.001
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.
Total $0.1
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
No input fields are required by this API contract.
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Published documentation example. Verify the actual response after an approved call.
{
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Parse and audit a multi-file unified git diff against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008) and export canonical Nexus Aegis G5 leaf attestation.",
"inputSchema": {
"properties": {
"export_aegis": {
"default": false,
"description": "Whether to include canonical Nexus Aegis G5 attestation package in output.",
"type": "boolean"
},
"original_files": {
"description": "Optional mapping of {rel_path: original_source_code}.",
"type": "object"
},
"unified_diff": {
"description": "Multi-file unified diff string (e.g. git diff output).",
"type": "string"
}
},
"required": [
"unified_diff"
],
"type": "object"
},
"name": "audit_unified_diff"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Rank suspect Python functions/methods from a traceback or pytest failure log using hybrid Stack-Trace + AST Call-Graph + BM25 token overlap, returning minimal line-numbered AST slices within a strict token budget.",
"inputSchema": {
"properties": {
"include_tests": {
"default": false,
"description": "Whether to include test_* functions in ranked candidates.",
"type": "boolean"
},
"sources": {
"description": "Optional in-memory {rel_path: source_code} map instead of workspace_root.",
"type": "object"
},
"token_budget": {
"default": 1200,
"description": "Maximum token budget across returned AST code slices.",
"type": "integer"
},
"top_k": {
"default": 5,
"description": "Maximum number of suspect functions to return.",
"type": "integer"
},
"traceback_text": {
"description": "Raw Python traceback or pytest failure output.",
"type": "string"
}
},
"required": [
"traceback_text"
],
"type": "object"
},
"name": "localize_fault"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Evaluate a proposed patch (original vs patched files or unified diff) against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008).",
"inputSchema": {
"properties": {
"allow_test_modifications": {
"default": false,
"description": "Whether edits to test files are allowed without triggering RH001-RH002.",
"type": "boolean"
},
"max_files_touched": {
"default": 5,
"description": "Maximum number of files a candidate patch is permitted to modify.",
"type": "integer"
},
"max_lines_changed": {
"default": 250,
"description": "Maximum added plus deleted lines allowed across the patch.",
"type": "integer"
},
"original_files": {
"description": "Mapping of {rel_path: original_source_code}.",
"type": "object"
},
"patched_files": {
"description": "Mapping of {rel_path: patched_source_code}.",
"type": "object"
},
"unified_diff": {
"description": "Optional unified diff string applied onto original_files.",
"type": "string"
}
},
"required": [
"original_files"
],
"type": "object"
},
"name": "verify_patch_integrity"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Query the AST symbol table and bidirectional call graph of a workspace by symbol name or (file_path, line_number).",
"inputSchema": {
"properties": {
"file_path": {
"description": "Relative file path for line-based enclosing symbol lookup.",
"type": "string"
},
"line_number": {
"description": "1-based line number for enclosing symbol lookup.",
"type": "integer"
},
"query_name": {
"description": "Function, method, or class name to look up.",
"type": "string"
},
"sources": {
"description": "Optional in-memory {rel_path: source_code} map.",
"type": "object"
}
},
"required": [],
"type": "object"
},
"name": "inspect_ast_symbols"
}
]
}
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# PatchPilot Code Repair Gateway
Autonomous Code Repair & AST Fault Localization Model Context Protocol (MCP) server running on Vercel Serverless. Detects syntax, type, and semantic regressions in diffs and patches with anti-regression verification.
Documentation: https://openany.si/apis/6d5fc4a5-2f7a-48fe-bb9f-457c8c471179
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp
Price: $0.001 / call
Provider: codesphereug
Contract revision: 5
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "PatchPilot Code Repair Gateway",
"endpoint": "https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "1000",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Recorded upstream MCP tools/list (HTTP 200)",
"request": {
"body": {
"id": 2,
"jsonrpc": "2.0",
"method": "tools/list"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"id": 2,
"jsonrpc": "2.0",
"result": {
"tools": [
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Parse and audit a multi-file unified git diff against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008) and export canonical Nexus Aegis G5 leaf attestation.",
"inputSchema": {
"properties": {
"export_aegis": {
"default": false,
"description": "Whether to include canonical Nexus Aegis G5 attestation package in output.",
"type": "boolean"
},
"original_files": {
"description": "Optional mapping of {rel_path: original_source_code}.",
"type": "object"
},
"unified_diff": {
"description": "Multi-file unified diff string (e.g. git diff output).",
"type": "string"
}
},
"required": [
"unified_diff"
],
"type": "object"
},
"name": "audit_unified_diff"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Rank suspect Python functions/methods from a traceback or pytest failure log using hybrid Stack-Trace + AST Call-Graph + BM25 token overlap, returning minimal line-numbered AST slices within a strict token budget.",
"inputSchema": {
"properties": {
"include_tests": {
"default": false,
"description": "Whether to include test_* functions in ranked candidates.",
"type": "boolean"
},
"sources": {
"description": "Optional in-memory {rel_path: source_code} map instead of workspace_root.",
"type": "object"
},
"token_budget": {
"default": 1200,
"description": "Maximum token budget across returned AST code slices.",
"type": "integer"
},
"top_k": {
"default": 5,
"description": "Maximum number of suspect functions to return.",
"type": "integer"
},
"traceback_text": {
"description": "Raw Python traceback or pytest failure output.",
"type": "string"
}
},
"required": [
"traceback_text"
],
"type": "object"
},
"name": "localize_fault"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Evaluate a proposed patch (original vs patched files or unified diff) against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008).",
"inputSchema": {
"properties": {
"allow_test_modifications": {
"default": false,
"description": "Whether edits to test files are allowed without triggering RH001-RH002.",
"type": "boolean"
},
"max_files_touched": {
"default": 5,
"description": "Maximum number of files a candidate patch is permitted to modify.",
"type": "integer"
},
"max_lines_changed": {
"default": 250,
"description": "Maximum added plus deleted lines allowed across the patch.",
"type": "integer"
},
"original_files": {
"description": "Mapping of {rel_path: original_source_code}.",
"type": "object"
},
"patched_files": {
"description": "Mapping of {rel_path: patched_source_code}.",
"type": "object"
},
"unified_diff": {
"description": "Optional unified diff string applied onto original_files.",
"type": "string"
}
},
"required": [
"original_files"
],
"type": "object"
},
"name": "verify_patch_integrity"
},
{
"annotations": {
"destructiveHint": false,
"idempotentHint": true,
"openWorldHint": false,
"readOnlyHint": true
},
"description": "Query the AST symbol table and bidirectional call graph of a workspace by symbol name or (file_path, line_number).",
"inputSchema": {
"properties": {
"file_path": {
"description": "Relative file path for line-based enclosing symbol lookup.",
"type": "string"
},
"line_number": {
"description": "1-based line number for enclosing symbol lookup.",
"type": "integer"
},
"query_name": {
"description": "Function, method, or class name to look up.",
"type": "string"
},
"sources": {
"description": "Optional in-memory {rel_path: source_code} map.",
"type": "object"
}
},
"required": [],
"type": "object"
},
"name": "inspect_ast_symbols"
}
]
}
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Recorded upstream MCP tools/list (HTTP 200)
Published documentation example. Verify the actual response after an approved call.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/codesphereug/patchpilot/mcp' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "id": 2, "jsonrpc": "2.0", "method": "tools/list" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "id": 2, "jsonrpc": "2.0", "result": { "tools": [ { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Parse and audit a multi-file unified git diff against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008) and export canonical Nexus Aegis G5 leaf attestation.", "inputSchema": { "properties": { "export_aegis": { "default": false, "description": "Whether to include canonical Nexus Aegis G5 attestation package in output.", "type": "boolean" }, "original_files": { "description": "Optional mapping of {rel_path: original_source_code}.", "type": "object" }, "unified_diff": { "description": "Multi-file unified diff string (e.g. git diff output).", "type": "string" } }, "required": [ "unified_diff" ], "type": "object" }, "name": "audit_unified_diff" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Rank suspect Python functions/methods from a traceback or pytest failure log using hybrid Stack-Trace + AST Call-Graph + BM25 token overlap, returning minimal line-numbered AST slices within a strict token budget.", "inputSchema": { "properties": { "include_tests": { "default": false, "description": "Whether to include test_* functions in ranked candidates.", "type": "boolean" }, "sources": { "description": "Optional in-memory {rel_path: source_code} map instead of workspace_root.", "type": "object" }, "token_budget": { "default": 1200, "description": "Maximum token budget across returned AST code slices.", "type": "integer" }, "top_k": { "default": 5, "description": "Maximum number of suspect functions to return.", "type": "integer" }, "traceback_text": { "description": "Raw Python traceback or pytest failure output.", "type": "string" } }, "required": [ "traceback_text" ], "type": "object" }, "name": "localize_fault" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Evaluate a proposed patch (original vs patched files or unified diff) against 8 deterministic AST anti-reward-hacking & safety rules (RH001–RH008).", "inputSchema": { "properties": { "allow_test_modifications": { "default": false, "description": "Whether edits to test files are allowed without triggering RH001-RH002.", "type": "boolean" }, "max_files_touched": { "default": 5, "description": "Maximum number of files a candidate patch is permitted to modify.", "type": "integer" }, "max_lines_changed": { "default": 250, "description": "Maximum added plus deleted lines allowed across the patch.", "type": "integer" }, "original_files": { "description": "Mapping of {rel_path: original_source_code}.", "type": "object" }, "patched_files": { "description": "Mapping of {rel_path: patched_source_code}.", "type": "object" }, "unified_diff": { "description": "Optional unified diff string applied onto original_files.", "type": "string" } }, "required": [ "original_files" ], "type": "object" }, "name": "verify_patch_integrity" }, { "annotations": { "destructiveHint": false, "idempotentHint": true, "openWorldHint": false, "readOnlyHint": true }, "description": "Query the AST symbol table and bidirectional call graph of a workspace by symbol name or (file_path, line_number).", "inputSchema": { "properties": { "file_path": { "description": "Relative file path for line-based enclosing symbol lookup.", "type": "string" }, "line_number": { "description": "1-based line number for enclosing symbol lookup.", "type": "integer" }, "query_name": { "description": "Function, method, or class name to look up.", "type": "string" }, "sources": { "description": "Optional in-memory {rel_path: source_code} map.", "type": "object" } }, "required": [], "type": "object" }, "name": "inspect_ast_symbols" } ] } }