Keploy
End-to-end API testing — generate and run tests from OpenAPI, curl, Postman, or real user traffic.
我该使用它吗
质量与安全性
基于对工具定义和协议合规性的自动分析。
上下文开销
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"mcp": {
"url": "https://api.keploy.io/client/v1/mcp"
}
}
}远程端点
https://api.keploy.io/client/v1/mcpstreamable-http它能做什么
工具清单
工具(7)
🔴devloop_begin_oauth_install(editor)
Start the Path B agent-walked install for the V1 flow. Returns a playbook the AI walks with the dev to land a kep_* PAT in their editor's MCP config. Current implementation routes through app.keploy.io/settings/api-keys (the existing PAT-issuance surface). The full auto-provision OAuth round-trip (browser OAuth → /auth/temp-code/exchange → /user/mcp/provision → PAT auto-pasted) lands when the enterprise-ui /auth/cli-install page is built; this tool's interface won't change when that lifts, only the underlying steps will get shorter. ABSOLUTE: this tool surfaces a public URL. Do NOT print API keys, PATs, or OAuth tokens to the conversation. The dev pastes the secret into their editor config directly; the agent never sees it.
输入模式
{
"type": "object",
"properties": {
"editor": {
"description": "Editor the dev is using (cursor / windsurf / claude-code / claude-desktop / vscode / trae). Tailors the config-path hint in the playbook. Omit if unknown.",
"type": "string"
}
},
"required": []
}🔴devloop_setup_instructions
Return the V1 "user maintains the flow" install guide — covers Path A (clipboard one-liner), Path B (agent-walked OAuth), and the keploy/api-tests/ on-disk layout V1 creates. Safe to call without authentication; call this when the dev asks 'how do I add Keploy to this repo?' or when a devloop_* tool returns missing-API-key.
输入模式
{
"type": "object",
"properties": {},
"required": []
}🔴get_auth_status
Check whether the current MCP session has a valid-looking Keploy PAT attached. Returns { authenticated, auth_header_present, hint }. Useful as a first step for an agent to decide whether to call other tools or show setup instructions — differentiates 'no header at all' from 'header present but wrong prefix / unsupported format'.
输入模式
{
"type": "object",
"properties": {},
"required": []
}🔴get_setup_instructions
Return step-by-step instructions for connecting this MCP server to Cursor, Windsurf, VS Code, Claude Desktop, Claude Code, or Trae. Safe to call without authentication — use this when the user asks 'how do I set up Keploy MCP?' or when a tool call fails with an auth error.
输入模式
{
"type": "object",
"properties": {},
"required": []
}🔴get_tool_schema(names)
Fetch the exact schema(s) for tool(s) you ALREADY know by name — e.g. names a skill/playbook gave you (getTestReportFull, updateTestCase, listTestReports, getMock, getTestCase, getApp, listApps, ...). Returns ONLY the named tools: no fuzzy matching, no unrelated tools. Use this instead of search_tools whenever you know the name — it is exact and cheap. Use search_tools only to DISCOVER names you do not already know. Returns {"tools": [{name, description, inputSchema}, ...], "not_found": [names...]}.
输入模式
{
"type": "object",
"properties": {
"names": {
"description": "Exact tool names, e.g. [\"getTestReportFull\",\"updateTestCase\"].",
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"names"
]
}🔴invoke_tool(arguments, name)
Run any Keploy tool by name. Most tools are hidden from the default list. Know the name from a skill? get its schema with get_tool_schema; don't know the name? discover it with search_tools. Then call invoke_tool with that name and an "arguments" object matching the tool's inputSchema. Example: invoke_tool {"name": "getTestReportFull", "arguments": {"appId": "...", "testRunId": "...", "fields": ["status"]}}
输入模式
{
"type": "object",
"properties": {
"arguments": {
"description": "Arguments object matching the target tool's inputSchema. Omit or pass {} for tools that take no args.",
"properties": {},
"type": "object"
},
"name": {
"description": "Exact tool name from search_tools, e.g. 'getTestReportFull'.",
"type": "string"
}
},
"required": [
"name"
]
}🔴search_tools(limit, query)
DISCOVER tool names you do NOT already know, by keyword. Most Keploy tools are hidden from the default tool list to save context. If you ALREADY know the exact name (e.g. a skill named it), call get_tool_schema instead — it is exact and far cheaper than this fuzzy search. Returns {"matches": [{name, description, inputSchema}, ...], "total_catalog": N}. Search by intent words, e.g. "test report", "mock patch", "update test case", "cloud replay branch", "record".
输入模式
{
"type": "object",
"properties": {
"limit": {
"description": "Max results (default 10).",
"type": "number"
},
"query": {
"description": "Keywords matched against tool name + description, e.g. 'test report fields' or 'mock patch'.",
"type": "string"
}
},
"required": [
"query"
]
}社区
证据