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)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a66aed1b29d4a3117c8e031aaf9914a82f91ded1ce21f66df9fcd424cf7fc55
|
|
| MD5 |
d9d0b3b06c94912bac0994963d714065
|
|
| BLAKE2b-256 |
51a9435619440e9e5fa72453a76daedbd955153dc2c4bc148ea59d36355f3057
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d83ba14ece6b25a436a6d30a27ec6b85adf9a31763b459c36b632b011fe2e731
|
|
| MD5 |
c8624499ff7bc0593c6f8309ecd927fa
|
|
| BLAKE2b-256 |
3cb1d2c9f66232ed9fdcffe943c1aff7dc8d650d2535a1809bfec97309d58034
|