Skip to main content

MCP

Scope: SessionRpc (per-session operations tied to a Session) For an overview of RPC and the list of all RPC pages, see RPC.

MCP Apps (experimental)

You can call MCP Apps RPCs from $session->rpc()->mcp()->apps(). listTools() and callTool() require originServerName, the name of the calling MCP server. The result of callTool() is returned as a free-form MCP result.
readResource() returns resource data such as HTML. The SDK doesn’t render in a browser or manipulate iframes, so rendering the retrieved content is the responsibility of the calling application.

mcp reloadWithConfig (disabled servers on reload)

When you pass configuration to reloadWithConfig(), configuredDisabledServers is the list of servers disabled by settings that your application resolved. Specify it separately from the session-level disabledServers and the CLI’s cliEnabledServers. Settings-based disabling has lower priority than CLI enabling and explicit session disabling, so don’t merge configuredDisabledServers into disabledServers.
Last modified on November 19, 2026