Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
a677d44
style: standardize string literals and formatting in mcp.ts and add …
ahammednibras8 Dec 26, 2025
6a3a646
feat: add and types for intercepting requests
ahammednibras8 Dec 26, 2025
c3b0c87
feat: add private helper method for handling server requests
ahammednibras8 Dec 27, 2025
26021ce
refactor: Wrap and handlers with and add new request-related types
ahammednibras8 Dec 27, 2025
a58eced
refactor: update context parameter type to
ahammednibras8 Dec 27, 2025
b02c3ef
feat: Add middleware support to McpServer's call handler
ahammednibras8 Dec 27, 2025
f13e8dc
feat: add method to register middleware functions
ahammednibras8 Dec 27, 2025
d7550f0
feat: Prevent middleware registration after server connection or init…
ahammednibras8 Dec 27, 2025
6b0a628
test: Add middleware tests covering execution order, short-circuitin…
ahammednibras8 Dec 27, 2025
51c003a
feat: Prevent multiple calls to in middleware and add a correspondin…
ahammednibras8 Dec 27, 2025
2e6ea43
test: ensure middleware cannot be registered after server connection
ahammednibras8 Dec 27, 2025
e98cadb
test: add real-world use case tests for middleware covering logging, …
ahammednibras8 Dec 27, 2025
6f70de5
test: Add failure mode verification tests for mcpServer middleware an…
ahammednibras8 Dec 27, 2025
0143422
feat: Add property to request handler context for cross-middleware c…
ahammednibras8 Dec 28, 2025
5a6a172
feat: enable middleware state sharing via by initializing the contex…
ahammednibras8 Dec 28, 2025
259103d
docs: clarify request mutability and mutation guidelines in McpMiddle…
ahammednibras8 Dec 28, 2025
2a276ca
refactor: Wrap prompt handlers with and add a type constraint to its…
ahammednibras8 Dec 28, 2025
d5ceada
fix: explicitly type argument when invoking prompt callbacks
ahammednibras8 Dec 28, 2025
3267548
feat: enable chainable middleware registration and add test for async…
ahammednibras8 Dec 28, 2025
7b88bd1
Update .gitignore
ahammednibras8 Dec 28, 2025
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,5 @@ dist/

# IDE
.idea/

# ahammednibras8
Loading
Loading