Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
M7_DEBUGNoSet to true to enable verbose logs on stderr.
CHROMA_URLNoChromaDB base URL for semantic/vector memory.http://localhost:8000
OPENAI_API_KEYYesOpenAI API key. Required at startup even if Hive is not used; a placeholder value is sufficient if you do not use Hive.
M7_PROJECT_PATHNoTarget project directory. Optional, but setting it explicitly avoids project-path resolution surprises when multiple workspaces are open.
ANTHROPIC_API_KEYYesAnthropic API key. Required at startup even if Hive is not used; a placeholder value is sufficient if you do not use Hive.
M7_TELEMETRY_ENDPOINTNoEnable telemetry upload to a collector you run. Unset means nothing leaves the machine.
M7_RULE_REINJECTION_THRESHOLDNoOverride 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

CapabilityDetails
tools
{
  "listChanged": true
}
resources
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

  • L0 (surface): Ephemeral, seconds-minutes

  • L1 (working): Task context, hours-days

  • L2 (longterm/project): Project patterns, weeks-months

  • L3 (conceptual): Validated patterns, months-years

  • L4 (global): Universal knowledge, permanent

Actions

  • search: Cascade search L0→L4 with early stop

  • search_level: Search specific level

  • store: Store with auto-level (default L0)

  • store_at: Store at specific level

  • get: Get record by ID

  • delete: Delete record (from memory AND disk)

  • delete_bulk: Delete multiple records by IDs array

  • invalidate_bulk: Invalidate multiple records by IDs array

  • stats: Memory statistics (deduplicated)

  • discover_technical: Add FogOfWar discovery

  • query_fog_of_war: Query low confidence areas

  • promote: Manual promotion to higher level

  • consolidate: Submit validated L2+ summary for needs_consolidation records

  • invalidate: Mark record as invalidated

  • reload: Reload memory from disk (resync after manual edits)

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:

  • DYNAMIC MODE (default): AI creates optimal expert team for each task

  • PLANNED MODE (new): CNP auction-based coordination with task decomposition

  • MODEL SELECTION: Best model chosen per agent based on LiveBench benchmarks

  • SELF-LEARNING: System improves over time based on results

  • GATEKEEPERS: Style, Architecture, Security validation

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:

analyze

Analyze a project/directory to learn style patterns.

  • path: Directory path to analyze (required)

validate

Validate code against learned style profile.

  • code: Code to validate (required)

  • file: File path for context

check

Quick check for errors only (blocking issues).

  • code: Code to check (required)

  • file: File path

fix

Auto-fix code where possible.

  • code: Code to fix (required)

  • file: File path

learn

Record a user correction for learning.

  • original: Original (wrong) code (required)

  • corrected: Corrected code (required)

  • file: Source file

  • context: Additional context

profile

Get current style profile.

stats

Get learning statistics.

export

Export all corrections as JSON.

import

Import corrections from JSON.

  • corrections: JSON string of corrections (required)

clear

Clear all learned data.

mcp_m7_error_databaseC

M7 v3.0 Error Pattern Database - Track AI mistakes and provide preventive warnings.

Actions:

capture

Record an AI mistake.

  • category: Error category (required): syntax, type, import, api, logic, style, security, performance, compatibility, other

  • title: Error title (required)

  • ai_mistake: What AI generated wrong (required)

  • correct_solution: What it should have been (required)

  • description: Detailed description

  • explanation: Why it was wrong

  • severity: critical, high, medium, low

  • project_id: Project identifier

  • tags: Array of tags

check

Check code for potential errors.

  • code: Code to check (required)

  • file: File path for context

Search the error database.

  • query: Search text

  • category: Filter by category

  • severity: Filter by severity

  • project_id: Filter by project

  • limit: Max results (default: 20)

stats

Get error statistics.

  • project_id: Filter by project (optional)

patterns

List or manage error patterns.

  • pattern_action: list, enable, or disable

  • pattern_id: Pattern ID for enable/disable

correct

Record a correction for an error.

  • error_id: Error ID to correct (required)

  • original_code: Original wrong code (required)

  • corrected_code: Corrected code (required)

report_fp

Report a false positive warning.

  • pattern_id: Pattern ID that gave false positive (required)

clear

Clear all error data.

mcp_m7_knowledge_graphB

Project Knowledge Graph - analyze code dependencies, detect cycles, find orphans, generate diagrams.

Actions:

build

