Add your description here
Project description
Chatppt MCP Server (Python)
搭建Python虚拟环境
我们推荐通过uv构建虚拟环境来运行MCP server,关于`uv你可以在这里找到一些说明。
按照官方流程,你会安装Python包管理工具uv。除此之外,你也可以尝试其他方法(如Anaconda)来创建你的Python虚拟环境。
通过uv添加mcp依赖
uv add "mcp[cli]"
验证mcp依赖是否安装成功,执行如下命令
uv run mcp
当出现下图时代表安装成功
通过uv安装python,最低版本要求为3.11
uv python install 3.11
获取 MCP Server
配置本地项目
通过uv创建一个项目
uv init mcp_server
将chatppt.py拷贝到该目录下,通过如下命令测试mcp server是否正常运行
uv run --with mcp[cli] mcp run {YOUR_PATH}/mcp_server/ppt.py
# 如果是mac,需要加转义符
uv run --with mcp\[cli\] mcp run {YOUR_PATH}/mcp_server/ppt.py
如果没有报错则MCP Server启动成功
在Cursor中使用
打开Cursor配置,在MCP中添加MCP Server
在文件中添加如下内容后保存
{
"mcpServers": {
"chatppt": {
"command": "uv",
"args": [
"run",
"--with",
"mcp[cli]",
"mcp",
"run",
"{YOUR_PATH}/mcp_server/ppt.py"
],
"env": {
"API_KEY": "<YOUR_YOO_API_KEY>"
}
}
}
}
对应的API Key需要到www.yoo-ai.com进行生成。 参考教程为:教程链接
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcp_chatppt-1.0.1.tar.gz.
File metadata
- Download URL: mcp_chatppt-1.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5152df11cebf64efbcbe12825ab5e2ea18fb3a5319f9f2215f9ed88a7b667b41
|
|
| MD5 |
3a3ecbbee3462f104d8b633131f11bb9
|
|
| BLAKE2b-256 |
6eceb250da06307b1d30b06fb6cabf222c2c7e3c18610256f8fd45cf4efd94ca
|
File details
Details for the file mcp_chatppt-1.0.1-py3-none-any.whl.
File metadata
- Download URL: mcp_chatppt-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e1113ffea79ec8c70723b2bf8116cb4523ef0532bf781eb96d7e7cf97b94f81
|
|
| MD5 |
c5ad5b91444d4ec92001e7077b781817
|
|
| BLAKE2b-256 |
1eb379208f1105aae80cf0b6a147bb8d9abd011da4026ee749f9c794eaca8a5b
|