Skip to content

fix(mcp): preserve not found errors#204

Open
epowell40 wants to merge 1 commit into
BetterDB-inc:masterfrom
epowell40:codex/mcp-not-found-errors
Open

fix(mcp): preserve not found errors#204
epowell40 wants to merge 1 commit into
BetterDB-inc:masterfrom
epowell40:codex/mcp-not-found-errors

Conversation

@epowell40
Copy link
Copy Markdown

Summary

  • preserve existing Nest HttpExceptions thrown inside MCP controller handlers instead of wrapping them as generic 500s
  • keep non-HTTP failures mapped to the existing generic 500 responses
  • add focused controller tests covering connection lookup 404s, service-level 404s, and non-HTTP fallback behavior

Fixes #155.

Verification

  • git diff --check passes with only Windows LF-to-CRLF warnings
  • SKIP_DOCKER_SETUP=true corepack pnpm --filter api test -- src/mcp/__tests__/mcp.controller.spec.ts is blocked in this local checkout before this test runs because Jest/ts-jest resolves ../../proprietary/licenses/license.module.ts and cannot resolve @nestjs/common / @nestjs/config
  • corepack pnpm --filter api build is blocked by the same proprietary workspace dependency resolution problem before reaching this change

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MCP tools return generic 500 for non-existent instanceId override

1 participant