Skip to content

MCP discovery: init writes .mcp.json, and AGENTS.md and the skill point agents at urlcode mcp #103

Closed

Description

@jimhoyd

urlcode mcp exists (read tools plus --allow-authoring), but nothing registers it for a repository-aware agent.

  • urlcode init (and init --with) writes .mcp.json at the project root: { "mcpServers": { "urlcode": { "command": "urlcode", "args": ["mcp", "--project", "."] } } } (Claude Code and Codex read this shape); document that --allow-authoring is opt-in and must be added by the operator.
  • The generated AGENTS.md and skills/urlcode/SKILL.md tell the agent to prefer the MCP tools (get_context, get_capability, get_schema, search_recipes, explain) over reading documents, with the CLI equivalents as fallback.
  • docs/TOOLING.md gains a "Registering the server" section for Claude Code, Codex and a generic stdio client.
  • Tests: init writes the file and it parses; the starter carries the same file; package smoke checks it ships.

Activity

  1. added a commit that references this issue on Sep 18, 2026
    0b6e898
  2. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Registration documentation follow-up at core main a324cd8: docs/TOOLING.md says Codex reads the generated project .mcp.json directly; agents-guide.ts and AI-AUTHORING repeat that assumption, and pre-session bootstrap depends on it.

    Current official Codex MCP documentation specifies ~/.codex/config.toml or trusted project .codex/config.toml, using [mcp_servers.], or codex mcp add. It distinguishes plugin-bundled .mcp.json from ordinary project configuration. Source: https://learn.chatgpt.com/docs/extend/mcp?surface=cli (Connect Codex to an MCP server / Configure with config.toml / Plugin-provided MCP servers), fetched 2026-09-25.

    Expected: separate Claude Code project JSON, Codex TOML/CLI registration, and plugin packaging. The existing TOML alternative should become an explicit supported Codex setup, with local-install-safe invocation and correct project working directory. Do not claim dropping plain .mcp.json in a site registers Codex unless a supported client integration is actually demonstrated.

    This finding is verified against official documentation and URLCode's generated config, not a fresh Codex client-launch smoke test. Add real-client registration acceptance evidence; parsing the emitted JSON only tests URLCode's own output, not client discovery.

  3. jimhoyd commented on Sep 25, 2026

    @jimhoyd
    CollaboratorAuthor

    Closing as done on main. The evidence:

    • urlcode init writes .mcp.json (packages/core/src/authoring.ts, which uses mcpConfigFile from agents-guide.ts).
    • The default starter ships starters/default/.mcp.json.
    • docs/TOOLING.md has a "Registering the server" section.
    • The generated agent guide and the skill tell agents to call get_context first.

    If any part of the original ask is still missing, reopen this with the specific gap.


    Generated by Claude Code

  4. jimhoyd commented on Sep 26, 2026

    @jimhoyd
    CollaboratorAuthor

    0.6.2 release re-review: reopening for the specific client-registration claim, not the completed file-generation feature.

    At tag a7d7ce1, docs/TOOLING.md:675-676 says the generated .mcp.json is the shape Claude Code and Codex read; :695 says Codex reads the same mcpServers shape; :710-714 explicitly claims Codex discovers a project .mcp.json at session startup. Those claims remain in the installed package.

    Official OpenAI documentation fetched again on 2026-09-26 specifies config.toml for Codex MCP configuration: ~/.codex/config.toml, or trusted project .codex/config.toml, with [mcp_servers.]. Plugin-bundled MCP configuration is a distinct integration. Source: https://learn.chatgpt.com/docs/extend/mcp . Creating/JSON-parsing .mcp.json does not establish that a Codex client discovers it.

    Please document Claude project JSON separately from Codex TOML/CLI registration, with a pinned-local executable and correct cwd. Either provide actual supported client evidence for plain project JSON discovery or remove that claim. This review verified the docs mismatch, not a fresh Codex client-launch experiment. The original init functionality is working; that does not resolve the inaccurate cross-client onboarding assertion.

  5. jimhoyd commented on Sep 26, 2026

    @jimhoyd
    CollaboratorAuthor

    Related installation-guidance inconsistency found in the broader 0.6.2 audit: docs/TOOLING.md:690–693 says a bare npx urlcode tries and fails to install an unscoped registry package instead of resolving the local binary. In an installed site, npm does resolve the urlcode binary provided by @jimhoyd/urlcode; the generated site and AI workflow already use this successfully. Keep the explicit npx --no --package @jimhoyd/urlcode registration form, but scope the explanation to pre-install/bootstrap cases rather than making an unconditional claim about npx. The separate Codex config-location mismatch in this issue remains.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions