Mesh
mcp_m7_meshCoordinates M7 instances across machines or locally by syncing state, sharing files, messaging peers, and tracking tasks through a relay server or SQLite.
Instructions
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
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Target workstation for ask/message (or "all") | |
| path | No | File path for push/pull/notify | |
| limit | No | Number of recent events/tasks to show (default: 20) | |
| scope | No | Context scope (e.g., file path) | |
| since | No | Time filter: "1h", "24h", timestamp | |
| title | No | Task title | |
| action | Yes | Mesh action to perform | |
| answer | No | Answer text for reply | |
| module | No | Module name | |
| ttl_ms | No | Lock TTL in milliseconds (default: 30000) | |
| content | No | Context content (JSON string or plain text) | |
| message | No | Message text for broadcast | |
| peer_id | No | Specific peer instance ID to query | |
| purpose | No | Purpose of the lock | |
| summary | No | Change summary for notify | |
| task_id | No | M7 cycle/task ID | |
| question | No | Question text for ask | |
| resource | No | Resource key to lock/unlock (e.g., file path) | |
| message_id | No | Message ID for reply | |
| description | No | Intent description | |
| file_action | No | File action for notify: created/modified/deleted | |
| intent_type | No | Type of intent to propose | |
| lock_action | No | Lock operation | |
| server_role | No | Server role description (e.g., "auth backend on server-1") | |
| task_status | No | Task status: in_progress/completed/blocked | |
| context_type | No | Type of context to publish | |
| project_root | No | Project root path (default: cwd) | |
| expires_in_ms | No | Context TTL in milliseconds | |
| files_changed | No | List of changed files |