Pulse/cmd
rcourtman 20c2f27057 feat(mcp): add list_resource_capabilities tool
Agents had no way to discover which governed capabilities a resource
advertises before calling plan_action. The data existed (Resource.Capabilities
with full param schemas) but was only surfaced as count-limited prose
facts inside get_resource_context, which deliberately omits parameter
schemas. This forced agents to guess capabilityName and params.

Add a dedicated structured surface: GET /api/agent/resource-capabilities/{id}
returns the canonical ResourceCapability list (name, type, approval level,
platform, full parameter schemas) for a single resource. A resource with
no advertised capabilities returns 200 with an empty array, the signal
to skip plan_action.

Internal plumbing already existed (registry.Get + Resource.Capabilities,
the same path plan_action validates against); this is the wiring work at
the canonical agent-surface layer. The tools/call dispatch is fully
generic so no mcp.go changes were needed.

Companion to get_resource_context: that tool remains the human-readable
prose summary; this is the structured schema surface for action planning.

- Manifest capability, name/path constants, output schema helper
- Handler mirroring HandleResourceContext error/scope patterns
- Route registration behind monitoring:read
- Activity telemetry mapping to resource_context class
- Regenerated cmd/pulse-mcp/README.md via generate-pulse-intelligence-docs
- Contract updates: api-contracts, ai-runtime, agent-lifecycle, storage-recovery
- Tests: manifest ownership/addressing/table-test, handler happy/empty/404/405,
  contract pinning capability presence/scope/wire-shape
2026-07-03 17:07:41 +01:00
..
agent-probe backend and governance: MCP contract, agent capabilities, API, and release-control 2026-06-23 17:26:15 +01:00
eval Fix resource-context Assistant tool targeting 2026-06-04 19:18:08 +01:00
hashpw feat: remove Enterprise badges, simplify Pro upgrade prompts 2026-01-09 16:51:08 +00:00
pulse Clear all errcheck and gofmt violations so make lint gates on real findings 2026-06-09 21:42:21 +01:00
pulse-agent Clarify Proxmox LXC Docker install path 2026-06-12 09:57:58 +01:00
pulse-control-plane Fail provider-MSP proof when workspace entitlement leases cannot chain-verify 2026-06-10 14:32:14 +01:00
pulse-mcp feat(mcp): add list_resource_capabilities tool 2026-07-03 17:07:41 +01:00