MyFirstMcpServer logo

MyFirstMcpServer

by YingHe-1

MyFirstMcpServer is a desktop TXT file management tool based on the MCP framework. It provides functionalities to count, list, and create TXT files on the desktop.

View on GitHub

Last updated: N/A

MyFirstMcpServer

基于MCP框架的桌面TXT文件管理工具,提供以下功能:

  1. 统计桌面上的TXT文件数量
  2. 列出桌面上的所有TXT文件
  3. 在桌面创建新的TXT文件(带用户交互确认)

安装

# 克隆仓库
git clone https://github.com/YingHe-1/MyFirstMcpServer.git
cd MyFirstMcpServer

# 安装依赖
pip install -r requirements.txt

使用方法

python add_num.py

工具函数

  • count_desktop_txt_files(): 统计桌面TXT文件数量
  • list_desktop_txt_files(): 列出桌面TXT文件
  • create_desktop_txt_file(filename, content): 创建桌面TXT文件

技术栈

  • Python 3
  • MCP (Model-Context-Protocol) 框架