WA

wirasm/automagical-mcp-builder

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

33 stars 21 forks 质量 58 趋势 11

wirasm/automagical-mcp-builder 是一个从 https://github.com/wirasm/automagical-mcp-builder. 导入的 MCP 服务器候选。

概览

wirasm/automagical-mcp-builder 是一个从 https://github.com/wirasm/automagical-mcp-builder. 导入的 MCP 服务器候选。

概述(AI 翻译)

一个用于使用垂直切片架构创建模型上下文协议(MCP)服务器的模板和构建器。该仓库为构建带有Claude代码自动化的自定义MCP服务器提供了完整基础。

特色

你好,世界MCP服务器(模板)

一个全面的MCP服务器模板,展示了所有核心MCP功能并支持完整配置:

  • 工具:LLM可以调用的交互式函数

  • say_hello_tool - 生成个性化问候语(可配置)

  • get_server_info_tool - 获取服务器信息和功能

  • 资源:只读数据源

  • hello-world://status - 服务器状态和健康信息

  • hello-world://usage-stats - 基本使用统计

  • hello-world://config - 当前服务器配置(非敏感)

  • 提示词:可重复使用的提示模板

  • formal_greeting - 生成正式问候提示

  • casual_greeting - 生成随意问候提示

  • 传输支持:多运输机制

  • stdio - 适用于 Claude Desktop 和本地客户端

  • SSE - 用于基于网页的集成

  • WebSocket - 用于实时应用

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

MCP Builder

A template and builder for creating Model Context Protocol (MCP) servers using vertical slice architecture. This repository provides a complete foundation for building custom MCP servers with Claude Code automation.

Features

Hello World MCP Server (Template)

A comprehensive MCP server template demonstrating all core MCP functionality with full configuration support:

  • Tools: Interactive functions LLMs can call

    • say_hello_tool - Generate personalized greetings (configurable)
    • get_server_info_tool - Get server information and capabilities
  • Resources: Read-only data sources

    • hello-world://status - Server status and health information
    • hello-world://usage-stats - Basic usage statistics
    • hello-world://config - Current server configuration (non-sensitive)
  • Prompts: Reusable prompt templates

    • formal_greeting - Generate formal greeting prompts
    • casual_greeting - Generate casual greeting prompts
  • Transport Support: Multiple transport mechanisms

    • stdio - For Claude Desktop and local clients
    • SSE - For web-based integrations
    • WebSocket - For real-time applications
  • Configuration: Full environment-based configuration

    • Feature toggles for all components
    • Customizable messages and behaviors
    • Transport selection and network settings
    • Debug and logging controls

How to Use This Template

This template uses Claude Code with automated PRP (Product Requirement Prompt) workflows to build custom MCP servers. Follow these steps to create your own MCP server:

1. Clone and Setup

# Clone this repository
git clone [email protected]:Wirasm/automagical-mcp-builder.git
cd automagical-mcp-builder

# Install dependencies
uv sync

2. Install Claude Code

Ensure you have Claude Code installed:

  • Visit Claude Code for installation instructions
  • Verify Claude Code is working in your project directory

2.1. Add Library Documentation (Optional)

If your MCP server needs to integrate with specific APIs or libraries, add their documentation:

# Add library documentation for Claude to reference
touch ai_docs/.md

Paste the API documentation into the file and save it. Reference it in your PRP description so Claude can use it during generation.

3. Generate Your MCP Server PRP

Use Claude Code to create a Product Requirement Prompt for your specific MCP server:

# Run the MCP initialization command with Claude Code
/command .claude/commands/mcp_init.md $ARGUMENTS

Replace $ARGUMENTS with a detailed description of what you want to build. The more detail, the better!

Examples:

# Example 1: GitHub integration
/command .claude/commands/mcp_init.md "Build an MCP server for GitHub integration that allows LLMs to create issues, read repository information, and manage pull requests with OAuth authentication"

# Example 2: Weather service
在 GitHub 查看完整 README

安装

npx @modelcontextprotocol/inspector python src/main_server.py
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "hello-world": { "command": "uv", "args": ["run", "python", "src/main_server.py"], "cwd": "/absolute/path/to/automagical-mcp-builder", "env": { "MCP_HELLO_TRANSPORT_TYPE": "stdio", "MCP_HELLO_DEFAULT_GREETING": "Hello", "MCP_HELLO_LOG_LEVEL": "INFO" } } } }