typescript
2 questions
- AI
When do I drop down to the Agent SDK instead of using filesystem agents?
The Agent SDK is for building Claude-powered applications, not for using Claude Code itself. Use programmatic agents (defined in code via `agents` in query options) when you need dynamic agent definitions, when you are integrating into your own app, or when filesystem markdown is too static for your runtime.
- AI
How do I build a small MCP server my team can use?
Use @modelcontextprotocol/sdk with stdio transport for local servers and Streamable HTTP for remote. Tools need a name, a description (what the LLM reads), and a Zod input schema. Wire to Claude Code with `claude mcp add` or a `.mcp.json` entry.