Skip to content

Commit 37bd197

Browse files
committed
Fix reflection
1 parent 42c530d commit 37bd197

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/eca/features/tools/mcp.clj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
[io.modelcontextprotocol.client.transport HttpClientStreamableHttpTransport ServerParameters StdioClientTransport]
1313
[io.modelcontextprotocol.spec
1414
McpSchema$CallToolRequest
15+
McpSchema$CallToolResult
1516
McpSchema$ClientCapabilities
1617
McpSchema$Content
1718
McpSchema$GetPromptRequest
@@ -225,9 +226,9 @@
225226
client)))
226227
first)
227228
;; Synchronize on the client to prevent concurrent tool calls to the same MCP server
228-
result (locking mcp-client
229-
(.callTool ^McpSyncClient mcp-client
230-
(McpSchema$CallToolRequest. name arguments)))]
229+
^McpSchema$CallToolResult result (locking mcp-client
230+
(.callTool ^McpSyncClient mcp-client
231+
(McpSchema$CallToolRequest. name arguments)))]
231232
{:error (.isError result)
232233
:contents (mapv ->content (.content result))}))
233234

0 commit comments

Comments
 (0)