Skip to main content

HTTP client proxy for Framework MCP Server (Cursor IDE integration)

Project description

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:8000
  • MCP_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/*

许可证

与主项目相同

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

framework_mcp_client-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

framework_mcp_client-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file framework_mcp_client-0.1.0.tar.gz.

File metadata

  • Download URL: framework_mcp_client-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for framework_mcp_client-0.1.0.tar.gz
Algorithm Hash digest
SHA256 99ed9698bfcbd4ced824850278e815369c386bc77377d0136cb6cb0c8b4ac155
MD5 d1d89e5277fd4d7f59a9fe7cd2af899f
BLAKE2b-256 b588cba8dc833353b77920026031cbfe53fdb75d5f97fb27919ecdb831459c4d

See more details on using hashes here.

File details

Details for the file framework_mcp_client-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for framework_mcp_client-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0c53a2c28bf83e886ebda5251da0a42c711beb6ad99bbb9292b4e9b47aef2a02
MD5 6f990c8f242ed9b2d1a2b113d13d1e67
BLAKE2b-256 fa49db7133ad88db16cf9f4f508f84670c2d2086cffd92950c500b9118b49dca

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page