Add your description here
Project description
AstrBot MCP Server
本项目是一个基于 FastMCP 的 AstrBot MCP 服务器,通过 HTTP 与已有的 AstrBot 实例交互。
本地运行
在项目根目录执行(需要安装 uv):
uv sync
uv run --project . astrbot-mcp
如果看到 FastMCP 的 banner,说明服务启动成功。
MCP 配置(使用 uv + console script)
在支持 MCP 的客户端中,推荐使用如下配置来启动本服务(示例为 JSON):
{
"mcpServers": {
"astrbot-mcp": {
"command": "uv",
"args": [
"run",
"--project",
"/path/to/astrbotmcp",
"astrbot-mcp"
],
"env": {
"ASTRBOT_BASE_URL": "http://127.0.0.1:6185",
"ASTRBOT_TIMEOUT": "30",
"ASTRBOT_DEFAULT_PROVIDER": "your-provider-id",
"ASTRBOT_DEFAULT_MODEL": "your-model-id"
}
}
}
}
注意:
- 使用
uv而不是系统python,避免跑到全局 Python 3.13 环境。 - 使用
--project /path/to/astrbotmcp指定项目路径。 - 使用
astrbot-mcp(console script),它会调用astrbot_mcp.server:main。
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
astrbotmcp-0.1.0.tar.gz
(10.4 kB
view details)
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 astrbotmcp-0.1.0.tar.gz.
File metadata
- Download URL: astrbotmcp-0.1.0.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8fc5098db02d1f173686ed80d9c56acc2d185a7d08dee62b849a368595044bae
|
|
| MD5 |
75276f0bb31a8feda4554e6e2732d52b
|
|
| BLAKE2b-256 |
8209b183facaec1446730880fced5c7a654c11ad106d2dbc79aaca643803b53e
|
File details
Details for the file astrbotmcp-0.1.0-py3-none-any.whl.
File metadata
- Download URL: astrbotmcp-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6b66d044a5c83d6935143cd9d2323b0f3cc58278ea14b15837f5474c3ccab59
|
|
| MD5 |
389fd892c2a8a3f8e1f327f7ad3d7ef7
|
|
| BLAKE2b-256 |
02d4f63f4f9d3cd1a61ca354964157d24df6c83784e218e1bab4e1b91bacc181
|