FC Compatible Stage-1 MCP
原因
FC 日志显示此前配置强制使用:
uvx --python 3.12 aero-bailian-mcp-demo
FC 因此在冷启动时下载 Python 3.12(约 20.3 MiB),而百炼 MCP 客户端在下载完成前断开 SSE 连接,导致工具列表获取失败。
修复
- 本地仍然可以用 Python 3.12 开发、构建和发布。
- 云端不再强制
--python 3.12。 - 项目兼容 Python 3.10~3.12。
- 版本升级为 0.2.1。
本地构建(继续用 Python 3.12)
py -3.12 -m pip install -U uv
uv venv --python 3.12
.venv\Scripts\Activate.ps1
uv sync
uv build
发布
uv publish --token pypi-你的Token
百炼 MCP 配置
{
"mcpServers": {
"aero-bailian-mcp-demo": {
"command": "uvx",
"args": [
"aero-bailian-mcp-demo"
]
}
}
}
不要再加 --python 3.12。
Metadata
Release files for aero-bailian-mcp-demo 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| aero_bailian_mcp_demo-0.2.1.tar.gz | 35.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aero_bailian_mcp_demo-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.5 kB
Release files / aero_bailian_mcp_demo-0.2.1.tar.gz
| Download URL | aero_bailian_mcp_demo-0.2.1.tar.gz |
|---|---|
| Size | 35.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a5299e093dfdcd9b5e5a739e9b314932d9b4f2b3dbee2c91422ea4afa1690d1
|
|
BLAKE2b-256 checksum How to use checksums |
a32f32b96d9c7dda0a6e4de8a70d3045737e848fb716a49e4ae7044fcc44ef0f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / aero_bailian_mcp_demo-0.2.1-py3-none-any.whl
| Download URL | aero_bailian_mcp_demo-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4875c20efbdb69353b055105d1c1f202656a3c67898a23bf91e0059f04d0fd11
|
|
BLAKE2b-256 checksum How to use checksums |
47658d4a83a549bb2016dddf7b87850b34dff6b3c50cc7c05e00c20d2baf22b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.12.6 {"installer":{"name":"uv","version":"0.12.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|