Koma Gate MCP
Classify input for prompt injection and out-of-scope content with Koma Gate's LLM-based classifier.
ماذا يمكنك أن تفعل مع Koma Gate MCP؟
text(required) — the untrusted user input to classifypreset(optional) —general|code|support|reference(default: general)
التثبيت
خطوات التثبيت موجودة في التوثيق أدناه. التوثيق
التوثيق
مأخوذ من ملف README للمشروع على GitHub ويُحدَّث أسبوعيًا. تفتح الروابط على GitHub.
Koma Gate MCP
Expose Koma Gate's prompt-injection classification as an MCP tool for AI agents.
npm install koma-gate-mcp
What it does
Provides a single tool, classify_input, that an AI agent can call to check whether untrusted user text is safe and in-scope before acting on it.
Setup
Set the provider and API key:
# Provider: openai | anthropic | google | deepseek | ollama (default: google)
export KOMA_PROVIDER=google
export GEMINI_API_KEY=sk-...
Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"koma-gate": {
"command": "npx",
"args": ["-y", "koma-gate-mcp"]
}
}
}
Tool: classify_input
text(required) — the untrusted user input to classifypreset(optional) —general|code|support|reference(default: general)
Returns:
{
"allowed": true,
"in_scope": true,
"reason": "in scope",
"preset": "general",
"model": "gemini-2.5-flash"
}
Security Boundary
This is an LLM-based scope classifier, not a cryptographic prompt-injection defense. See koma-gate's README for the full security boundary and BENCHMARKS.md for evaluation results.
الأسئلة الشائعة
ما هو Koma Gate MCP؟
Classify input for prompt injection and out-of-scope content with Koma Gate's LLM-based classifier.
كيف أثبّت Koma Gate MCP؟
اتبع خطوات التثبيت في توثيقه المعروض في هذه الصفحة وفي مستودعه.
هل Koma Gate MCP مفتوح المصدر؟
نعم. شيفرته متاحة على GitHub بترخيص MIT.
من يصون Koma Gate MCP؟
ينشره swnotmetal. يدرجه AI.tn لكنه لا يصونه ولا يوصي به.
من القوائم المجتمعية awesome-mcp-servers ومستودع المشروع على GitHub. الإدراج ليس توصية: راجع شيفرة الخادم وصلاحياته قبل منحه الوصول إلى بياناتك.