Skip to main content

Add your description here

Project description

开发者工具 MCP 服务器

一个专为开发者设计的 MCP (Model Context Protocol) 服务器,提供常用的开发工具功能。

功能特性

🛠️ 工具 (Tools)

  • format_json: JSON 格式化工具,美化 JSON 字符串
  • count_lines: 文件统计工具,统计行数、字符数等信息
  • list_files: 文件列表工具,列出目录下的文件并可按扩展名过滤

📄 资源 (Resources)

  • project://info: 获取当前项目的基本信息

💡 提示词 (Prompts)

  • code_review_prompt: 生成代码审查提示词

安装与运行

环境要求

  • Python >= 3.13
  • mcp[cli] >= 1.13.0

安装依赖

pip install mcp[cli]

运行服务器

python main.py

使用示例

格式化 JSON

# 输入混乱的 JSON
format_json('{"name":"张三","age":25}')
# 输出格式化的 JSON

统计文件信息

count_lines("main.py")
# 返回文件的行数、字符数等统计信息

列出文件

list_files(".", ".py")
# 列出当前目录下所有 Python 文件

比赛信息

本项目参加蓝耘元生代MCP广场:开启服务调用新旅程比赛

  • 分类:开发者工具
  • 特点:简单实用,本地 stdio 运行
  • 目标:为开发者提供便捷的日常开发工具

技术架构

  • 基于 FastMCP 框架
  • 使用 stdio 传输协议
  • 支持工具、资源和提示词三种功能类型
  • 轻量级设计,易于部署和使用

许可证

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aouyi_develop_mcp_demo-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aouyi_develop_mcp_demo-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file aouyi_develop_mcp_demo-0.1.0.tar.gz.

File metadata

File hashes

Hashes for aouyi_develop_mcp_demo-0.1.0.tar.gz
Algorithm Hash digest
SHA256 011a9e6b8ef28598643dbe3bec22887e8e133919d529a433a5f11ae8c98e506c
MD5 e7cc30c73dd83264499430e4c5fdd762
BLAKE2b-256 0e9e2f0065bb6b41b6531bd9155f479bcbadd4dcf1bb4016cf5476cfb6aa688b

See more details on using hashes here.

File details

Details for the file aouyi_develop_mcp_demo-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for aouyi_develop_mcp_demo-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8b70e6b753b6caa34ba4309c7b1ef4377037cf93f75b4d202ffc90bd30bc854
MD5 1ab6a592a3a9aa009f0da014e506366e
BLAKE2b-256 b9caa4867053e4354ccf2a66a33f77a6e900368834e829914f20eb7b07d52d90

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page