Skip to content

[Request]: Add a bounded MCP feature-planning query from compiled capabilities and extensions #427

Closed

Description

@jimhoyd

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_context plus 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

  1. added
    enhancement
    ai-first
    important
    on Sep 22, 2026
  2. jimhoyd commented on Sep 22, 2026

    @jimhoyd
    CollaboratorAuthor

    Implemented and merged in #429.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-firstenhancementimportant

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions