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.0.tar.gz (17.8 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.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wgtickets_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 17.8 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.0.tar.gz
Algorithm Hash digest
SHA256 2a66aed1b29d4a3117c8e031aaf9914a82f91ded1ce21f66df9fcd424cf7fc55
MD5 d9d0b3b06c94912bac0994963d714065
BLAKE2b-256 51a9435619440e9e5fa72453a76daedbd955153dc2c4bc148ea59d36355f3057

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wgtickets_mcp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d83ba14ece6b25a436a6d30a27ec6b85adf9a31763b459c36b632b011fe2e731
MD5 c8624499ff7bc0593c6f8309ecd927fa
BLAKE2b-256 3cb1d2c9f66232ed9fdcffe943c1aff7dc8d650d2535a1809bfec97309d58034

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