File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async def get_prompts() -> dict[str, ListPromptsResult]:
19
19
20
20
21
21
@router .post ("/{prompt_name}" )
22
- async def get_prompt (prompt_name : str , args : dict [str , str ] = {}) -> GetPromptResult :
22
+ async def get_prompt (prompt_name : str , args : dict [str , Any ] = {}) -> GetPromptResult :
23
23
"""Evaluate a prompt"""
24
24
25
25
client = await ClientManager .get_client_from_prompt (prompt_name )
Original file line number Diff line number Diff line change
1
+ from typing import Any
1
2
from fastapi import APIRouter , HTTPException
2
3
from mcp_bridge .mcp_clients .McpClientManager import ClientManager
3
4
from mcp .types import ListToolsResult , CallToolResult
@@ -18,7 +19,7 @@ async def get_tools() -> dict[str, ListToolsResult]:
18
19
19
20
20
21
@router .post ("/{tool_name}/call" )
21
- async def call_tool (tool_name : str , arguments : dict [str , str ] = {}) -> CallToolResult :
22
+ async def call_tool (tool_name : str , arguments : dict [str , Any ] = {}) -> CallToolResult :
22
23
"""Call a tool"""
23
24
24
25
client = await ClientManager .get_client_from_tool (tool_name )
You can’t perform that action at this time.
0 commit comments