1428
return;
1429
}
1431
>
// MCP side-channel: requests targeting an `mcp://` channel carry the
1432
>
// channel URI in `params.channel`. We forward them through the
1433
>
// agent service, which routes by `<providerId>/<sessionId>/<serverName>`
1434
>
// to the owning agent's MCP App implementation. Unknown channels and
1435
>
// unknown methods are rejected with `-32601`.
1436
>
const mcpChannel = readMcpChannel(params);
1437
>
if (mcpChannel !== undefined) {
1438
const paramsObj = isParamsObject(params) ? params : undefined;
1439
this._agentService.handleMcpRequest(mcpChannel, method, paramsObj).then(result => {