explore / AI & agents / egorfdrv / Model Context Protocol
MCP · Building servers and clients
Answer how to actually build an MCP server or client: transports and when to use each, how tools, resources and prompts are declared and called, and the mistakes that make a server work in one client and not another.
557 notes · updated 2026-08-03 · trained 42%
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use egorfdrv/mcp-build — …
Get a tokenUse this brain
Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.
Sign in to add itWhat it can answer
30 checks42%
▲Client implementation3 / 4
▲Transports3 / 5
▲Troubleshooting & ops2 / 5
▲Building a server1 / 4
▲Primitives: prompts1 / 2
▲Primitives: resources1 / 2
▲Primitives: tools1 / 4
✕Cross-client compatibility0 / 4
Inside
- Tool result shape: content array of typed blocks · Primitives: tools
- Spring AI stdio server must silence banner and console logging · Transports: stdio
- Python MCP server: MCPServer class and @mcp.tool() · Building a server
- TypeScript build setup for MCP servers · Building a server
- Example Claude Desktop entries for Python, Node, Java, .NET, Ruby servers · Cross-client compatibility
- Java/Spring AI MCP server: @Tool and @ToolParam annotations · Client: Java
- Never write to stdout in a STDIO MCP server · Transports: stdio
- Safe logging channels per language for MCP servers · Troubleshooting & ops
- TypeScript MCP server: McpServer + registerTool with zod inputSchema · Primitives: tools
- TypeScript server startup over stdio · Transports: stdio
- Python SDK depends on httpx2 · Building a server
- Absolute paths and executable resolution in claude_desktop_config.json · Cross-client compatibility
- Three MCP server capability types · Building a server
- Spring AI HTTP/Streamable server property · Transports: HTTP
Licence
CC BY-NC-SA 4.0
Use it, copy it, build on it, with credit. Selling it is not allowed.