Basic information
About mcp-code-guidance Server
这是一个使用 Python 语言从 0 到 1 搭建 MCP server 的代码学习教程
mcp-code-guidance is a MCP server in the Developer Tools category listed in the AddMCP.net directory, published by JavaPentesters. Supported transport: stdio. Runtime: shell. License: GPL-3.0 license. Source code is hosted on github.com.
Setup
{
"mcpServers": {
"mcp-code-guidance": {
"command": "python",
"args": [
"-m",
"http.server",
"8181"
]
}
}
}
{
"mcpServers": {
"mcp-code-guidance": {
"command": "python",
"args": [
"-m",
"http.server",
"8181"
]
}
}
}
{
"servers": {
"mcp-code-guidance": {
"command": "python",
"args": [
"-m",
"http.server",
"8181"
]
}
}
}
mcp-code-guidance config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-code-guidance": {
"command": "python",
"args": [
"-m",
"http.server",
"8181"
]
}
}
}
mcp-code-guidance tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is mcp-code-guidance?
mcp-code-guidance is a tutorial for learning the MCP (Model Context Protocol) and A2A (Agent-to-Agent) protocol from scratch using Python. It focuses on the interaction between agents and external tools as well as collaboration between agents, and provides example MCP server implementations and a detailed tutorial.
How to use mcp-code-guidance?
Clone or download the repository, ensure Python 3.10+ and the uv package manager are installed. Then navigate into a specific example directory (e.g., mcp-server-01quickstart) and run uv init, uv venv, source .venv/bin/activate, and uv add "mcp[cli]" httpx to set up the environment. Detailed steps are provided in the README for each example.
Key features of mcp-code-guidance
- Provides step‑by‑step tutorials for MCP and A2A protocols
- Includes multiple ready‑to‑run MCP server examples (quickstart, weather, stock)
- Uses Python 3.10+ and the FastMCP library
- Managed with
uvfor clean project isolation - Covers the three MCP capabilities: Tool, Resource, and Prompt
- Licensed under MIT for open‑source use
Use cases of mcp-code-guidance
- Learning how to build a basic MCP server from scratch
- Implementing a weather‑query MCP service (see
mcp-server-02weather) - Building a stock‑price MCP service (see
mcp-server-03stock) - Understanding how MCP tools, resources, and prompts work in practice
- Exploring A2A agent‑to‑agent collaboration alongside MCP
Frequently asked questions
1 What are the required dependencies?
Python 3.10+ and the FastMCP library. The examples also use httpx and the mcp CLI package.
2 How do I set up the project environment?
Use the uv package manager: run uv init (specifying Python 3.11), uv venv, source .venv/bin/activate, then uv add "mcp[cli]" httpx.
3 What MCP capabilities are covered in this tutorial?
The tutorial covers all three MCP capabilities: Tool (direct function calls), Resource (context information), and Prompt (reusable templates).
4 Where does each example code live?
Each example is in its own directory under the repository root: mcp-server-01quickstart, mcp-server-02weather, mcp-server-03stock. A tutorial/ directory contains detailed development guides.
5 What is the official MCP resource linked in the README?
The README links to https://modelcontextprotocol.io/introduction for the official MCP introduction.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In