-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(core): MCP server instrumentation without breaking Miniflare #16817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
AbhiPrasad
merged 67 commits into
develop
from
bete/mcp-server-semantic-convention-fill
Jul 28, 2025
Merged
Changes from all commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
dff2080
feat(mcp-server): Enhance transport handling and request instrumentation
betegon cb28ccc
test transport layer
betegon 1480b78
refactor(mcp-server.test): Simplify test setup by using beforeEach fo…
betegon 5a97d69
test(mcp-server): Add tests for span creation and semantic convention…
betegon 03077f8
test(mcp-server): Update tests to control transport connection in ind…
betegon cac9bd0
test(mcp-server): Refine span attributes and transport details
betegon 37ef9a9
test(mcp-server): Replace direct tracing module calls with spies for …
betegon ac015ce
feat(mcp-server): Add TypeScript type definitions for MCP server inst…
betegon c2f3e82
feat(mcp-server): Introduce MCP attributes and methods for enhanced t…
betegon 094574f
test(mcp-server): Add tests for span creation with various notificati…
betegon 9972b09
test(mcp-server): Update test to use spy for startSpan
betegon ef52da5
refactor(mcp-server): improve span handling and attribute extraction
betegon aee709b
simplify attributes
betegon edc4e3c
refactor(mcp-server): improve types
betegon 62ca0f3
refactor(mcp-server): refactor span handling and utility functions fo…
betegon 08c39f1
remove unused import and comment legacy support
betegon fe2c865
refactor(mcp-server): improve notification span handling and set attr…
betegon ec3cb6f
refactor(mcp-server): span and attribute creation
betegon e193118
refactor(mcp-server): method configuration and argument extraction fo…
betegon 347422c
refactor(mcp-server): improve transport type handling and add tests f…
betegon 02cb799
Merge branch 'develop' into bete/mcp-server-semantic-convention
betegon 9776402
fix lint
betegon d4c74a9
refactor(mcp-server): use fill for method wrapping for transport hand…
betegon 25297f6
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 7b5fd86
move files to intregations directory
betegon 97990c6
use parseStringToURLObject for url handling and update test
betegon 1efda74
(draft) fix span duration
betegon aa0a9fd
Add tool call results and MCP spans duration to cover their children …
betegon 4973a60
Implement MCP server attribute extraction and correlation system. New…
betegon de1b87f
Refactor MCP server integration. improve attribute extraction and spa…
betegon 7624a3e
fix lint
betegon d94a4d0
prettier
betegon 6c67f51
Implement PII filtering for MCP server spans. Introduce a new utility…
betegon b305410
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 24bff02
add debug logger
betegon 670e6b1
feat(mcp-server): tool result handling and error capturing
betegon f73fdc6
add tests
betegon ff4823e
fix lint
betegon b62ba22
fix lint
betegon 1f48e0d
Update MCP e2e tests to match new semantic conventions
betegon cdb920b
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 4f7042a
fix (mcp-server): pass original context to createErrorCapturingHandler
betegon 790f2b3
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 8524991
refactor types
betegon 477f1f2
Set span status to error when capturing errors and added MCP method n…
betegon 0ea5876
fix: capture to only JSON-RPC server-side errors
betegon 2d435ca
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 284e763
update logger
betegon ec5d736
fix lint
betegon d5fcdc3
fix: create a map for each transport to identify different sessions t…
betegon 612fc8c
lint fix
betegon 1cd1048
ref: improve jsdoc and refactor attributes to be in a single file
betegon 683a895
restore handlerArgs argument
betegon 61587a9
use reduce to improve performance
betegon 64bfeda
remove legacy test
betegon 5a6f4ab
Get and persist session data + refactor to fit the max 300 lines file…
betegon 01e1149
fix lint
betegon b6f19ca
Session data tests
betegon f573506
fix wrapTransportSend to handle all transport.send arguments
betegon b48a065
fix lint
betegon 00d21f0
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 5438817
Merge branch 'develop' into bete/mcp-server-semantic-convention-fill
betegon 4dc6d07
wait until the transport is set up
betegon 3494601
body parsing middleware
betegon 55aa5ac
Pass request body to transport's handlePostMessage method
betegon ca63b75
match object
betegon cfceba7
fix attribute naming
betegon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.