机场Web命令行工具

一个生产就绪的命令行工具,用于通过终端搜索机场、航空公司和航线。

  • by ktmcp-cli
  • JavaScript
  • 本地部署
  • 更新于
在 GitHub 查看 ktmcp-cli/airportweb

使用说明

“六个月前,每个人都在谈论MCP。我当时想,拧紧MCP。每个MCP作为CLI都会更好。”

— 彼得·斯坦伯格OpenClaw创始人 在YouTube上观看(~2:39:00) | 莱克斯·弗里德曼播客#491

机场Web CLI

用于Airport Web API的生产就绪CLI。直接从您的航站楼搜索机场、航空公司和路线。

安装

npm install -g @ktmcp-cli/airportweb

配置

无需身份验证-机场网络API是公开的。

airportweb config list

用法

机场

# Search airports by name or city
airportweb airports search "London"
airportweb airports search "JFK"

# Get airport by IATA code
airportweb airports get JFK
airportweb airports get LHR

# List airports
airportweb airports list
airportweb airports list --limit 20

# List airports by country
airportweb airports by-country US
airportweb airports by-country DE

航空公司

# List airlines
airportweb airlines list
airportweb airlines list --limit 30

# Get airline by IATA code
airportweb airlines get AA
airportweb airlines get BA

# Search airlines
airportweb airlines search "Delta"
airportweb airlines search "Lufthansa"

路线

# Get routes from an airport
airportweb routes get --from JFK

# Get routes to an airport
airportweb routes get --to LHR

# Get routes between airports
airportweb routes get --from JFK --to LHR

# Search routes with filters
airportweb routes search --from JFK --airline AA
airportweb routes search --from LAX --to SFO

JSON输出

所有命令支持 --json 对于机器可读输出:

airportweb airports get JFK --json
airportweb airports search "London" --json | jq '.[].iata_code'
airportweb routes get --from JFK --json

例子

# Find all airports in Germany
airportweb airports by-country DE

# Search for Delta airlines
airportweb airlines search "Delta" --json

# Get all routes from LAX
airportweb routes get --from LAX --json | jq '.[].arr_iata' | sort | uniq

许可证

麻省理工学院


支持KTMCP

如果您发现此CLI有用,我们将非常感谢您的支持!分享您的经验:

  • 红迪
  • 推特/X
  • 黑客新闻

激励: 能够证明他们的支持/倡导有助于推进KTMCP的用户将优先考虑他们的功能请求和问题。

请注意,这些是真实的账户和真实的社区。真实的提及和真实的推荐会有很长的路要走!

支持这个项目

如果您发现此CLI有用,我们将感谢Reddit、Twitter、Hacker News或Moltbook的支持。请注意,这些是真实的社区账户。能够证明其支持有助于推进KTMCP的贡献者将优先考虑其PR和功能请求。