Build an MCP server that answers questions about your codebase in about 100 lines of Python
TL;DR A custom MCP server in Python is one file: create an MCPServer from the official mcp SDK, put @mcp.tool() on plain functions, call mcp.run() . On mcp 1.x the same class is FastMCP . The server below parses a repo with the stdlib ast module into an import graph and exposes three tools: who_imp…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-12-03 13:00 · DEV Community — AI
Build an MCP server that answers questions about your codebase in about 100 lines of Python
More stories
- Open-weight model wave: Qwen4-35B-A3B, MedGemma 2, MiniMax M4 and Amazon Ergo 1.1T released — Anthropic (X)
- OpenAI expands Dots AI agents to ChatGPT Plus users worldwide, including Europe — OpenAI News
- Mistral launches Crashtral, a physics foundation model for vehicle crash simulation — Mistral AI News
- Jensen Huang faces bruising Senate hearing over AI chip smuggling to China — NVIDIA Newsroom
- DeepSeek May Withhold Future Open-Source Model Releases Over Safety Concerns — Bloomberg AI
- Bitcoin falls to two-year low amid AI encryption fears — Bloomberg AI
- Joint statement from Amazon, Anthropic, Apple, Cloudflare, Google, Microsoft, OpenAI, and Oracle on transition to post-quantum cryptography — Anthropic (X)
- Salesforce and OpenAI launch ChatGPTforce to bring CRM workflows into ChatGPT — Salesforce AI Blog
Read the Daily Brief: the day's most important AI stories →