Skip to content

Release#1

Merged
matiasedgeandnode merged 8 commits intomainfrom
release
Feb 24, 2026
Merged

Release#1
matiasedgeandnode merged 8 commits intomainfrom
release

Conversation

@matiasedgeandnode
Copy link
Copy Markdown

No description provided.

matiasedgeandnode and others added 8 commits October 21, 2025 08:27
…tection

Add CustomMcpError class that extends McpError with a __isMcpError marker
property to enable error detection across module boundaries.

This solves instanceof failures when modules are loaded multiple times
(e.g., with tsx, different bundlers, or ESM context isolation).

Changes:
- Add CustomMcpError class extending McpError with __isMcpError marker
- Add isMcpErrorLike() type guard checking both instanceof and marker
- Update tool error handling to use isMcpErrorLike() instead of instanceof
- Export CustomMcpError and isMcpErrorLike for use in middleware

This allows x402 payment middleware to throw errors that FastMCP will
correctly re-throw as JSON-RPC errors instead of wrapping them in results.
Add CustomMcpError with __isMcpError marker for robust error detection
across module boundaries.
- Rename package to @ampersend_ai/fastmcp
- Add release.yml workflow for tag-based npm publishing
- Update jsr.json namespace
- Switch to @ampersend_ai/modelcontextprotocol-sdk dependency
- Update repository URL to edgeandnode/fastmcp
@matiasedgeandnode matiasedgeandnode merged commit eb0d495 into main Feb 24, 2026
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