You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`AGENTSPEC_CONTROL_PLANE_URL`| Control plane URL (e.g. `http://localhost:8080` after port-forward) |
189
+
|`AGENTSPEC_ADMIN_KEY`| The admin key for the control plane API. This is the same value as `controlPlane.apiKey` in the Helm chart (`values.yaml`). Empty by default — if you didn't set it during install, omit it or leave it as `""`. |
178
190
179
-
// agentspec_gap
180
-
{
181
-
"agentName": "budget-assistant",
182
-
"controlPlaneUrl": "http://localhost:8080"
183
-
}
191
+
This is the same key used in three places:
192
+
193
+
| Where | Setting | Purpose |
194
+
|---|---|---|
195
+
| Control plane deployment |`AGENTSPEC_ADMIN_KEY` env var | The control plane checks this on every admin request |
196
+
| Helm chart |`controlPlane.apiKey` in `values.yaml`| The operator uses this to poll `GET /api/v1/agents`|
197
+
| MCP server config |`AGENTSPEC_ADMIN_KEY` env var | Your editor uses this to query the control plane |
198
+
199
+
If you installed with the default Helm values (`controlPlane.apiKey: ""`), the control plane has no admin key set and returns **503** on admin endpoints. To enable them, set the key:
With these env vars set, all cluster-aware tools (`agentspec_list_agents`, `agentspec_health`, `agentspec_audit`, `agentspec_gap`, `agentspec_proof`) automatically query the cluster. Per-call arguments still override env vars when needed.
220
+
221
+
Tools that only work locally (`agentspec_validate`, `agentspec_scan`, `agentspec_generate`, `agentspec_diff`) are unaffected.
222
+
223
+
You can still pass tool arguments explicitly to override the defaults:
224
+
```json
225
+
// agentspec_health — override to target a specific agent
226
+
{ "agentName": "budget-assistant" }
227
+
228
+
// agentspec_list_agents — no args needed, fetches all cluster agents
229
+
{}
230
+
231
+
// agentspec_audit — local manifest + cluster proofs
`AGENTSPEC_ADMIN_KEY` is the same value as `controlPlane.apiKey` in the Helm chart — empty by default. See [Operating Modes](./concepts/operating-modes) for how to set it up and the full guide on sidecar vs operator configuration.
description: 'Find all agent.yaml files under a directory and return a summary list (name, version, model)',
158
+
description: 'List agents. In cluster mode (controlPlaneUrl provided or AGENTSPEC_CONTROL_PLANE_URL env set), fetches live agents from the control plane. Otherwise, scans the local filesystem for agent.yaml files.',
158
159
inputSchema: {
159
160
type: 'object',
160
161
properties: {
161
-
dir: {type: 'string',description: 'Directory to search (default: current working directory)'},
162
+
dir: {type: 'string',description: 'Directory to search for agent.yaml files (local mode, default: cwd)'},
163
+
controlPlaneUrl: {type: 'string',description: 'Control plane URL to list cluster agents (overrides AGENTSPEC_CONTROL_PLANE_URL env)'},
164
+
adminKey: {type: 'string',description: 'X-Admin-Key for the control plane API (overrides AGENTSPEC_ADMIN_KEY env)'},
0 commit comments