You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: specs/mcp-servers/spec.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# MCP Servers
2
2
3
3
## Purpose
4
-
This spec describes the MCP server introspection API — querying a live MCP deployment for its advertised tools, resources, and prompts via the MCP protocol. All three listing endpoints support cursor-based pagination.
4
+
This spec describes the MCP server interaction API — querying a live MCP deployment for its advertised tools, resources, and prompts via the MCP protocol, as well as invoking individual tools. All three listing endpoints support cursor-based pagination.
5
5
6
6
Status: **Implemented**
7
7
@@ -49,6 +49,23 @@ Status: **Implemented**
49
49
-**WHEN**`GET /api/v1/deployments/mcp/{deploymentId}/prompts` is called
50
50
-**THEN** the list of prompts advertised by the MCP server is returned
51
51
52
+
### Requirement: Call an MCP tool on a deployment
53
+
The system SHALL invoke a specific tool on a live MCP deployment and return the result.
54
+
55
+
Status: **Implemented**
56
+
57
+
#### Scenario: Successful tool call
58
+
-**WHEN**`POST /api/v1/deployments/mcp/{deploymentId}/call-tool` is called with a valid tool name and arguments
59
+
-**THEN** the tool is invoked on the MCP server and the result is returned
60
+
61
+
#### Scenario: MCP server unreachable during tool call
62
+
-**WHEN**`POST /api/v1/deployments/mcp/{deploymentId}/call-tool` is called and the MCP server is unavailable
63
+
-**THEN** an appropriate error response is returned
64
+
65
+
#### Scenario: Non-existent deployment
66
+
-**WHEN**`POST /api/v1/deployments/mcp/{deploymentId}/call-tool` is called with an unknown deployment ID
67
+
-**THEN** the system responds with 404
68
+
52
69
### Requirement: Cursor-based pagination for MCP listings
53
70
Tools, resources, and prompts listing endpoints SHALL support cursor-based pagination via an optional `nextCursor` query parameter.
0 commit comments