nsmcp::Protocol method dispatch (public)
<instance of nsmcp::Protocol> dispatch context method params
Defined in /usr/local/ns/tcl/nsmcp/protocol.tcl
Dispatch an authenticated MCP protocol method. Handle initialization and tool operations using the configured registry and request authorizer.
- Parameters:
- context (required)
- Authenticated request context carrying the principal, grants and selected server.
- method (required)
- MCP protocol method or HTTP method, depending on the adapter.
- params (required)
- Rooted typed JSON-RPC parameters.
- Returns:
- The rooted JSON protocol result or notification result.
- Testcases:
- No testcase defined.
![[i]](/resources/acs-subsite/ZoomIn16.gif)