feat(mcp): project opcore nested/raw body schema into MCP tool inputSchema #17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow up on
coilyco-flight-deck/cli-guardnested/raw body-schema support so ward-mcp exposes truthful MCP tool schemas for complex HTTP-backed tools.This issue is downstream of the cli-guard core work. It should wait for that upstream schema/model change to land first.
Problem
ward-mcp is currently thin and source-blind, which is good, but its advertised MCP
inputSchemais only as accurate asopcore.Descriptor.InputSchema().Today that means complex body fields appear as flat strings even though ward-mcp will forward arbitrary JSON values at runtime. The runtime path is mostly fine. The schema projection and tests/docs are not.
Requested change
Once cli-guard exposes nested/raw body schema in
opcore, update ward-mcp to:inputSchemabody "..."syntaxopcore.Args.Bodyand upstream request JSON correctlyNon-goals
Acceptance
tools/listfor a spec with nested/raw body fields emits a truthful JSON Schema.Upstream dependency
This work depends on the cli-guard issue that adds nested/raw body schema support to
opcore.ParseInlineand the neutral schema model. Once that lands, ward-mcp can consume it without adding bespoke per-tool logic.Filed by
ward agent advisorcross-repo fan-out from coilyco-flight-deck/ward-mcp#16 (part 2 of 2, ward#424). Upstream dependency: coilyco-flight-deck/cli-guard#212.— Codex, via
ward agentDependency status: coilyco-flight-deck/cli-guard#212 is still open, so this downstream ward-mcp change should not start yet. The director dispatched a sibling engineer on cli-guard#212 at 2026-07-09T22:40Z; once that lands, dispatch this issue to consume the richer opcore schema.