MCP-Server for Programmers
@zaizaizhao
About MCP-Server for Programmers
一个为程序员学习助力的Model Context Protocol服务器。
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mcp-for-programmer": {
"command": "npx",
"args": [
"mcp-for-programmer"
]
}
}
}Tools
3帮助新手程序员理解代码,分析技术栈和最佳实践
基于用户提供的产品概念,自动生成结构完整的产品需求文档(PRD)和高保真交互原型,二者深度融合于一个单页HTML中,适合产品团队评审、路演和开发落地。
我正在刷typescript-challenge,根据我提供的ts代码段,分析这段TypeScript代码中使用的高级类型技术,提供最佳实践和使用场景示例,适合正在学习TypeScript类型系统的开发者
Overview
What is MCP-Server for Programmers?
MCP-Server for Programmers is a Model Context Protocol server designed to help programmers understand and learn code. It parses code through prompt templates, providing code explanations, technical stack analysis, and best practice suggestions to assist junior developers in grasping complex code.
How to use MCP-Server for Programmers?
Install via npm (npm install mcp-for-programmer) or clone the repository. Start the server using commands like npx mcp-for-programmer (stdio) or with flags for other transports: --transport sse --port 3322. Create YAML prompt templates in the prompts directory; they are automatically loaded and registered as tools. The server can also be debugged with MCP Inspector.
Key features of MCP-Server for Programmers
- Supports multiple transports (stdio, SSE, streamable, HTTP Stream)
- YAML prompt templates with variable substitution and conditional rendering
- Automatic conversion of prompts into MCP tools
- Built-in Express server providing REST API endpoints
- Integration with MCP Inspector for easy debugging
- Standardized prompt specifications for consistency and maintainability
Use cases of MCP-Server for Programmers
- Explain code functionality and implementation details for any programming language
- Analyze a project’s technical stack and architecture
- Provide code optimization and best practice suggestions
- Generate product requirement documents and prototype designs via prompts
- Assist junior programmers in rapidly understanding unfamiliar codebases
FAQ from MCP-Server for Programmers
What transports are supported?
The server supports stdio, SSE, streamable, and HTTP Stream transports. Use the appropriate --transport flag when starting.
How do I create a new prompt template?
Create a .yaml file in the prompts directory following the schema defined in prompt-schema.yaml. The file must include a name, description, optional arguments, and messages.
What API endpoints are available?
The built-in Express server provides GET /api/models, POST /api/query, GET /api/prompts, and GET /api/prompts/:filename for querying models and managing prompts.
What are the runtime dependencies?
The project uses TypeScript, Node.js, Express.js, the Model Context Protocol SDK, Rollup for building, YAML parsing, and Zod for validation.
Where is the prompt data stored and is authentication required?
Prompt templates are stored locally as YAML files in the prompts directory. The README does not mention any authentication mechanisms for the server.
Frequently asked questions
What transports are supported?
The server supports stdio, SSE, streamable, and HTTP Stream transports. Use the appropriate `--transport` flag when starting.
How do I create a new prompt template?
Create a `.yaml` file in the `prompts` directory following the schema defined in `prompt-schema.yaml`. The file must include a name, description, optional arguments, and messages.
What API endpoints are available?
The built-in Express server provides `GET /api/models`, `POST /api/query`, `GET /api/prompts`, and `GET /api/prompts/:filename` for querying models and managing prompts.
What are the runtime dependencies?
The project uses TypeScript, Node.js, Express.js, the Model Context Protocol SDK, Rollup for building, YAML parsing, and Zod for validation.
Where is the prompt data stored and is authentication required?
Prompt templates are stored locally as YAML files in the `prompts` directory. The README does not mention any authentication mechanisms for the server.
Basic information
More Other MCP servers
AutoBrowser MCP
autobrowser-aiBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
ghidraMCP
LaurieWiredMCP Server for Ghidra
Blender
ahujasidOpen-source MCP to use Blender with any LLM
Reactive Resume
amruthpillaiA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Comments