Build graph from project directory.

  • rootPath: Root directory to scan (required)

  • include: File patterns to include (default: **/*.ts, **/*.tsx, **/*.js)

  • exclude: File patterns to exclude (default: node_modules, dist)

status

Get current graph status and summary.

metrics

Get detailed graph metrics (nodes, edges, coupling, cohesion, health grade).

query

Query nodes with filters.

  • nodeType: Filter by type

  • name: Filter by name (regex)

  • filePath: Filter by path

  • limit: Max results

Search nodes by name.

  • name: Name to search (required)

dependencies

Get dependencies of a node.

  • nodeId: Node ID (required)

dependents

Get dependents of a node (what depends on it).

  • nodeId: Node ID (required)

impact

Analyze impact of changing a node or file.

  • nodeId: Node ID to analyze

  • filePath: File path to analyze

cycles

Detect circular dependencies.

  • maxCycles: Max cycles to return (default: 100)

  • includeTypeOnly: Include type-only cycles

orphans

Find orphan code (unused exports).

diagram

Generate Mermaid diagram.

  • diagramType: dependency, class, component, module, impact

  • nodeId: Root node for impact diagram

  • maxNodes: Max nodes to show

  • direction: TB, BT, LR, RL

path

Find shortest path between two nodes.

  • nodeId: Source node (required)

  • targetId: Target node (required)

critical

Get most critical paths (highest impact nodes).

  • limit: Number of nodes to return

export

Export graph to JSON.

import

Import graph from JSON.

  • data: JSON string (required)

clear

Clear the graph.

mcp_m7_arch_advisorB

Architectural Advisor - analyze architecture, detect antipatterns, generate C4 diagrams, suggest refactoring.

Actions:

  • analyze: Full analysis with score (A-F grade)

  • detect_antipatterns: Find architecture problems

  • suggest_refactoring: Get actionable improvement steps

  • generate_c4: Generate C4 architecture diagrams

  • score: Quick score summary

  • critical_issues: Only critical problems

  • top_suggestions: Best improvement opportunities

mcp_m7_cross_sessionB

M7 v3.0 Cross-Session Learning - Learn from session patterns across time.

Actions:

status

Check cross-session learning system status.

start

Start tracking a new session.

  • session_id: Session ID to track (required)

record

Record an action in current session.

  • action_data: { type, tool?, input, output, file?, success, userFeedback? }

get_context

Get full project learning context for AI prompts.

Search relevant knowledge.

  • query: Search query (required)

  • limit: Max results (default: 5)

validate

Validate an insight (user feedback).

  • insight_id: Insight ID (required)

  • valid: true/false (required)

ci_result

Record CI/CD result for insight validation.

  • ci_result: { type, success, details?, affectedInsights? }

stats

Get learning statistics.

cleanup

Cleanup old/low-confidence data.

  • cleanup_options: { olderThanDays?, belowConfidence? }

format_prompt

Format context for injection into AI prompt.

  • query: Optional query for relevant knowledge

mcp_m7_visualizerA

M7 Context Visualizer - interactive graph visualization of code dependencies.

Actions:

  • start: Start the visualizer server (opens web UI)

  • stop: Stop the visualizer server

  • status: Check if server is running

  • set_context: Update current file/task context

  • get_graph: Get graph data as JSON

  • focus: Focus on a specific node

  • open: Get URL to open visualizer

The visualizer shows:

  • Code dependency graph with live updates

  • Current editing context ("You are here")

  • Impact analysis (what changes affect)

  • Navigation history

  • Health metrics

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):

  • sync: Full sync — push state, pull peers/changes/messages

  • push: Push shared doc to relay (path, content)

  • pull: Pull shared doc from relay (path)

  • notify: Notify peers about file change (path, summary)

  • changes: View file change feed from peers

  • ask: Ask a question to specific peer or all (to, question)

  • reply: Reply to a message (message_id, answer)

  • inbox: View unread messages

  • broadcast: Send note to all peers (message)

  • log_task: Register M7 task in shared index (task_id, title, status, summary)

  • tasks: View shared task index

  • push-file: Read local file and push to relay (path) — auto-notifies peer

  • pull-file: Pull file from relay and save to local disk (path)

  • list-files: List all shared files on relay

Local Mesh Actions (legacy):

  • init: Initialize mesh (auto-detects remote if configured)

  • status: Show mesh health

  • announce: Publish context

  • peers: List peers

  • request_context: Query peer context

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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription
m7-statusCurrent status and health of M7 MCP Server
m7-sessionInformation about currently active M7 sessions
m7-toolsComplete list of all M7 MCP tools
m7-memoryCurrent state of M7 Memory Bank system

TDQS

C2.6/5.0

Scored across 38 tools

Disambiguation2/5

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.

Naming Consistency5/5

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.

Tool Count2/5

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.

Completeness4/5

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.

Maintenance

ActivityMaintained
ResponsivenessResponsive