Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/mcp-operation-interceptor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@modelcontextprotocol/server': minor
---

Add a high-level `aroundMcpRequest` interceptor for tool, resource, and prompt operations. The interceptor runs after routing and input validation and before output validation, result projection, cache hints, and protocol result processing.
2 changes: 1 addition & 1 deletion packages/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export { PerRequestHTTPServerTransport } from './server/perRequestTransport';
// convenience codec consumers drop into ServerOptions.requestState.verify.
export type { RequestStateCodec, RequestStateCodecOptions } from './server/requestStateCodec';
export { createRequestStateCodec } from './server/requestStateCodec';
export type { ServerOptions } from './server/server';
export type { AroundMcpRequest, McpRequestMethod, ServerOptions } from './server/server';
export { Server } from './server/server';
// subscriptions/listen change-event sourcing seam (protocol revision 2026-07-28).
export type { ServerEvent, ServerEventBus, ServerNotifier } from './server/serverEventBus';
Expand Down
Loading
Loading