Skip to content

feat: use in-memory MCP server to skip HTTP auth issues#121

Merged
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-3938-api-apichat-use-internal-mcp-server-to-skip-http-auth-issues
Jan 16, 2026
Merged

feat: use in-memory MCP server to skip HTTP auth issues#121
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-3938-api-apichat-use-internal-mcp-server-to-skip-http-auth-issues

Conversation

@sweetmantech
Copy link
Contributor

Summary

  • Replace HTTP MCP client with in-memory transport in setupToolsForRequest.ts
  • Eliminates network roundtrip and auth complexity for internal MCP tool usage
  • Fixes "No authorization provided" error when chat endpoint calls MCP tools

Test plan

  • Verify chat endpoint works without auth errors
  • Confirm MCP tools are available and functional
  • Test streaming chat responses

🤖 Generated with Claude Code

Replace HTTP MCP client with in-memory transport to avoid authentication
issues when chat endpoint calls MCP tools internally. This eliminates the
network roundtrip and auth complexity while keeping the same tool definitions.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Jan 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
recoup-api Ready Ready Preview Jan 16, 2026 0:25am

@coderabbitai
Copy link

coderabbitai bot commented Jan 16, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech merged commit 7a87640 into test Jan 16, 2026
3 of 4 checks passed
@sweetmantech sweetmantech deleted the sweetmantech/myc-3938-api-apichat-use-internal-mcp-server-to-skip-http-auth-issues branch January 16, 2026 00:29
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.

1 participant

Comments