← 返回 Skills 市场
986
总下载
0
收藏
2
当前安装
7
版本数
在 OpenClaw 中安装
/install mcporter-railway-query
功能描述
通过 mcporter CLI 查询中国铁路票务信息。适用于用户想要搜索 G/D/C 车票、查看列车时刻表、查询座位可用性或规划中国城市之间的铁路旅行。支持按日期、时间范围、列车类型进行筛选,并对结果进行排序。
安全使用建议
This skill is a lightweight wrapper that runs the mcporter CLI; before installing, verify you trust the mcporter package source (npm) and inspect your ~/.mcporter/mcporter.json. The MCP server URL in that config is the endpoint that will receive your queries — prefer a trusted or local server (e.g., 127.0.0.1) to avoid sending requests to an unknown remote service. The scripts do not perform booking or store credentials, but they will call whatever MCP server you configure, so treat the server URL as sensitive and review it if you have privacy or security concerns.
功能分析
Type: OpenClaw Skill
Name: mcporter-railway-query
Version: 1.1.0
The skill is a legitimate wrapper for the `mcporter` CLI tool designed to query Chinese railway (12306) ticket information. It provides helper bash scripts (e.g., `scripts/query-tickets.sh`, `scripts/get-station-code.sh`) and documentation that facilitate searching for train schedules and station codes. The analysis found no evidence of malicious intent, data exfiltration, or prompt injection; the scripts use standard practices for parameter handling and the `SECURITY.md` file explicitly outlines the tool's limited, read-only scope.
能力评估
Purpose & Capability
Name/description match the code and docs: helper shell scripts call the mcporter CLI to query 12306 MCP endpoints. The requested artifacts (mcporter CLI and a mcporter.json config) are expected for this functionality.
Instruction Scope
SKILL.md and scripts only instruct running mcporter with user-supplied parameters and reading a config file (default ~/.mcporter/mcporter.json). They do not attempt to read unrelated files, access other environment variables, or transmit data to hidden endpoints in the repository itself.
Install Mechanism
No install spec in the skill bundle; developer recommends installing mcporter via npm in documentation. The repository contains only small shell scripts and reference docs — no downloads or archive extraction from untrusted URLs.
Credentials
The skill declares no required environment variables or credentials. The only config referenced is the user's mcporter.json (expected to hold MCP server URL). There are no unrelated credentials requested.
Persistence & Privilege
The skill is not 'always' enabled, does not modify other skills or system-wide settings, and does not persist secrets. Scripts are runtime helpers only.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install mcporter-railway-query - 安装完成后,直接呼叫该 Skill 的名称或使用
/mcporter-railway-query触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
feat: default query includes all train types (G/D/C); remove --all flag; docs and security statement improvements
v1.0.9
feat: query-tickets.sh and query-afternoon.sh now include all train types (G/D/C) by default; remove --all flag; update docs to reflect unified query behavior
v1.0.8
fix: remove misleading 'booking' claim from description (query-only skill); fix security docs to transparently disclose mcporter CLI subprocess usage; fix invalid GDC filter value in examples (not supported by API)
v1.0.7
feat: add --all flag to include C-type intercity trains in query scripts; fix Hangzhou East station code (HGH); fix get-station-code.sh set -e fallback logic; update project structure docs
v1.0.6
- Added version and license fields to SKILL.md metadata.
- Fixed YAML property quoting and formatting in the metadata block.
- Updated station codes table: changed "杭州东" to "杭州".
- General minor documentation clarifications and consistency improvements.
v1.0.5
- Updated the skill description in SKILL.md for improved clarity, using simplified Chinese.
- No functional or workflow changes; documentation only.
v1.0.4
- Added a comprehensive usage guide in SKILL.md, including prerequisites, quick start scripts, direct CLI usage, and parameter reference.
- Documented workflow for querying and booking Chinese railway tickets with mcporter CLI via 12306.
- Provided troubleshooting tips and common station codes for convenience.
- Linked to further references and example queries for user support.
元数据
常见问题
Mcporter Railway Query 是什么?
通过 mcporter CLI 查询中国铁路票务信息。适用于用户想要搜索 G/D/C 车票、查看列车时刻表、查询座位可用性或规划中国城市之间的铁路旅行。支持按日期、时间范围、列车类型进行筛选,并对结果进行排序。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 986 次。
如何安装 Mcporter Railway Query?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install mcporter-railway-query」即可一键安装,无需额外配置。
Mcporter Railway Query 是免费的吗?
是的,Mcporter Railway Query 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Mcporter Railway Query 支持哪些平台?
Mcporter Railway Query 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Mcporter Railway Query?
由 Lance(@lancenas)开发并维护,当前版本 v1.1.0。
推荐 Skills