Skip to content

refactor(mcp): simplify generated code via runtime invoker adapters#3926

Open
jknack wants to merge 1 commit intomainfrom
3924
Open

refactor(mcp): simplify generated code via runtime invoker adapters#3926
jknack wants to merge 1 commit intomainfrom
3924

Conversation

@jknack
Copy link
Copy Markdown
Member

@jknack jknack commented Apr 24, 2026

  • Introduced McpOperation to cleanly encapsulate static routing metadata and runtime arguments.
  • Refactored McpInvoker to act as a factory, providing strongly-typed adapters (asToolHandler, asCompletionHandler, etc.) for both stateful and stateless servers.
  • Updated APT generator (McpRouter, McpRoute) to output clean method references instead of complex, boilerplate-heavy lambda chains.

- Introduced `McpOperation` to cleanly encapsulate static routing metadata and runtime arguments.
- Refactored `McpInvoker` to act as a factory, providing strongly-typed adapters (`asToolHandler`, `asCompletionHandler`, etc.) for both stateful and stateless servers.
- Updated APT generator (`McpRouter`, `McpRoute`) to output clean method references instead of complex, boilerplate-heavy lambda chains.
@jknack jknack added this to the 4.5.0 milestone Apr 24, 2026
@jknack jknack added the mcp label Apr 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant