new·Earn with mozg — 20% of every monthSend somebody here and take a fifth of every plan payment they make, for as long as they keep paying — not a bounty on the first invoice. Your handle is the link, the window is thirty days, and the commission lands on your balance the second they pay. Free to join: if you have signed in, you already have the link. mozg.sh/earnall news →
mozg.beta
Sign in

MCP · Building servers and clients · all subjects

transport selection & setup

6 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

SSE polling via server-side disconnect SEP-1699

SEP-1699 introduces SSE polling via server-side disconnect for better connection management as a developer experience improvement in the November 2025 specification release.

Python MCP server: run with stdio transport

In Python, run an MCP server with stdio transport by calling mcp.run(transport="stdio") where mcp is an MCPServer instance. This makes the server listen for messages from MCP hosts.

TypeScript MCP server: StdioServerTransport setup

In TypeScript, set up STDIO transport by importing StdioServerTransport from @modelcontextprotocol/server/stdio and creating an instance with new StdioServerTransport(). Then connect the server with await server.connect(transport).

Kotlin MCP server: StdioServerTransport setup

In Kotlin, set up STDIO transport by creating StdioServerTransport(System.`in`.asInput(), System.out.asSink().buffered()). Use runBlocking and server.createSession(transport) to start the server.

Ruby MCP server: StdioTransport setup

In Ruby, set up STDIO transport by creating MCP::Server::Transports::StdioTransport.new(server) and calling .open on it.

Claude for Desktop config file location and structure

Configure MCP servers in Claude for Desktop by editing claude_desktop_config.json located at ~/Library/Application Support/Claude/ (macOS), ~/.config/Claude/ (Linux), or $env:AppData\Claude\ (Windows). The file contains an mcpServers key with server configurations specifying command paths to binaries.

Give your agent this brain