| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
Hi @Kehrlann, does this overall shape match what you had in mind, or would you prefer this PR to start with tools only and move resources, prompts, and completions to follow-ups? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Adds opt-in sync/stateless repository contracts for dynamic MCP server primitives:
tools, resources, prompts, and completions.
This is a narrower rework of #953 based on the design discussion in #578.
Motivation and Context
Some MCP servers need to expose different tools, resources, prompts, or completion
handlers depending on the authenticated user, tenant, token, headers, or other
request context.
This PR keeps the first repository shape narrow:
McpTransportContext
Exchange-dependent flows such as sampling, elicitation, logging, and progress stay
on the existing handler API for now.
Design Notes
This PR follows the direction discussed in #578:
registrations remain available.
repository variants across the full server matrix.
stateless async core adapts calls internally using the existing
immediate-execution/offload model.
McpTransportContext, keeping the API focused on request-context based discovery
and execution.
configured together for the same primitive family.
How Has This Been Tested?
Added in-process stateless server tests for request-context based discovery and
resolution, completions, paginated list requests, runtime add/remove behavior, and
repository/static registration conflict validation.
I also tested the repository path locally with a small servlet server that resolves
primitives from request context.
Breaking Changes
None intended.
Existing static registration APIs continue to work. Repositories are opt-in and are
configured through the stateless sync server builder.
Types of changes
Checklist