Repository navigation
feat(mcp): serve agents (MCP) from the trame server - #104
Draft
alesgenova wants to merge 1 commit into
Draft
alesgenova wants to merge 1 commit into
alesgenova wants to merge 1 commit into
Conversation
This was referenced Nov 5, 2026
Agents connect to a running app through the Model Context Protocol, and use what its classes declare with trame-common's decorators and mcp= keyword. - server.mcp: the MCP server, off until enabled (server.mcp.enabled, --mcp). Child servers share their root's, and the object names they expose go through their translator - transports: HTTP at /mcp on the aiohttp server, with a bearer token beyond loopback (--mcp-http-token), and server.mcp.client() for agents in the same process - MCP 2026-07-28, alongside clients of earlier revisions - six object tools (object_list, object_types, object_get, object_update, object_call, object_batch) over components, models and the state keys exposed with state.mcp_expose(); a batch creates the components and models whose class has a constructor - the app's own tools, resources and prompts (server.mcp.tool(), .resource(), .prompt(), or @mcp.tool and the like on a component) - permissions (server.mcp.permissions, --mcp-deny), progress reports, a call log (--mcp-log) and a response budget Requires trame-common 1.3.0.
This branch has not been deployed
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.
Depends on Kitware/trame-common#37
Agents connect to a running app through the Model Context Protocol, and use what its classes declare with trame-common's markers and mcp= keyword.
Requires trame-common 1.3.0.