Token导航 LogoToken导航TokenDH.com
mcpc MCP logo
开发工具stdio官方级别未说明来源级核验

mcpc MCP

MCP Server

Mcp server scaffolding tool

工具数

0

提示词数

0

GitHub Stars

7

资源数

0
服务器模板PythonClaudeClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

vlyl

提供方

vlyl

最后核验

2026/5/18 03:27

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

python server.py --test

详细介绍

多路单载波

主控程序 (模型上下文协议)服务器模板生成器

引言

mcpc 是一个命令行工具,为MCP(模型上下文协议)服务器项目生成脚手架。它可以帮助您快速设置一个具有所有必要文件和配置的结构正确的项目。

特性

  • 为TypeScript或Python生成MCP服务器模板
  • 支持多个包管理器(pnpm、yarn、npm用于TypeScript;uv用于Python)
  • 自动依赖项安装
  • 系统依赖性验证
  • Git存储库初始化
  • 遵循MCP官方文件的完整项目结构
  • Python测试模式,用于在没有Claude的情况下验证服务器功能
  • 包括配置文件和最佳实践

安装

先决条件

  • Rust和Cargo(可通过以下方式安装 安宁)

构建和安装

使用Make:

# Build and install in one step
make install

或直接使用Cargo:

# Install from local repository
cargo install --path .

用法

基本用法:

mcpc project_name [options]

选项:

  • -l, --language:要使用的编程语言(py/python,ts/typescript,默认:typescript)
  • -t, --tool:要使用的包管理器工具:

- 对于TypeScript:pnpm(默认)、yarn、npm - 对于Python:uv(默认)

示例:

# Create a TypeScript project named 'weather-api' using pnpm
mcpc weather-api -l ts -t pnpm

# Create a Python project named 'mcp-server' using uv
mcpc mcp-server -l py -t uv

生成的项目结构

TypeScript项目

project_name/
├── .gitignore
├── .prettierignore
├── .prettierrc
├── package.json
├── README.md
├── tsconfig.json
├── build/
└── src/
    └── index.ts

Python项目

project_name/
├── .gitignore
├── pyproject.toml
├── README.md
├── requirements.txt
├── server.py
└── .venv/

使用生成的项目

python

# Activate virtual environment
source .venv/bin/activate  # On Windows: .venv\Scripts\activate

# Install dependencies (if not already installed)
uv pip install -r requirements.txt

# Test server functionality without Claude
python server.py --test

# Run server for Claude integration
python server.py

TypeScript

# Install dependencies (if not already installed)
pnpm install  # or: yarn / npm install

# Build the project
pnpm run build  # or: yarn build / npm run build

# Run server
node build/index.js

Claude桌面集成

要与Claude for Desktop集成,请在Claude的配置文件中配置您的服务器:

{
  "mcpServers": {
    "weather": {
      "command": "uv",  // or "node" for TypeScript
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PROJECT",
        "run",
        "server.py"  // or "build/index.js" for TypeScript
      ]
    }
  }
}

发展

可用的生成命令

make              # Build the project (same as 'make build')
make build        # Build the project in debug mode
make release      # Build the project in release mode
make install      # Build in release mode and install
make run          # Run the project in debug mode
make run-release  # Run the project in release mode
make test         # Run tests
make docs         # Generate and open documentation
make clean        # Clean build artifacts
make fmt          # Format code with rustfmt
make check        # Check for compilation errors
make clippy       # Run Clippy lints

从源代码构建

git clone https://github.com/yourusername/mcpc.git
cd mcpc
make install

许可证

此项目根据MIT许可证获得许可-请参阅 许可证 文件以获取详细信息。

目录标签

目录标签

服务器模板PythonClaudedeveloper-toolsmcpcserver-scaffoldingmcp-generatorMCP协议Rust本地部署脚手架工具TypeScript

支持客户端

Claude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

工具数量(toolCount,工具数)

0

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdionone部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP