graphql-dos-shield
Cloudflare Workers MCP server: graphql-dos-shield
我该使用它吗
质量与安全性
A
基于对工具定义和协议合规性的自动分析。
上下文开销
~287token 数(工具定义)
~686 B典型响应大小
对注意力的影响极小(占 128k 上下文窗口的 0.22%)
这是每次将服务器的工具加载到模型上下文窗口时所消耗的大致 token 数。数值越高,可用于其他任务的注意力就越少。
安装
一键安装
将以下内容添加到你的 `claude_desktop_config.json` 文件中:
{
"mcpServers": {
"graphql-dos-shield": {
"url": "https://api.lazy-mac.com/graphql-dos-shield/mcp"
}
}
}远程端点
https://api.lazy-mac.com/graphql-dos-shield/mcpstreamable-http它能做什么
工具清单
工具(3)
🟢 只读🟡 写入🔴 删除⚪ 未知
🟢complexity_meter(query)
Analyze GraphQL query complexity. Returns depth, field count, list multipliers, and a risk level (LOW/MEDIUM/HIGH/CRITICAL). CRITICAL means the query should be rejected.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "GraphQL query string to analyze"
}
},
"required": [
"query"
]
}🟢rate_limiter(client_id, limit, window_ms)
Check and enforce rate limiting for a client. In-memory sliding window — state resets on cold start.
输入模式
{
"type": "object",
"properties": {
"client_id": {
"type": "string",
"description": "Unique client identifier"
},
"limit": {
"type": "integer",
"description": "Max requests per window (default: 100)"
},
"window_ms": {
"type": "integer",
"description": "Window in ms (default: 60000)"
}
},
"required": [
"client_id"
]
}🟢query_rewriter(query, max_depth, max_fields)
Text-level rewrite of an overly complex GraphQL query: strips excess nesting depth and truncates too many fields.
输入模式
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "GraphQL query to simplify"
},
"max_depth": {
"type": "integer",
"description": "Max nesting depth (default: 3)"
},
"max_fields": {
"type": "integer",
"description": "Max fields (default: 10)"
}
},
"required": [
"query"
]
}社区
证据
最近观测
已验证未记录版本3 个工具
已验证未记录版本3 个工具
已验证未记录版本3 个工具