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>
This commit is contained in:
13
backend/tests/test_mcp_development.py
Normal file
13
backend/tests/test_mcp_development.py
Normal file
@@ -0,0 +1,13 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user