# Send Mcporter Railway Query Repo to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mcporter-railway-query-repo",
    "name": "Mcporter Railway Query Repo",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query-repo",
    "canonicalUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query-repo",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/mcporter-railway-query-repo",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mcporter-railway-query-repo",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "README_zh.md",
      "SECURITY.md",
      "SKILL.md",
      "references/query-examples.md",
      "references/station-codes.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/mcporter-railway-query-repo"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mcporter-railway-query-repo",
    "downloadUrl": "https://openagent3.xyz/downloads/mcporter-railway-query-repo",
    "agentUrl": "https://openagent3.xyz/skills/mcporter-railway-query-repo/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mcporter-railway-query-repo/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mcporter-railway-query-repo/agent.md"
  }
}
```
## Documentation

### mcporter Railway Ticket Query

使用 mcporter 命令行工具查询 12306 中国铁路车票信息。

### Prerequisites

安装 mcporter CLI
配置 12306 MCP 服务器
确认 mcporter.json 配置路径（默认 ~/.mcporter/mcporter.json）

### 1. 使用快捷脚本查询

# 查询下午班次 (12:00-18:00)
./scripts/query-afternoon.sh 2026-02-18 SHH KYH

# 查询全天班次
./scripts/query-tickets.sh 2026-02-18 AOH HZH

# 查询车站代码
./scripts/get-station-code.sh "上海虹桥"

### 2. 直接 mcporter 命令

# 基础查询
mcporter call 12306.get-tickets \\
  date="2026-02-18" \\
  fromStation="AOH" \\
  toStation="HZH" \\
  trainFilterFlags="GD" \\
  --config ~/.mcporter/mcporter.json

# 下午班次
mcporter call 12306.get-tickets \\
  date="2026-02-18" \\
  fromStation="AOH" \\
  toStation="HZH" \\
  trainFilterFlags="GD" \\
  earliestStartTime=12 \\
  latestStartTime=18 \\
  sortFlag="startTime" \\
  --config ~/.mcporter/mcporter.json

### Step 1: 获取车站代码

不知道车站代码时：

mcporter call 12306.get-station-code-of-citys \\
  citys="上海|杭州" \\
  --config ~/.mcporter/mcporter.json

或查看参考表 station-codes.md

### Step 2: 查询车票

mcporter call 12306.get-tickets \\
  date="YYYY-MM-DD" \\
  fromStation="出发站代码" \\
  toStation="到达站代码" \\
  [可选过滤参数] \\
  --config ~/.mcporter/mcporter.json

### Step 3: 解析结果

有票: "有票" 或显示剩余票数 "剩余X张票"
无票: "无票"
*票: 特殊标记票

### Parameters Reference

参数类型默认值说明datestring必填日期格式 YYYY-MM-DDfromStationstring必填出发站代码 (如 SHH)toStationstring必填到达站代码 (如 KYH)trainFilterFlagsstring""G=高铁, D=动车, GD=高铁+动车earliestStartTimenumber0最早出发时间 (0-24)latestStartTimenumber24最晚出发时间 (0-24)sortFlagstring""startTime/arriveTime/durationsortReversebooleanfalse是否倒序limitedNumnumber0限制结果数量formatstringtexttext/json/csv

### Common Station Codes

城市代码城市代码上海SHH上海虹桥AOH杭州东HZH无锡WXH江阴KYH南京南NKH

完整列表见 station-codes.md

### mcporter not found

npm install -g mcporter

### 12306 MCP 未配置

创建 ~/.mcporter/mcporter.json 配置文件。

### 查询无结果

确认车站代码正确
确认日期格式为 YYYY-MM-DD
检查 mcporter.json 路径

### Examples

更多查询示例见 query-examples.md
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Lancenas
- Version: 1.0.2
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/mcporter-railway-query-repo)
- [Send to Agent page](https://openagent3.xyz/skills/mcporter-railway-query-repo/agent)
- [JSON manifest](https://openagent3.xyz/skills/mcporter-railway-query-repo/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/mcporter-railway-query-repo/agent.md)
- [Download page](https://openagent3.xyz/downloads/mcporter-railway-query-repo)