Skip to content

[Gap]: local MCP is unavailable to the agent that creates a fresh URLCode project #542

Closed

Description

@jimhoyd

Observed

urlcode init writes .mcp.json only after the agent has started its session. Claude Code and similar project-scoped MCP clients load that file at session start, so the local urlcode mcp tools are unavailable to the very first agent turn that creates the project.

This conflicts with the first-attempt guidance in llms.txt, AI-AUTHORING.md, and the generated AGENTS.md, which lead with MCP get_context when available. The benchmark program independently confirmed zero MCP tool calls in fresh-project URLCode-arm runs for this reason (urlcode-benchmarks#36).

Impact

The main agent-first onboarding promise only applies after an explicit session restart or manual out-of-project registration. A first-turn agent falls back to CLI discovery, and the benchmark recorded an avoidable package-discovery failure in that flow.

Request

Provide a supported pre-session bootstrap path: for example a client-ready root-level MCP snippet users can register before starting an agent, an init-independent local command registration flow, or clear first-session fallback/restart guidance in every agent-facing surface. Add an end-to-end fresh-agent test with MCP available before the first discovery call.

Evidence

Cross-repository usability audit, 2026-09-23. Existing benchmark issue #36 tracks the experiment/rerun; this issue owns core tooling and onboarding behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions