Repository navigation
Description
Problem or use case
URLCode already exposes rich read-only MCP inspection (get_context, capabilities/schema queries, recipes/examples, route explain, extension inspection) and separately gated authoring actions. An agent still has to decide which of those queries apply, infer whether an extension composition is valid, and discover its required operator setup before it can use the existing tools correctly.
Benchmark run test1 showed this as authoring friction: the URLCode arms tied the Fastify control on the five valid paired tasks (26/41 assertions each) but used 1,265,927 tokens / 410,448 ms versus 427,479 / 177,319. The run only directed agents to llms.txt, so it is not evidence that the current MCP workflow fails; it is evidence that the dynamic path needs a direct evaluation.
Proposed behavior
Add one read-only MCP/CLI operation, provisionally plan_feature, that accepts a bounded structured goal and optional target, then derives its response solely from the compiled project, capability catalog, bundled recipes, locked artifacts, and operator registrations already available to the MCP server. It should return structured data, not generated application code:
- applicable declarative capabilities, recipes, and extension compositions;
- prerequisites and canonical extension ordering;
- target compatibility, operator setup/grants, and security constraints;
- a small proposed route/config outline only where the contract is known;
- requirements that remain application code, with the reason;
- explicit unsupported requirements and the recommended gap/extension boundary;
- the next bounded read-only or authoring calls to make.
A request such as {goal: "authenticated contact form with persisted submissions", target: "self-hosted"} must identify that auth/store/UI require operator-owned composition, not imply that YAML can select executable packages, keys, storage providers, or grants. It must not inspect binding values, execute guest code, fetch remote content, or mutate the project.
Acceptance evidence
- Deterministic fixture projects cover plain routes,
ui+auth,store, missing prerequisites, unavailable targets, locked artifacts, and a deliberately unsupported form-flow requirement. - The output stays under a declared byte/token bound and is resilient to an adversarially long goal.
- A benchmark rerun mandates
get_contextplus this tool before custom-code generation and reports turns, tokens, correction cycles, application-specific-code ratio, and frozen acceptance results against the existing baseline. - The tool never suggests a capability absent from the queried revision or converts an operator decision into a project-controlled setting.
Alternatives
First evaluate a prompt-only workflow that mandates the existing get_context and capability/extension queries. If it removes the friction, keep the surface small and improve #406 rather than adding a planner.
What I did not verify
I did not test the existing MCP workflow in the benchmark, select the final goal schema, or establish that a planner reduces costs across models/tasks.
Activity
jimhoyd commentedon Sep 22, 2026
Implemented and merged in #429.