M7 MCP
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| M7_DEBUG | No | Set to true to enable verbose logs on stderr. | |
| CHROMA_URL | No | ChromaDB base URL for semantic/vector memory. | http://localhost:8000 |
| OPENAI_API_KEY | Yes | OpenAI API key. Required at startup even if Hive is not used; a placeholder value is sufficient if you do not use Hive. | |
| M7_PROJECT_PATH | No | Target project directory. Optional, but setting it explicitly avoids project-path resolution surprises when multiple workspaces are open. | |
| ANTHROPIC_API_KEY | Yes | Anthropic API key. Required at startup even if Hive is not used; a placeholder value is sufficient if you do not use Hive. | |
| M7_TELEMETRY_ENDPOINT | No | Enable telemetry upload to a collector you run. Unset means nothing leaves the machine. | |
| M7_RULE_REINJECTION_THRESHOLD | No | Override the per-phase tool-call count before rules are re-injected. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| mcp_m7_analyze_taskC | Analyze task complexity and route appropriately with chaos detection, baseline audit and orchestration |
| mcp_m7_memoryC | Unified M7 Memory System - 5-level cognitive hierarchy with FogOfWar Memory Levels
Actions
|
| mcp_m7_sessionD | Unified M7 session management - status, compliance, completion, enforcement |
| mcp_m7_validateD | Unified M7 validation operations - audit, visual testing, dependencies, metrics |
| mcp_m7_scopeD | Manage task scope and prevent scope creep |
| mcp_m7_init_projectB | Initialize complete M7 ecosystem for empty projects - creates Memory Bank, .cursorrules, project structure |
| mcp_m7_check_errorsB | Check error journal to avoid repeating past mistakes |
| mcp_m7_create_structureA | [DEPRECATED v5.0] Use mcp_m7_cycle instead. Create M7 file structure for a task |
| mcp_m7_schemaC | Manage project schema (database, API, architecture) - prevents duplicate databases and maintains project consistency |
| mcp_m7_project_indexC | Automatically generate and manage PROJECT_INDEX.md file with comprehensive project information for AI assistants |
| mcp_m7_check_tech_stackC | Check technology stack for safety patterns and potential issues |
| mcp_m7_get_patternsC | Get recommended patterns and antipatterns for a specific technology |
| mcp_m7_validate_implementationC | Validate code implementation against safety patterns and best practices |
| mcp_m7_consoleC | Smart console monitoring and error capture |
| mcp_m7_contractsC | API contract registry management to prevent duplicate methods |
| mcp_m7_impactC | Code Impact Analyzer - анализ реальных изменений кода |
| mcp_m7_test_toolC | Simple test tool to verify MCP integration |
| mcp_m7_hive_coordinatorA | Orchestrate multiagent collaboration for complex tasks using M7 Hive system. v3.8.0 Features:
Use mode="dynamic" for quick expert analysis (default). Use mode="planned" for complex tasks requiring decomposition and validation. Use mode="fixed" for legacy behavior with predefined agents. |
| mcp_m7_knowledge_hubC | Manage project knowledge base - centralized documentation system with versioning and auto-sync |
| mcp_m7_safety_verifyB | Safety pipeline: detect jailbreak patterns, verify intent, check outputs. Actions: scan_input | scan_output | full_check | verify_intent | catalog_stats |
| mcp_m7_telemetryC | M7 Code Telemetry - manage consent, view statistics, help improve AI models |
| mcp_m7_style_guardianA | M7 v3.0 Style Guardian - Learn and enforce code style patterns. Actions:analyzeAnalyze a project/directory to learn style patterns.
validateValidate code against learned style profile.
checkQuick check for errors only (blocking issues).
fixAuto-fix code where possible.
learnRecord a user correction for learning.
profileGet current style profile. statsGet learning statistics. exportExport all corrections as JSON. importImport corrections from JSON.
clearClear all learned data. |
| mcp_m7_error_databaseC | M7 v3.0 Error Pattern Database - Track AI mistakes and provide preventive warnings. Actions:captureRecord an AI mistake.
checkCheck code for potential errors.
searchSearch the error database.
statsGet error statistics.
patternsList or manage error patterns.
correctRecord a correction for an error.
report_fpReport a false positive warning.
clearClear all error data. |
| mcp_m7_knowledge_graphB | Project Knowledge Graph - analyze code dependencies, detect cycles, find orphans, generate diagrams. Actions:buildBuild graph from project directory.
statusGet current graph status and summary. metricsGet detailed graph metrics (nodes, edges, coupling, cohesion, health grade). queryQuery nodes with filters.
searchSearch nodes by name.
dependenciesGet dependencies of a node.
dependentsGet dependents of a node (what depends on it).
impactAnalyze impact of changing a node or file.
cyclesDetect circular dependencies.
orphansFind orphan code (unused exports). diagramGenerate Mermaid diagram.
pathFind shortest path between two nodes.
criticalGet most critical paths (highest impact nodes).
exportExport graph to JSON. importImport graph from JSON.
clearClear the graph. |
| mcp_m7_arch_advisorB | Architectural Advisor - analyze architecture, detect antipatterns, generate C4 diagrams, suggest refactoring. Actions:
|
| mcp_m7_cross_sessionB | M7 v3.0 Cross-Session Learning - Learn from session patterns across time. Actions:statusCheck cross-session learning system status. startStart tracking a new session.
recordRecord an action in current session.
get_contextGet full project learning context for AI prompts. searchSearch relevant knowledge.
validateValidate an insight (user feedback).
ci_resultRecord CI/CD result for insight validation.
statsGet learning statistics. cleanupCleanup old/low-confidence data.
format_promptFormat context for injection into AI prompt.
|
| mcp_m7_visualizerA | M7 Context Visualizer - interactive graph visualization of code dependencies. Actions:
The visualizer shows:
Use 'start' to launch, then open the URL in browser. |
| mcp_m7_cycleB | Start or continue M7 cycle with explicit phase instructions. Use for structured task development through all 7 phases: intake → discovery → architecture → solution → impact → simulation → implementation. |
| mcp_m7_hive_historyA | Browse and load past Hive analysis reports. Use "list" to see all saved reports with dates, topics, and sizes. Use "load" with a filename to bring a full report into the conversation context. Reports are saved automatically when running mcp_m7_hive_coordinator. Use this tool to reference past analyses in follow-up discussions. |
| mcp_m7_dcceC | DCCE (Dual-Channel Content Envelope) — generate, validate, render and lint dual-channel content. Two channels: Human View (3-5 sentences for humans) and AI View (structured JSON for machines). AI stays AI, no mimicry. |
| mcp_m7_meshB | M7 Mesh — Multi-instance communication and coordination. Connects M7 instances across machines via relay server, or locally via SQLite. Remote Relay Actions (set M7_MESH_RELAY, M7_MESH_SECRET, M7_WORKSTATION):
Local Mesh Actions (legacy):
|
| mcp_m7_devopsC | DevOps registry: управление средами, валидация команд, история деплоев |
| mcp_m7_warmupC | M7 Warmup System — прогрев контекста проекта для нового чата. Загружает полную информацию о проекте и выдаёт отчёт для проверки. |
| mcp_m7_doctorC | M7 Doctor - диагностика и авто-исправление проблем с .m7/ директорией |
| mcp_m7_task_transferC | Transfer tasks when scope grows beyond original estimate |
| mcp_m7_task_graphC | View and explore the task dependency graph |
| mcp_m7_repentanceB | Litany of Unbinding — AI confesses when it deviated from M7 methodology. Record freestyle mistakes, view the Wall of Shame, track heresy statistics. |
| mcp_m7_litanyC | Litany of Ignition — Recite sacred texts from the Codex Martianus before beginning work. The Inner Litany, the Sevenfold Rite, and random wisdom from the Archmagos-Forerunner. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| m7-status | Current status and health of M7 MCP Server |
| m7-session | Information about currently active M7 sessions |
| m7-tools | Complete list of all M7 MCP tools |
| m7-memory | Current state of M7 Memory Bank system |
TDQS
Scored across 38 tools
Multiple clusters overlap heavily: mcp_m7_memory, mcp_m7_knowledge_hub, mcp_m7_cross_session, and mcp_m7_project_index all persist/retrieve project knowledge; mcp_m7_validate, mcp_m7_validate_implementation, mcp_m7_style_guardian, and mcp_m7_safety_verify all perform code checking; and mcp_m7_error_database overlaps with mcp_m7_check_errors. An agent would struggle to pick the right one among mcp_m7_hive_coordinator, mcp_m7_hive_history, mcp_m7_cycle, mcp_m7_session, and mcp_m7_task_graph without reading deep descriptions.
Every tool follows the same mcp_m7_<resource> snake_case pattern, so the set is predictable and scannable. No mixing of camelCase or verb/noun conventions.
38 tools is well beyond a comfortable surface, and several are deprecated or trivial (mcp_m7_create_structure is marked DEPRECATED, mcp_m7_test_tool is a smoke test). The scope is sprawling across memory, graphs, orchestration, mesh networking, UI, and DevOps, making the set hard to hold in context.
Coverage is genuinely broad: memory CRUD, knowledge graph build/query/export, error capture, validation, style learning, orchestration, session lifecycle, and multi-instance mesh. Minor gaps exist (task graph is view-only with no delete/update, hive history is list/load only), but agents can work around them.