Framework MCP Client
轻量级 HTTP 客户端代理,用于将 Cursor IDE 的 stdio 请求转发到远程 Framework MCP 服务器。
安装
从本地项目安装
# 进入客户端目录
cd client
# 使用 pip 安装
pip install -e .
# 或使用 uv
uv pip install -e .
从 Git 仓库安装(如果已发布)
pip install git+https://github.com/your-org/framework-mcp.git#subdirectory=client
从 PyPI 安装(如果已发布)
pip install framework-mcp-client
使用方法
在 Cursor IDE 中配置
在 Cursor 的 mcp.json 配置文件中添加:
{
"mcpServers": {
"framework-mcp": {
"command": "framework-mcp-client",
"env": {
"MCP_SERVER_URL": "http://your-server:8000",
"MCP_SERVER_TOKEN": "可选:如果服务端开启鉴权"
}
}
}
}
环境变量
MCP_SERVER_URL(必需):MCP 服务器的 HTTP 地址,例如http://localhost:8000MCP_SERVER_TOKEN(可选):如果服务器启用了认证,提供 Bearer Token
验证安装
# 检查命令是否可用
which framework-mcp-client # Linux/Mac
where framework-mcp-client # Windows
# 测试连接(需要服务器运行)
echo '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' | framework-mcp-client
依赖
- Python 3.11+
- httpx >= 0.25.0
打包发布
构建分发包
cd client
python -m build
发布到 PyPI
pip install twine
twine upload dist/*
发布到内部 PyPI
twine upload --repository internal dist/*
许可证
与主项目相同
Metadata
Release files for framework-mcp-client 0.1.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 | Provenance | |
|---|---|---|---|---|
| framework_mcp_client-0.1.0.tar.gz | 3.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| framework_mcp_client-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.1 kB
Release files / framework_mcp_client-0.1.0.tar.gz
| Download URL | framework_mcp_client-0.1.0.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99ed9698bfcbd4ced824850278e815369c386bc77377d0136cb6cb0c8b4ac155
|
|
BLAKE2b-256 checksum How to use checksums |
b588cba8dc833353b77920026031cbfe53fdb75d5f97fb27919ecdb831459c4d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Release files / framework_mcp_client-0.1.0-py3-none-any.whl
| Download URL | framework_mcp_client-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c53a2c28bf83e886ebda5251da0a42c711beb6ad99bbb9292b4e9b47aef2a02
|
|
BLAKE2b-256 checksum How to use checksums |
fa49db7133ad88db16cf9f4f508f84670c2d2086cffd92950c500b9118b49dca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.0
|
Security for framework-mcp-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.