Skip to content

Fix/mcp agent error handling#387

Merged
threepointone merged 4 commits into
cloudflare:mainfrom
whoiskatrin:fix/mcp-agent-error-handling
Aug 5, 2025
Merged

Fix/mcp agent error handling#387
threepointone merged 4 commits into
cloudflare:mainfrom
whoiskatrin:fix/mcp-agent-error-handling

Conversation

@whoiskatrin

Copy link
Copy Markdown
Contributor
  • Added onError method to McpAgent for customizable error handling
  • Improved _init method to catch and handle initialization errors
  • Improved error responses in SSE and streamable HTTP transports
  • Added example implementation in MCP demo server

all related to #385

@changeset-bot

changeset-bot Bot commented Jul 31, 2025

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 70516a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
agents Patch
hono-agents Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@whoiskatrin
whoiskatrin force-pushed the fix/mcp-agent-error-handling branch from e43ce37 to 471e708 Compare July 31, 2025 10:41
Comment thread packages/agents/src/mcp/index.ts Outdated
Co-authored-by: Sunil Pai <threepointone@gmail.com>
Comment thread .changeset/tricky-weeks-reply.md Outdated
@threepointone
threepointone merged commit 8c2713f into cloudflare:main Aug 5, 2025
1 check passed
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.

2 participants