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
"description": "The exact name of the API as returned by 'get_api_list'",
32
+
"description": "The exact name of the API",
33
+
"optional": true,
22
34
},
23
35
"type": map[string]any{
24
36
"type": "string",
25
-
"description": "The type of the API as returned by 'get_api_list'",
37
+
"description": "Filter APIs by type. Use 'http' for REST/OpenAPI APIs, 'kafka' for AsyncAPI topics, 'ldap' for directory services, or 'mail' for SMTP/IMAP.",
"description": "The specification of the API (e.g. OpenAPI or AsyncAPI",
65
+
},
66
+
},
67
+
},
27
68
},
28
69
},
29
70
}
30
71
31
72
registerTool(server, &mcp.Tool{
32
-
Name: "get_api_spec",
33
-
Description: `Get the full API specification for a specific API.
73
+
Name: "mokapi_get_api_spec",
74
+
Description: `Retrieve API specifications from Mokapi.
34
75
35
-
This tool should be used AFTER calling 'get_api_list' to find available APIs, then call this tool with the exact 'name' and 'type'.
76
+
- DISCOVERY: Call without 'name' to get an overview of all available APIs (names and types).
77
+
- DETAILS: Call with a specific 'name' and 'type' to get the full specification (OpenAPI, AsyncAPI, etc.) including endpoints, schemas, and operations.
36
78
37
-
Returns the complete specification including endpoints, operations, and schemas.`,
38
-
InputSchema: inputSchema,
79
+
Use discovery first if you are unsure which APIs are currently mocked.`,
0 commit comments