Skip to main content

mcp_admission

Macro mcp_admission 

Source
macro_rules! mcp_admission {
    () => { ... };
}
Available on crate feature unstable_mcp_over_acp only.
Expand description

This macro is used for the value of the to_future_hack parameter of McpServer::with_admission and of the tool registry’s add_tool_admission method.

The agent-client-protocol-rmcp crate re-exports it for the tool_admission method of its MCP server builder.

It expands to |admit, request| Box::pin(admit(request)).

This is needed until return-type notation is stabilized.