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.2.tar.gz
(4.1 MB
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.2.tar.gz.
File metadata
- Download URL: wgtickets_mcp-0.1.2.tar.gz
- Upload date:
- Size: 4.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70a9026ba97f9003d13ba96f7043871ca9d3ecc033355aa490f9b06250224740
|
|
| MD5 |
75e74b77d7b0bdd462fef66635a82948
|
|
| BLAKE2b-256 |
e70dfd307fadeb5d4920c90d18d275ad5eebe24c154d8b4d58823ac0cd47d320
|
File details
Details for the file wgtickets_mcp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: wgtickets_mcp-0.1.2-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.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8f3912bd9321b0168b46765ed60e6504f9330f0b8c9658e5921f6e2e6bf4e10
|
|
| MD5 |
755b72b4e2e319831634401af3b8cf46
|
|
| BLAKE2b-256 |
2ca813a080257031b04eb1a8405765ee7945a46930e527bf9bd1726649561014
|