Repository navigation
MCP Serverless - #348
Closed
qyy2003 wants to merge 2 commits into
Closed
MCP Serverless#348qyy2003 wants to merge 2 commits into
qyy2003 wants to merge 2 commits into
Conversation
A benchmark with an mcp.json tool definition can be called over the Model Context Protocol (Streamable HTTP, stateless, JSON responses) from the same deployed function that serves plain invocations, so the two can be compared. - wrappers/mcp/python/mcp_shim.py: minimal MCP server (initialize, ping, tools/list, tools/call), standard library only; SeBS measurements are returned in the tool result's _meta.sebs - AWS Python handler: JSON-RPC bodies go to the shim; cold-start detection moved into cold_test() and also reported on initialize and tools/list; both paths report cpu_us and import_us - local Python server: POST /mcp route - configs/systems.json: ship the shim with AWS and local Python packages - sebs/benchmark.py: copy mcp.json into the package; include it and the shim in the package hash - tool definitions for 010.sleep and 110.dynamic-html Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two benchmarks for the most common kinds of MCP tools, both calling an upstream HTTP service (SEBS_MOCK_UPSTREAM) whose delay and response size are set per call: - 610.api-proxy: wraps a REST API; waits on the upstream, then filters and sorts its JSON - 620.fetch-markdown: downloads an HTML page and converts it to markdown, modeled on the reference fetch MCP server Both keep the upstream connection across warm invocations and report the time split (upstream connect, upstream wait, local processing). Standard library only. Documented in their READMEs and docs/benchmarks.md. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
As the title