@mizyoel/mercury-mesh 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/.copilot/mcp-config.json +14 -0
  2. package/.copilot/skills/agent-collaboration/SKILL.md +42 -0
  3. package/.copilot/skills/agent-conduct/SKILL.md +24 -0
  4. package/.copilot/skills/architectural-proposals/SKILL.md +151 -0
  5. package/.copilot/skills/ci-validation-gates/SKILL.md +84 -0
  6. package/.copilot/skills/cli-wiring/SKILL.md +47 -0
  7. package/.copilot/skills/client-compatibility/SKILL.md +89 -0
  8. package/.copilot/skills/cross-mesh/SKILL.md +114 -0
  9. package/.copilot/skills/distributed-mesh/SKILL.md +287 -0
  10. package/.copilot/skills/distributed-mesh/mesh.json.example +30 -0
  11. package/.copilot/skills/distributed-mesh/sync-mesh.ps1 +111 -0
  12. package/.copilot/skills/distributed-mesh/sync-mesh.sh +104 -0
  13. package/.copilot/skills/docs-standards/SKILL.md +71 -0
  14. package/.copilot/skills/economy-mode/SKILL.md +101 -0
  15. package/.copilot/skills/external-comms/SKILL.md +331 -0
  16. package/.copilot/skills/gh-auth-isolation/SKILL.md +183 -0
  17. package/.copilot/skills/git-workflow/SKILL.md +206 -0
  18. package/.copilot/skills/github-multi-account/SKILL.md +95 -0
  19. package/.copilot/skills/history-hygiene/SKILL.md +36 -0
  20. package/.copilot/skills/humanizer/SKILL.md +107 -0
  21. package/.copilot/skills/init-mode/SKILL.md +101 -0
  22. package/.copilot/skills/mesh-conventions/SKILL.md +69 -0
  23. package/.copilot/skills/model-selection/SKILL.md +139 -0
  24. package/.copilot/skills/nap/SKILL.md +24 -0
  25. package/.copilot/skills/personal-mesh/SKILL.md +57 -0
  26. package/.copilot/skills/project-conventions/SKILL.md +56 -0
  27. package/.copilot/skills/release-process/SKILL.md +435 -0
  28. package/.copilot/skills/reskill/SKILL.md +92 -0
  29. package/.copilot/skills/reviewer-protocol/SKILL.md +79 -0
  30. package/.copilot/skills/secret-handling/SKILL.md +200 -0
  31. package/.copilot/skills/session-recovery/SKILL.md +155 -0
  32. package/.copilot/skills/test-discipline/SKILL.md +37 -0
  33. package/.copilot/skills/windows-compatibility/SKILL.md +74 -0
  34. package/.github/agents/mercury-mesh.agent.md +1732 -0
  35. package/.mesh/manifesto.md +66 -0
  36. package/.mesh/templates/casting/Futurama.json +10 -0
  37. package/.mesh/templates/casting-history.json +4 -0
  38. package/.mesh/templates/casting-policy.json +37 -0
  39. package/.mesh/templates/casting-reference.md +104 -0
  40. package/.mesh/templates/casting-registry.json +3 -0
  41. package/.mesh/templates/ceremonies.md +41 -0
  42. package/.mesh/templates/charter.md +56 -0
  43. package/.mesh/templates/constraint-tracking.md +38 -0
  44. package/.mesh/templates/cooperative-rate-limiting.md +229 -0
  45. package/.mesh/templates/copilot-instructions.md +50 -0
  46. package/.mesh/templates/department-backlog.md +15 -0
  47. package/.mesh/templates/department-charter.md +27 -0
  48. package/.mesh/templates/department-state.json +19 -0
  49. package/.mesh/templates/history.md +10 -0
  50. package/.mesh/templates/identity/now.md +9 -0
  51. package/.mesh/templates/identity/wisdom.md +15 -0
  52. package/.mesh/templates/interface-contract.md +26 -0
  53. package/.mesh/templates/issue-lifecycle.md +421 -0
  54. package/.mesh/templates/keda-scaler.md +166 -0
  55. package/.mesh/templates/machine-capabilities.md +77 -0
  56. package/.mesh/templates/mcp-config.md +90 -0
  57. package/.mesh/templates/mercury-mesh.agent.md +1732 -0
  58. package/.mesh/templates/multi-agent-format.md +28 -0
  59. package/.mesh/templates/orchestration-log.md +27 -0
  60. package/.mesh/templates/org-autonomy-spec.md +152 -0
  61. package/.mesh/templates/org-backlog-from-triage.js +199 -0
  62. package/.mesh/templates/org-runtime-reconcile.js +364 -0
  63. package/.mesh/templates/org-seed-runtime.js +238 -0
  64. package/.mesh/templates/org-status.js +193 -0
  65. package/.mesh/templates/org-structure.json +38 -0
  66. package/.mesh/templates/package.json +3 -0
  67. package/.mesh/templates/plugin-marketplace.md +49 -0
  68. package/.mesh/templates/ralph-circuit-breaker.md +313 -0
  69. package/.mesh/templates/ralph-triage.js +844 -0
  70. package/.mesh/templates/raw-agent-output.md +37 -0
  71. package/.mesh/templates/roster.md +60 -0
  72. package/.mesh/templates/routing.md +78 -0
  73. package/.mesh/templates/run-output.md +50 -0
  74. package/.mesh/templates/schedule.json +64 -0
  75. package/.mesh/templates/scribe-charter.md +119 -0
  76. package/.mesh/templates/skill.md +24 -0
  77. package/.mesh/templates/skills/agent-collaboration/SKILL.md +42 -0
  78. package/.mesh/templates/skills/agent-conduct/SKILL.md +24 -0
  79. package/.mesh/templates/skills/architectural-proposals/SKILL.md +151 -0
  80. package/.mesh/templates/skills/ci-validation-gates/SKILL.md +84 -0
  81. package/.mesh/templates/skills/cli-wiring/SKILL.md +47 -0
  82. package/.mesh/templates/skills/client-compatibility/SKILL.md +89 -0
  83. package/.mesh/templates/skills/cross-mesh/SKILL.md +114 -0
  84. package/.mesh/templates/skills/distributed-mesh/SKILL.md +287 -0
  85. package/.mesh/templates/skills/distributed-mesh/mesh.json.example +30 -0
  86. package/.mesh/templates/skills/distributed-mesh/sync-mesh.ps1 +111 -0
  87. package/.mesh/templates/skills/distributed-mesh/sync-mesh.sh +104 -0
  88. package/.mesh/templates/skills/docs-standards/SKILL.md +71 -0
  89. package/.mesh/templates/skills/economy-mode/SKILL.md +101 -0
  90. package/.mesh/templates/skills/external-comms/SKILL.md +331 -0
  91. package/.mesh/templates/skills/gh-auth-isolation/SKILL.md +183 -0
  92. package/.mesh/templates/skills/git-workflow/SKILL.md +204 -0
  93. package/.mesh/templates/skills/github-multi-account/SKILL.md +95 -0
  94. package/.mesh/templates/skills/history-hygiene/SKILL.md +36 -0
  95. package/.mesh/templates/skills/humanizer/SKILL.md +107 -0
  96. package/.mesh/templates/skills/init-mode/SKILL.md +101 -0
  97. package/.mesh/templates/skills/mesh-conventions/SKILL.md +69 -0
  98. package/.mesh/templates/skills/model-selection/SKILL.md +139 -0
  99. package/.mesh/templates/skills/nap/SKILL.md +24 -0
  100. package/.mesh/templates/skills/personal-mesh/SKILL.md +57 -0
  101. package/.mesh/templates/skills/project-conventions/SKILL.md +56 -0
  102. package/.mesh/templates/skills/release-process/SKILL.md +435 -0
  103. package/.mesh/templates/skills/reskill/SKILL.md +92 -0
  104. package/.mesh/templates/skills/reviewer-protocol/SKILL.md +79 -0
  105. package/.mesh/templates/skills/secret-handling/SKILL.md +200 -0
  106. package/.mesh/templates/skills/session-recovery/SKILL.md +155 -0
  107. package/.mesh/templates/skills/test-discipline/SKILL.md +37 -0
  108. package/.mesh/templates/skills/windows-compatibility/SKILL.md +74 -0
  109. package/.mesh/templates/workflows/mesh-ci.yml +24 -0
  110. package/.mesh/templates/workflows/mesh-docs.yml +54 -0
  111. package/.mesh/templates/workflows/mesh-heartbeat.yml +237 -0
  112. package/.mesh/templates/workflows/mesh-insider-release.yml +61 -0
  113. package/.mesh/templates/workflows/mesh-issue-assign.yml +243 -0
  114. package/.mesh/templates/workflows/mesh-label-enforce.yml +181 -0
  115. package/.mesh/templates/workflows/mesh-preview.yml +55 -0
  116. package/.mesh/templates/workflows/mesh-promote.yml +120 -0
  117. package/.mesh/templates/workflows/mesh-release.yml +77 -0
  118. package/.mesh/templates/workflows/mesh-triage.yml +383 -0
  119. package/.mesh/templates/workflows/sync-mesh-labels.yml +204 -0
  120. package/README.md +640 -0
  121. package/bin/mercury-mesh.cjs +317 -0
  122. package/docs/brand-language.md +287 -0
  123. package/docs/commander-onboarding.md +462 -0
  124. package/docs/mercury-mesh-runtime-rename-impact.md +148 -0
  125. package/docs/persona-manifesto.md +114 -0
  126. package/docs/scenarios/client-compatibility.md +59 -0
  127. package/index.cjs +41 -0
  128. package/package.json +43 -0
@@ -0,0 +1,77 @@
1
+ # Machine Capability Discovery & Label-Based Routing
2
+
3
+ > Enable Ralph to skip issues requiring capabilities the current machine lacks.
4
+
5
+ ## Overview
6
+
7
+ When running Mercury Mesh across multiple machines (laptops, DevBoxes, GPU servers, Kubernetes nodes), each machine has different tooling. The capability system lets you declare what each machine can do, and Ralph automatically routes work accordingly.
8
+
9
+ ## Setup
10
+
11
+ ### 1. Create a Capabilities Manifest
12
+
13
+ Create `~/.mesh/machine-capabilities.json` (user-wide) or `.mesh/machine-capabilities.json` (project-local):
14
+
15
+ ```json
16
+ {
17
+ "machine": "MY-LAPTOP",
18
+ "capabilities": ["browser", "personal-gh", "onedrive"],
19
+ "missing": ["gpu", "docker", "azure-speech"],
20
+ "lastUpdated": "2026-03-22T00:00:00Z"
21
+ }
22
+ ```
23
+
24
+ ### 2. Label Issues with Requirements
25
+
26
+ Add `needs:*` labels to issues that require specific capabilities:
27
+
28
+ | Label | Meaning |
29
+ |-------|---------|
30
+ | `needs:browser` | Requires Playwright / browser automation |
31
+ | `needs:gpu` | Requires NVIDIA GPU |
32
+ | `needs:personal-gh` | Requires personal GitHub account |
33
+ | `needs:emu-gh` | Requires Enterprise Managed User account |
34
+ | `needs:azure-cli` | Requires authenticated Azure CLI |
35
+ | `needs:docker` | Requires Docker daemon |
36
+ | `needs:onedrive` | Requires OneDrive sync |
37
+ | `needs:teams-mcp` | Requires Teams MCP tools |
38
+
39
+ Custom capabilities are supported — any `needs:X` label works if `X` is in the machine's `capabilities` array.
40
+
41
+ ### 3. Run Ralph
42
+
43
+ ```bash
44
+ Mercury Mesh watch --interval 5
45
+ ```
46
+
47
+ The CLI command is still legacy-named during the compatibility phase.
48
+
49
+ Ralph will log skipped issues:
50
+ ```
51
+ ⏭️ Skipping #42 "Train ML model" — missing: gpu
52
+ ✓ Triaged #43 "Fix CSS layout" → Picard (routing-rule)
53
+ ```
54
+
55
+ ## How It Works
56
+
57
+ 1. Ralph loads `machine-capabilities.json` at startup
58
+ 2. For each open issue, Ralph extracts `needs:*` labels
59
+ 3. If any required capability is missing, the issue is skipped
60
+ 4. Issues without `needs:*` labels are always processed (opt-in system)
61
+
62
+ ## Kubernetes Integration
63
+
64
+ On Kubernetes, machine capabilities map to node labels:
65
+
66
+ ```yaml
67
+ # Node labels (set by capability DaemonSet or manually)
68
+ node.mesh.dev/gpu: "true"
69
+ node.mesh.dev/browser: "true"
70
+
71
+ # Pod spec uses nodeSelector
72
+ spec:
73
+ nodeSelector:
74
+ node.mesh.dev/gpu: "true"
75
+ ```
76
+
77
+ A DaemonSet can run capability discovery on each node and maintain labels automatically. See the [Mercury Mesh on AKS (legacy repo name: Mercury Mesh-on-aks)](https://github.com/tamirdresher/Mercury Mesh-on-aks) project for a complete Kubernetes deployment example.
@@ -0,0 +1,90 @@
1
+ # MCP Integration — Configuration and Samples
2
+
3
+ MCP (Model Context Protocol) servers extend Mercury Mesh with tools for external services — Trello, Aspire dashboards, Azure, Notion, and more. The user configures MCP servers in their environment; Mercury Mesh discovers and uses them.
4
+
5
+ > **Full patterns:** Read `.mesh/skills/mcp-tool-discovery/SKILL.md` for discovery patterns, domain-specific usage, and graceful degradation.
6
+
7
+ ## Config File Locations
8
+
9
+ Users configure MCP servers at these locations (checked in priority order):
10
+ 1. **Repository-level:** `.copilot/mcp-config.json` (team-shared, committed to repo)
11
+ 2. **Workspace-level:** `.vscode/mcp.json` (VS Code workspaces)
12
+ 3. **User-level:** `~/.copilot/mcp-config.json` (personal)
13
+ 4. **CLI override:** `--additional-mcp-config` flag (session-specific)
14
+
15
+ ## Sample Config — Trello
16
+
17
+ ```json
18
+ {
19
+ "mcpServers": {
20
+ "trello": {
21
+ "command": "npx",
22
+ "args": ["-y", "@trello/mcp-server"],
23
+ "env": {
24
+ "TRELLO_API_KEY": "${TRELLO_API_KEY}",
25
+ "TRELLO_TOKEN": "${TRELLO_TOKEN}"
26
+ }
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ ## Sample Config — GitHub
33
+
34
+ ```json
35
+ {
36
+ "mcpServers": {
37
+ "github": {
38
+ "command": "npx",
39
+ "args": ["-y", "@modelcontextprotocol/server-github"],
40
+ "env": {
41
+ "GITHUB_TOKEN": "${GITHUB_TOKEN}"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## Sample Config — Azure
49
+
50
+ ```json
51
+ {
52
+ "mcpServers": {
53
+ "azure": {
54
+ "command": "npx",
55
+ "args": ["-y", "@azure/mcp-server"],
56
+ "env": {
57
+ "AZURE_SUBSCRIPTION_ID": "${AZURE_SUBSCRIPTION_ID}",
58
+ "AZURE_CLIENT_ID": "${AZURE_CLIENT_ID}",
59
+ "AZURE_CLIENT_SECRET": "${AZURE_CLIENT_SECRET}",
60
+ "AZURE_TENANT_ID": "${AZURE_TENANT_ID}"
61
+ }
62
+ }
63
+ }
64
+ }
65
+ ```
66
+
67
+ ## Sample Config — Aspire
68
+
69
+ ```json
70
+ {
71
+ "mcpServers": {
72
+ "aspire": {
73
+ "command": "npx",
74
+ "args": ["-y", "@aspire/mcp-server"],
75
+ "env": {
76
+ "ASPIRE_DASHBOARD_URL": "${ASPIRE_DASHBOARD_URL}"
77
+ }
78
+ }
79
+ }
80
+ }
81
+ ```
82
+
83
+ ## Authentication Notes
84
+
85
+ - **GitHub MCP requires a separate token** from the `gh` CLI auth. Generate at https://github.com/settings/tokens
86
+ - **Trello requires API key + token** from https://trello.com/power-ups/admin
87
+ - **Azure requires service principal credentials** — see Azure docs for setup
88
+ - **Aspire uses the dashboard URL** — typically `http://localhost:18888` during local dev
89
+
90
+ Auth is a real blocker for some MCP servers. Users need separate tokens for GitHub MCP, Azure MCP, Trello MCP, etc. This is a documentation problem, not a code problem.