marcos-ai-bootstrap 0.1.2 → 0.1.3
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.
- package/.agents/skills/initialize/SKILL.md +1 -1
- package/.claude/agents/infra-claude.md +1 -1
- package/.claude/agents/planner-claude.md +1 -1
- package/.claude/skills/initialize/SKILL.md +1 -1
- package/.codex/agents/infra-codex.toml +1 -1
- package/.codex/agents/planner-codex.toml +1 -1
- package/.github/agents/infra-copilot.agent.md +1 -1
- package/.github/agents/planner-copilot.agent.md +1 -1
- package/.github/skills/initialize/SKILL.md +1 -1
- package/README.md +5 -4
- package/package.json +1 -1
- package/src/AGENTS.md +80 -5
|
@@ -7,7 +7,7 @@ You are the initialize orchestrator. Reconcile this repo's agent network with th
|
|
|
7
7
|
|
|
8
8
|
## Phase 1 - MCP server discovery & wiring
|
|
9
9
|
|
|
10
|
-
1. Run the discovery -> policy-check -> install/verify flow from the "MCP Servers" section of `AGENTS
|
|
10
|
+
1. Run the discovery -> policy-check -> install/verify flow from the "MCP Servers" section of `AGENTS.md` (Steps 1-4). Inspect repo docs, IAC/config, and dependency manifests to infer the platform footprint and map it to candidate servers.
|
|
11
11
|
2. Present the candidate servers to the user. Apply the Step 2 policy check and honour the most restrictive source. Never install a policy-blocked server. Install only servers the user explicitly confirms.
|
|
12
12
|
3. Configure each approved server in `~/.codex/config.toml` (or the project-scoped `.codex`) under `[mcp_servers.<name>]`, then verify with `codex mcp list`.
|
|
13
13
|
4. Wire the approved servers into the agents:
|
|
@@ -11,7 +11,7 @@ You are the infra agent. You modify infrastructure as code only.
|
|
|
11
11
|
- Never commit to main. Always work on the branch specified in the task.
|
|
12
12
|
- Never run manual CLI commands (az, aws, gcloud, kubectl) against shared or production environments.
|
|
13
13
|
- All changes must be made in IAC files and applied through the deployment pipeline.
|
|
14
|
-
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section for the discovery and policy-check flow.
|
|
14
|
+
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
15
15
|
- Validate IAC (e.g. az bicep build) before declaring done.
|
|
16
16
|
- Delegate documentation updates to the docs agent.
|
|
17
17
|
- Do not change application code — that belongs to the code agent.
|
|
@@ -9,7 +9,7 @@ You are the planner. You run Stage 2 of the two-stage planning process.
|
|
|
9
9
|
|
|
10
10
|
## Your job
|
|
11
11
|
Take the approved outline from Stage 1 and produce a complete implementation plan written to documents/plans/<YYYYMMDD>-<topic>.md (e.g. documents/plans/20260408-calendar.md).
|
|
12
|
-
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section for the discovery and policy-check flow.
|
|
12
|
+
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
13
13
|
|
|
14
14
|
## File naming
|
|
15
15
|
- Name the plan file `<YYYYMMDD>-<topic>.md` using today's date with no separators in the date, e.g. `20260408-calendar.md`.
|
|
@@ -7,7 +7,7 @@ You are the initialize orchestrator. Reconcile this repo's agent network with th
|
|
|
7
7
|
|
|
8
8
|
## Phase 1 — MCP server discovery & wiring
|
|
9
9
|
|
|
10
|
-
1. Run the discovery → policy-check → install/verify flow from the "MCP Servers" section of `AGENTS
|
|
10
|
+
1. Run the discovery → policy-check → install/verify flow from the "MCP Servers" section of `AGENTS.md` (Steps 1–4). Inspect repo docs, IAC/config, and dependency manifests to infer the platform footprint and map it to candidate servers.
|
|
11
11
|
2. Present the candidate servers to the user. Apply the Step 2 policy check and honour the most restrictive source. Never install a policy-blocked server. Install only servers the user explicitly confirms.
|
|
12
12
|
3. Install each approved server with `claude mcp add <name> -- <command...>` and verify with `claude mcp list`.
|
|
13
13
|
4. Wire the approved servers into the agents:
|
|
@@ -10,7 +10,7 @@ You are the infra agent. You modify infrastructure as code only.
|
|
|
10
10
|
- Never commit to main. Always work on the branch specified in the task.
|
|
11
11
|
- Never run manual CLI commands (az, aws, gcloud, kubectl) against shared or production environments.
|
|
12
12
|
- All changes must be made in IAC files and applied through the deployment pipeline.
|
|
13
|
-
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section for the discovery and policy-check flow.
|
|
13
|
+
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
14
14
|
- Validate IAC (e.g. az bicep build) before declaring done.
|
|
15
15
|
- Delegate documentation updates to the docs agent.
|
|
16
16
|
- Do not change application code — that belongs to the code agent.
|
|
@@ -8,7 +8,7 @@ You are the planner. You run Stage 2 of the two-stage planning process.
|
|
|
8
8
|
|
|
9
9
|
## Your job
|
|
10
10
|
Take the approved outline from Stage 1 and produce a complete implementation plan written to documents/plans/<YYYYMMDD>-<topic>.md (e.g. documents/plans/20260408-calendar.md).
|
|
11
|
-
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section for the discovery and policy-check flow.
|
|
11
|
+
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
12
12
|
|
|
13
13
|
## File naming
|
|
14
14
|
- Name the plan file `<YYYYMMDD>-<topic>.md` using today's date with no separators in the date, e.g. `20260408-calendar.md`.
|
|
@@ -11,7 +11,7 @@ You are the infra-copilot agent. You modify infrastructure as code only.
|
|
|
11
11
|
- Never commit to main. Always work on the branch specified in the task.
|
|
12
12
|
- Never run manual CLI commands (az, aws, gcloud, kubectl) against shared or production environments.
|
|
13
13
|
- All changes must be made in IAC files and applied through the deployment pipeline.
|
|
14
|
-
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section for the discovery and policy-check flow.
|
|
14
|
+
- Use the discovered, policy-approved MCP servers that match the platform a task touches (e.g. `azure` for Azure/IAC, `cloudflare` for Workers/DNS/edge) plus any read-only docs server for reference material, whenever they are available. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
15
15
|
- Validate IAC (e.g. az bicep build) before declaring done.
|
|
16
16
|
- Delegate documentation updates to the docs-copilot agent.
|
|
17
17
|
- Do not change application code — that belongs to the code-copilot agent.
|
|
@@ -9,7 +9,7 @@ You are the planner-copilot agent. You run Stage 2 of the two-stage planning pro
|
|
|
9
9
|
|
|
10
10
|
## Your job
|
|
11
11
|
Take the approved outline from Stage 1 and produce a complete implementation plan written to documents/plans/<YYYYMMDD>-<topic>.md (e.g. documents/plans/20260408-calendar.md).
|
|
12
|
-
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section for the discovery and policy-check flow.
|
|
12
|
+
Before drafting the plan, check whether any discovered, policy-approved MCP servers are relevant to the task; initialize or use the relevant ones where available, and incorporate what you learn into the plan. Query the server that matches each platform the plan touches (e.g. `azure` for Azure/IAC work, `cloudflare` for Cloudflare Workers/DNS/edge work) and fold its findings into the plan. See the MCP Servers section of `AGENTS.md` for the discovery and policy-check flow.
|
|
13
13
|
|
|
14
14
|
## File naming
|
|
15
15
|
- Name the plan file `<YYYYMMDD>-<topic>.md` using today's date with no separators in the date, e.g. `20260408-calendar.md`.
|
|
@@ -7,7 +7,7 @@ You are the initialize orchestrator. Reconcile this repo's agent network with th
|
|
|
7
7
|
|
|
8
8
|
## Phase 1 — MCP server discovery & wiring
|
|
9
9
|
|
|
10
|
-
1. Run the discovery → policy-check → install/verify flow from the "MCP Servers" section of `AGENTS
|
|
10
|
+
1. Run the discovery → policy-check → install/verify flow from the "MCP Servers" section of `AGENTS.md` (Steps 1–4). Inspect repo docs, IAC/config, and dependency manifests to infer the platform footprint and map it to candidate servers.
|
|
11
11
|
2. Present the candidate servers to the user. Apply the Step 2 policy check and honour the most restrictive source. Never install a policy-blocked server. Install only servers the user explicitly confirms.
|
|
12
12
|
3. Configure each approved server in `~/.copilot/mcp-config.json` (or the project-scoped equivalent) under `mcpServers`, then verify with `/mcp`.
|
|
13
13
|
4. Wire the approved servers into the agents:
|
package/README.md
CHANGED
|
@@ -65,10 +65,11 @@ marcos-ai-bootstrap --all
|
|
|
65
65
|
and copies into other repositories.
|
|
66
66
|
- `src/bin/ai-bootstrap.js`, `src/lib/materialize.js` — the CLI implementation.
|
|
67
67
|
- `src/AGENTS-BOOTSTRAP.md` — maintainer-only source of truth for each tool's
|
|
68
|
-
materialised agent/skill prompt bodies
|
|
69
|
-
discovery/policy flow
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
materialised agent/skill prompt bodies and model tier mappings. The MCP server
|
|
69
|
+
discovery/policy flow now lives in the **MCP Servers** section of `AGENTS.md` (which
|
|
70
|
+
is shipped); this file references it. **Not published to npm and not copied into target
|
|
71
|
+
repos** — the materialised agent/skill files under `.claude/`, `.codex/`, `.github/`,
|
|
72
|
+
`.agents/` are the shipped source of truth.
|
|
72
73
|
- `src/extract-agents.py` — maintainer tool: regenerates the `.claude/`, `.codex/`,
|
|
73
74
|
`.github/`, `.agents/` template files at the repo root from `src/AGENTS-BOOTSTRAP.md`
|
|
74
75
|
after editing it. Run this after changing `src/AGENTS-BOOTSTRAP.md`, then commit the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "marcos-ai-bootstrap",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Materialise the AI-Bootstrap agent/skill network (Claude Code, Codex, GitHub Copilot CLI) into any repository from the command line.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"marcos-ai-bootstrap": "src/bin/ai-bootstrap.js"
|
package/src/AGENTS.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
This file is tool-agnostic. Drop it into any repository and reference it from your AI tool's config entry-point (e.g. `CLAUDE.md` via `@AGENTS.md`, `.github/copilot-instructions.md`, `.opencode/instructions.md`) to immediately apply these rules and bootstrap the agent network.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
The agent and skill files for your specific tool are materialised into the repository by the `marcos-ai-bootstrap` CLI (under `.claude/`, `.codex/`, `.github/`, or `.agents/`). This file is the tool-agnostic source of truth for the rules, the MCP server flow, and the canonical agent/skill roles.
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
@@ -11,8 +11,83 @@ For tool-specific agent materialisation instructions (file templates, model IDs,
|
|
|
11
11
|
At the start of every session:
|
|
12
12
|
1. Confirm this file has been read.
|
|
13
13
|
2. Identify which tool you are running under.
|
|
14
|
-
3.
|
|
15
|
-
4. Discover, policy-check, and configure the applicable **MCP servers** as described in the MCP Servers section
|
|
14
|
+
3. Verify the agent network **and the skill network** for that tool are present — the materialised agent/skill files under `.claude/`, `.codex/`, `.github/`, or `.agents/`. If any are missing, re-run the `marcos-ai-bootstrap` CLI for your tool to restore them before starting any other work.
|
|
15
|
+
4. Discover, policy-check, and configure the applicable **MCP servers** as described in the [MCP Servers](#mcp-servers) section below. Use MCP servers wherever applicable — prefer them for authoritative, live platform access (e.g. Azure, Cloudflare) over guessing or stale knowledge, subject to organization policy.
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## MCP Servers
|
|
20
|
+
|
|
21
|
+
MCP servers give the infra and planner agents authoritative, live access to the platforms a project actually uses. Rather than hardcoding a fixed list, the bootstrap **discovers** which servers are applicable to the current repository and **respects organization policy** on what may be installed. At the start of every session, after confirming the agent network is present, run the discovery → policy-check → install/verify flow below.
|
|
22
|
+
|
|
23
|
+
### Step 1 — Discover applicable servers
|
|
24
|
+
|
|
25
|
+
Infer the project's platform footprint before installing anything. Inspect, in order:
|
|
26
|
+
|
|
27
|
+
1. **Repository docs** — root `README.md`, service-level `README.md` files, `CLAUDE.md` / `AGENTS.md`, `docs/`, and `documents/plans/`. Look for named platforms and tooling (e.g. Azure, Cloudflare, AWS, GCP, GitHub, PostgreSQL, Stripe, Sentry).
|
|
28
|
+
2. **IAC and config** — `*.bicep`, `*.tf`, `wrangler.toml`, `docker-compose*.yml`, pipeline YAML under `.github/workflows/` or `.azure/`, and environment-variable tables. These reveal the deploy targets an infra agent will touch.
|
|
29
|
+
3. **Dependency manifests** — `package.json`, provider SDKs, and CLIs already vendored in the repo.
|
|
30
|
+
|
|
31
|
+
Map the footprint to candidate MCP servers. Common mappings (extend as the ecosystem grows):
|
|
32
|
+
|
|
33
|
+
| Signal in repo | Candidate MCP server | Package / endpoint |
|
|
34
|
+
|---|---|---|
|
|
35
|
+
| Azure services, Bicep, `az`, `DefaultAzureCredential` | `azure` | `npx -y @azure/mcp@latest server start` |
|
|
36
|
+
| Azure/Microsoft docs reference need | `microsoft-learn` (read-only docs) | hosted — `https://learn.microsoft.com/api/mcp` |
|
|
37
|
+
| Cloudflare Workers, `wrangler.toml`, DNS/edge | `cloudflare` | `npx -y mcp-remote https://docs.mcp.cloudflare.com/sse` (docs); other Cloudflare servers use `https://<name>.mcp.cloudflare.com/sse` |
|
|
38
|
+
| GitHub-centric workflows / PR automation | `github` | `npx -y @modelcontextprotocol/server-github` |
|
|
39
|
+
|
|
40
|
+
If the repo shows no clear signal for a platform, **do not install its server** — surface it as a suggestion to the user instead of adding it silently.
|
|
41
|
+
|
|
42
|
+
### Step 2 — Check organization policy
|
|
43
|
+
|
|
44
|
+
Before installing any discovered server, confirm it is permitted. Check, in order, and honour the most restrictive:
|
|
45
|
+
|
|
46
|
+
1. **Repo-scoped allowlist** — an `mcp-allowlist` / `mcp-policy` entry in `AGENTS.md`, a `.mcp-policy.json` / `.mcp-allowed.json` file at the repo root, or an `mcp` section in the tool's project config.
|
|
47
|
+
2. **Tool/user-scoped policy** — the tool's own managed-settings or enterprise policy (e.g. Claude Code managed settings, Copilot org policy, Codex config). If a tool exposes an allowed/blocked MCP list, treat it as authoritative.
|
|
48
|
+
3. **Explicit user confirmation** — if no policy source exists, list the servers you intend to install and ask the user to confirm before adding any that require network access or credentials.
|
|
49
|
+
|
|
50
|
+
Never install a server that policy blocks. If a needed server is blocked, note the limitation to the user and continue without it.
|
|
51
|
+
|
|
52
|
+
### Step 3 — Which agents use them
|
|
53
|
+
|
|
54
|
+
- **infra agents** (`infra-claude`, `infra-copilot`, `infra-codex`) — use the discovered, policy-approved servers matching the platform a task touches (e.g. `azure` for Bicep, `cloudflare` for Workers/DNS), alongside any read-only docs server for reference material.
|
|
55
|
+
- **planner agents** (`planner-claude`, `planner-copilot`, `planner-codex`) — check which approved servers are relevant to the plan, query them, and fold the findings into the plan.
|
|
56
|
+
|
|
57
|
+
### Step 4 — Verify and install per tool
|
|
58
|
+
|
|
59
|
+
Install only servers that passed Steps 1–2. Substitute the discovered server name/package for the `<name>` / `<package>` placeholders.
|
|
60
|
+
|
|
61
|
+
**Claude Code** — check with `claude mcp list`, then:
|
|
62
|
+
|
|
63
|
+
```powershell
|
|
64
|
+
claude mcp add <name> -- <command...>
|
|
65
|
+
# e.g. claude mcp add azure -- npx -y @azure/mcp@latest server start
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
**GitHub Copilot CLI** — configure in `~/.copilot/mcp-config.json` (or project-scoped equivalent), verify with `/mcp`:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"mcpServers": {
|
|
73
|
+
"<name>": { "command": "npx", "args": ["-y", "<package>", "..."] }
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**Codex** — configure in `~/.codex/config.toml` (or project-scoped `.codex`), verify with `codex mcp list`:
|
|
79
|
+
|
|
80
|
+
```toml
|
|
81
|
+
[mcp_servers.<name>]
|
|
82
|
+
command = "npx"
|
|
83
|
+
args = ["-y", "<package>", "..."]
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### Notes
|
|
87
|
+
|
|
88
|
+
- The Azure MCP server authenticates with your existing Azure credential chain (Azure CLI login / managed identity / `DefaultAzureCredential`). Ensure you are signed in before relying on it.
|
|
89
|
+
- Cloudflare remote servers prompt for OAuth authorization on first connect via `mcp-remote`.
|
|
90
|
+
- Never let an MCP server perform manual mutating operations against shared or production environments — the infra guardrails (all changes go through IAC and pipelines) still apply. Use these servers for reference, inspection, and planning.
|
|
16
91
|
|
|
17
92
|
---
|
|
18
93
|
|
|
@@ -29,7 +104,7 @@ At the start of every session:
|
|
|
29
104
|
|
|
30
105
|
## Skills
|
|
31
106
|
|
|
32
|
-
Skills are reusable, user-invocable orchestration workflows (slash commands) that drive the agent network.
|
|
107
|
+
Skills are reusable, user-invocable orchestration workflows (slash commands) that drive the agent network. The `marcos-ai-bootstrap` CLI materialises them for your tool (e.g. `.claude/skills/`, `.github/skills/`, `.agents/skills/`).
|
|
33
108
|
|
|
34
109
|
Canonical skills:
|
|
35
110
|
|
|
@@ -97,7 +172,7 @@ Canonical skills:
|
|
|
97
172
|
|
|
98
173
|
## Agent Network
|
|
99
174
|
|
|
100
|
-
These are the canonical agent roles. They are defined here without tool-specific syntax.
|
|
175
|
+
These are the canonical agent roles. They are defined here without tool-specific syntax. The `marcos-ai-bootstrap` CLI materialises them for your specific tool.
|
|
101
176
|
|
|
102
177
|
Model tiers used below:
|
|
103
178
|
- **High** — most capable; use for planning and complex cross-file reasoning (e.g. Opus-class)
|