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
# Creates tools: custom_api_request_schema and custom_make_request
15
+
docker run -e MCP_API_PREFIX=finance ...
16
+
```
17
+
-`GLOBAL_TOOL_PROMPT`: Optional text to prepend to all tool descriptions. This is crucial to make the Claude select and not select your tool accurately.
18
+
```bash
19
+
# Adds "Access to insights apis for ACME Financial Services abc.com . " to the beginning of all tool descriptions
20
+
docker run -e GLOBAL_TOOL_PROMPT="Access to insights apis for ACME Financial Services abc.com ." ...
21
+
```
22
+
8
23
## TL'DR
9
24
**Why I create this**: I want to serve my private API, whose swagger openapi docs is a few hundreds KB in size.
10
25
- Claude MCP simply error on processing these size of file
@@ -58,6 +73,8 @@ Here is the multi-instance config example. I design it so it can more flexibly u
global_tool_prompt+=' '# Add space if not already present
223
228
224
229
@server.list_tools()
225
230
asyncdefhandle_list_tools() ->list[types.Tool]:
226
231
"""List available tools"""
227
232
return [
228
233
types.Tool(
229
234
name=f"{api_prefix}_api_request_schema",
230
-
description="Get API endpoint schemas that match your intent. Returns endpoint details including path, method, parameters, and response formats.",
235
+
description=f"{global_tool_prompt}Get API endpoint schemas that match your intent. Returns endpoint details including path, method, parameters, and response formats.",
0 commit comments