Skip to content

Fix placeholder handler pattern in MCP registry #19

Description

@todo-mdx

ARCHITECTURE: Database and functions tools are registered with non-functional handlers that return { error: 'Use /mcp endpoint' }. This is an architectural smell.

Location: src/api.ts lines 82-85, 94-97

TDD Steps:

  • RED: Write test that calls tool handler directly and verify it fails properly
  • GREEN: Either provide real handlers that route to implementation, or mark tools as handlerType: 'route-only'
  • REFACTOR: Consider unified pattern for auto-generated vs explicit tools

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions