Function: stdio()
stdio(
registry,info,stdin?,stdout?):Promise<void>
Defined in: packages/mcp/src/mcp.ts:35
The registry as an MCP server on this process's stdin and stdout, the way a host launches one. Resolves when the host disconnects, once every request already received has been answered; a handler that never settles keeps the process alive. Handlers must not write to stdout: that is the protocol's channel.
Parameters
registry
info
description?
string
icons?
object[]
name
string
title?
string
version
string
websiteUrl?
string
stdin?
Readable = process.stdin
stdout?
Writable = process.stdout
Returns
Promise<void>