Stage 1 - Python 3.12 UVX MCP
本版本已统一改为 Python 3.12。
适用性
以下代码/功能可直接用于 Python 3.12:
async defdict[str, object]类型标注mcp.server.fastmcp.FastMCPpydantic.Fielduv builduv publishuvx
本地准备
py -3.12 --version
py -3.12 -m pip install -U uv
uv python pin 3.12
uv venv --python 3.12
.venv\Scripts\Activate.ps1
uv sync
本地检查
uv run aero-bailian-mcp-demo
这是 stdio MCP 服务,启动后等待客户端连接属于正常现象。
构建
uv build
发布 PyPI
uv publish --token pypi-xxxxxxxx
百炼 UVX 配置
本包的 bailian_mcp_config.json 已显式指定 Python 3.12:
{
"mcpServers": {
"aero-bailian-mcp-demo": {
"name": "aero-bailian-mcp-demo",
"command": "uvx",
"args": ["--python", "3.12", "aero-bailian-mcp-demo"]
}
}
}
注意:如果百炼/FC 的 uvx 运行环境无法提供或下载 Python 3.12,则云端部署仍可能失败; 这属于百炼运行环境限制,不是本项目 Python 代码兼容问题。
Metadata
Release files for aero-bailian-mcp-demo 0.2.0
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.0.tar.gz | 19.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| aero_bailian_mcp_demo-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.3 kB
Release files / aero_bailian_mcp_demo-0.2.0.tar.gz
| Download URL | aero_bailian_mcp_demo-0.2.0.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
203105c72226e2dd10b8f25706a99f81fd928bf41ff0e6818092bfd076dfbc24
|
|
BLAKE2b-256 checksum How to use checksums |
7591916088e71ae884d1d28059fd9dc98c3915d691d59dea669a9179d1add348
|
| 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.0-py3-none-any.whl
| Download URL | aero_bailian_mcp_demo-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3abf8e791191e3efbedf98fbb263905a77c5af1a8a71e4da4c3e5cdd77506ede
|
|
BLAKE2b-256 checksum How to use checksums |
e0c481bd316bdb5aea3ce13c08bd118769daa0a20c6ed81ff7d96b909da63912
|
| 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}
|