Skip to main content

WG Tickets MCP - 航班查询MCP服务

Project description

MCP Bridge

将各业务 HTTP API 桥接到 MCP 协议,让 AI Agent 可以通过 MCP 直接调用业务接口。

安装

pip install mcp-bridge
# 或
uvx mcp-bridge

配置

环境变量(必须配置)

变量名 说明 必填
GDS_BASE_URL API 基础地址
GDS_DEFAULT_USERID 默认用户ID
MCP_TRANSPORT 传输模式: stdio/sse
MCP_HOST SSE模式监听地址
MCP_PORT SSE模式端口

Claude Desktop 配置

{
  "mcpServers": {
    "mcp-bridge": {
      "command": "uvx",
      "args": ["mcp-bridge"],
      "env": {
        "GDS_BASE_URL": "your-api-url",
        "GDS_DEFAULT_USERID": "your-user-id"
      }
    }
  }
}

阿里百炼 配置

{
  "mcpServers": {
    "mcp-bridge": {
      "command": "uvx",
      "args": ["mcp-bridge"],
      "env": {
        "GDS_BASE_URL": "your-api-url",
        "GDS_DEFAULT_USERID": "your-user-id"
      }
    }
  }
}

Docker 部署

docker build -t mcp-bridge .
docker run -d -p 8080:8080 \
  -e GDS_BASE_URL=your-api-url \
  -e GDS_DEFAULT_USERID=your-user-id \
  mcp-bridge

可用工具

gds_search_flight

搜索航班并获取价格信息。

参数 类型 必填 说明
flights array 航程列表
passengers array 乘客列表
carriers array 航司代码列表
transfer boolean 是否允许转机

License

MIT

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

wgtickets_mcp-0.1.1.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

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

wgtickets_mcp-0.1.1-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file wgtickets_mcp-0.1.1.tar.gz.

File metadata

  • Download URL: wgtickets_mcp-0.1.1.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wgtickets_mcp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c4d799e198eefcc0128e1b0110855863bb5eae658382c295142cdb5b3fa60419
MD5 1e0e14aa166c50424eb2390d5c43a42d
BLAKE2b-256 eb23420646afcb14859d224f1201a79011e8e81e2d90531671c75485ccba14f5

See more details on using hashes here.

File details

Details for the file wgtickets_mcp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: wgtickets_mcp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for wgtickets_mcp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c0dcc580307cf7b83112a443926d563fadbe1da54d9ed763913ab8dac9e7631
MD5 145f4986054b0b4a71cca3be01ba5e31
BLAKE2b-256 a78f4d3de70f758bd9ac475fa5ba402f2563de44c60d896ad1467ffbd439e2f9

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