Skip to content

[Bug]: invalid extension config errors do not name the failing field #693

Closed

Description

@jimhoyd

Runtime revision and environment

main at b85a1ea (observed while adding MCP tool title/annotations in #687); Node 26.8.2, macOS; local urlcode validate/serve.

Minimal reproduction

extensions:
  mcp:
    version: "1"
    config:
      servers:
        docs:
          mount: /mcp
          tools:
            search:
              description: Search
              inputSchema: {type: object, additionalProperties: false}
              handler: ./search.mjs
              annotations: {readOnlyHint: true, cachedHint: true}   # unknown hint

Expected: the error names the failing field and the reason, the way core route errors do (Invalid configuration at route /x, redirect (additionalProperties): unknown key ...).

Actual: the whole load fails with only Invalid extension configuration: mcp. The same happens for a non-boolean hint (readOnlyHint: "yes"), an empty title, or any other schema violation in any extension's config. explain_error has no rule for the message and cannot return a location. packages/core/src/extensions.ts validates with Ajv but discards validate.errors.

Relevant output

Invalid extension configuration: mcp

Activity

  1. added
    bug
    on Sep 24, 2026
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions