mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-17 19:03:57 +00:00
feat: add private mcp tunnel tool
This commit is contained in:
parent
cc5a9e0d73
commit
e3aee90cf4
13 changed files with 1923 additions and 614 deletions
|
|
@ -365,6 +365,69 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"/v1/sessions/{session_id}/mcp-tunnel/calls/{call_id}/response": {
|
||||
"post": {
|
||||
"tags": [
|
||||
"sessions"
|
||||
],
|
||||
"operationId": "reply_mcp_tunnel_call",
|
||||
"parameters": [
|
||||
{
|
||||
"name": "session_id",
|
||||
"in": "path",
|
||||
"description": "Session id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "call_id",
|
||||
"in": "path",
|
||||
"description": "MCP call id",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/McpTunnelToolResponseRequest"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": true
|
||||
},
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "MCP tool call responded"
|
||||
},
|
||||
"400": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"404": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/ProblemDetails"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/v1/sessions/{session_id}/messages": {
|
||||
"post": {
|
||||
"tags": [
|
||||
|
|
@ -1063,6 +1126,14 @@
|
|||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"mcpTunnel": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/McpTunnelConfig"
|
||||
}
|
||||
],
|
||||
"nullable": true
|
||||
},
|
||||
"model": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
|
|
@ -1258,6 +1329,56 @@
|
|||
"failed"
|
||||
]
|
||||
},
|
||||
"McpTunnelConfig": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"tools"
|
||||
],
|
||||
"properties": {
|
||||
"tools": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/components/schemas/McpTunnelTool"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"McpTunnelTool": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"description": {
|
||||
"type": "string",
|
||||
"nullable": true
|
||||
},
|
||||
"inputSchema": {
|
||||
"nullable": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"McpTunnelToolResponseRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"output"
|
||||
],
|
||||
"properties": {
|
||||
"content": {
|
||||
"nullable": true
|
||||
},
|
||||
"isError": {
|
||||
"type": "boolean",
|
||||
"nullable": true
|
||||
},
|
||||
"output": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"MessageRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue