Files
Agentic-OS/backend/tests/test_mcp_development.py
nearxos 6185b9b85a Initial commit: Agentic OS troubleshooting platform
Self-hosted, Docker-based agentic troubleshooting platform: FastAPI backend +
LangGraph agent, Next.js UI, tiered LLM routing (local Ollama -> Gemini ->
DeepSeek -> OpenRouter), MCP server manager, encrypted device credentials,
RBAC, audit log, project-memory + Obsidian integrations, and editable
troubleshooting decision rules tuned for the GeneseasX vessel stack.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-14 22:11:07 +03:00

14 lines
440 B
Python

from app.agent.mcp_development import is_mcp_bug_or_gap
def test_unknown_tool_is_repairable():
assert is_mcp_bug_or_gap("pfsense_get_firewall_log", "unknown tool: pfsense_get_firewall_log", None)
def test_traceback_is_repairable():
assert is_mcp_bug_or_gap("ssh_run", None, "Traceback (most recent call last):")
def test_normal_failure_not_repairable():
assert not is_mcp_bug_or_gap("ssh_run", None, "connection refused")