{
  "schemaVersion": "1.0",
  "item": {
    "slug": "mcporter-railway-query",
    "name": "Mcporter Railway Query",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query",
    "canonicalUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/mcporter-railway-query",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=mcporter-railway-query",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "README_zh.md",
      "SECURITY.md",
      "SKILL.md",
      "references/query-examples.md",
      "references/station-codes.md"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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"
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/mcporter-railway-query",
    "agentPageUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "mcporter Railway Ticket Query",
        "body": "使用 mcporter 命令行工具查询 12306 中国铁路车票信息。"
      },
      {
        "title": "Prerequisites",
        "body": "安装 mcporter CLI\n配置 12306 MCP 服务器\n确认 mcporter.json 配置路径（默认 ~/.mcporter/mcporter.json）"
      },
      {
        "title": "1. 使用快捷脚本查询",
        "body": "# 查询下午班次 (12:00-18:00)\n./scripts/query-afternoon.sh 2026-02-18 SHH KYH\n\n# 查询全天班次\n./scripts/query-tickets.sh 2026-02-18 AOH HZH\n\n# 查询车站代码\n./scripts/get-station-code.sh \"上海虹桥\""
      },
      {
        "title": "2. 直接 mcporter 命令",
        "body": "# 基础查询\nmcporter call 12306.get-tickets \\\n  date=\"2026-02-18\" \\\n  fromStation=\"AOH\" \\\n  toStation=\"HZH\" \\\n  trainFilterFlags=\"GD\" \\\n  --config ~/.mcporter/mcporter.json\n\n# 下午班次\nmcporter call 12306.get-tickets \\\n  date=\"2026-02-18\" \\\n  fromStation=\"AOH\" \\\n  toStation=\"HZH\" \\\n  trainFilterFlags=\"GD\" \\\n  earliestStartTime=12 \\\n  latestStartTime=18 \\\n  sortFlag=\"startTime\" \\\n  --config ~/.mcporter/mcporter.json"
      },
      {
        "title": "Step 1: 获取车站代码",
        "body": "不知道车站代码时：\n\nmcporter call 12306.get-station-code-of-citys \\\n  citys=\"上海|杭州\" \\\n  --config ~/.mcporter/mcporter.json\n\n或查看参考表 station-codes.md"
      },
      {
        "title": "Step 2: 查询车票",
        "body": "mcporter call 12306.get-tickets \\\n  date=\"YYYY-MM-DD\" \\\n  fromStation=\"出发站代码\" \\\n  toStation=\"到达站代码\" \\\n  [可选过滤参数] \\\n  --config ~/.mcporter/mcporter.json"
      },
      {
        "title": "Step 3: 解析结果",
        "body": "有票: \"有票\" 或显示剩余票数 \"剩余X张票\"\n无票: \"无票\"\n*票: 特殊标记票"
      },
      {
        "title": "Parameters Reference",
        "body": "参数类型默认值说明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"
      },
      {
        "title": "Common Station Codes",
        "body": "城市代码城市代码上海SHH上海虹桥AOH杭州东HZH无锡WXH江阴KYH南京南NKH\n\n完整列表见 station-codes.md"
      },
      {
        "title": "mcporter not found",
        "body": "npm install -g mcporter"
      },
      {
        "title": "12306 MCP 未配置",
        "body": "创建 ~/.mcporter/mcporter.json 配置文件。"
      },
      {
        "title": "查询无结果",
        "body": "确认车站代码正确\n确认日期格式为 YYYY-MM-DD\n检查 mcporter.json 路径"
      },
      {
        "title": "Examples",
        "body": "更多查询示例见 query-examples.md"
      }
    ],
    "body": "mcporter Railway Ticket Query\n\n使用 mcporter 命令行工具查询 12306 中国铁路车票信息。\n\nPrerequisites\n安装 mcporter CLI\n配置 12306 MCP 服务器\n确认 mcporter.json 配置路径（默认 ~/.mcporter/mcporter.json）\nQuick Start\n1. 使用快捷脚本查询\n# 查询下午班次 (12:00-18:00)\n./scripts/query-afternoon.sh 2026-02-18 SHH KYH\n\n# 查询全天班次\n./scripts/query-tickets.sh 2026-02-18 AOH HZH\n\n# 查询车站代码\n./scripts/get-station-code.sh \"上海虹桥\"\n\n2. 直接 mcporter 命令\n# 基础查询\nmcporter call 12306.get-tickets \\\n  date=\"2026-02-18\" \\\n  fromStation=\"AOH\" \\\n  toStation=\"HZH\" \\\n  trainFilterFlags=\"GD\" \\\n  --config ~/.mcporter/mcporter.json\n\n# 下午班次\nmcporter call 12306.get-tickets \\\n  date=\"2026-02-18\" \\\n  fromStation=\"AOH\" \\\n  toStation=\"HZH\" \\\n  trainFilterFlags=\"GD\" \\\n  earliestStartTime=12 \\\n  latestStartTime=18 \\\n  sortFlag=\"startTime\" \\\n  --config ~/.mcporter/mcporter.json\n\nWorkflow\nStep 1: 获取车站代码\n\n不知道车站代码时：\n\nmcporter call 12306.get-station-code-of-citys \\\n  citys=\"上海|杭州\" \\\n  --config ~/.mcporter/mcporter.json\n\n\n或查看参考表 station-codes.md\n\nStep 2: 查询车票\nmcporter call 12306.get-tickets \\\n  date=\"YYYY-MM-DD\" \\\n  fromStation=\"出发站代码\" \\\n  toStation=\"到达站代码\" \\\n  [可选过滤参数] \\\n  --config ~/.mcporter/mcporter.json\n\nStep 3: 解析结果\n有票: \"有票\" 或显示剩余票数 \"剩余X张票\"\n无票: \"无票\"\n*票: 特殊标记票\nParameters Reference\n参数\t类型\t默认值\t说明\ndate\tstring\t必填\t日期格式 YYYY-MM-DD\nfromStation\tstring\t必填\t出发站代码 (如 SHH)\ntoStation\tstring\t必填\t到达站代码 (如 KYH)\ntrainFilterFlags\tstring\t\"\"\tG=高铁, D=动车, GD=高铁+动车\nearliestStartTime\tnumber\t0\t最早出发时间 (0-24)\nlatestStartTime\tnumber\t24\t最晚出发时间 (0-24)\nsortFlag\tstring\t\"\"\tstartTime/arriveTime/duration\nsortReverse\tboolean\tfalse\t是否倒序\nlimitedNum\tnumber\t0\t限制结果数量\nformat\tstring\ttext\ttext/json/csv\nCommon Station Codes\n城市\t代码\t城市\t代码\n上海\tSHH\t上海虹桥\tAOH\n杭州东\tHZH\t无锡\tWXH\n江阴\tKYH\t南京南\tNKH\n\n完整列表见 station-codes.md\n\nTroubleshooting\nmcporter not found\nnpm install -g mcporter\n\n12306 MCP 未配置\n\n创建 ~/.mcporter/mcporter.json 配置文件。\n\n查询无结果\n确认车站代码正确\n确认日期格式为 YYYY-MM-DD\n检查 mcporter.json 路径\nExamples\n\n更多查询示例见 query-examples.md"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query",
    "publisherUrl": "https://clawhub.ai/Lancenas/mcporter-railway-query",
    "owner": "Lancenas",
    "version": "1.0.5",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/mcporter-railway-query",
    "downloadUrl": "https://openagent3.xyz/downloads/mcporter-railway-query",
    "agentUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent",
    "manifestUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/mcporter-railway-query/agent.md"
  }
}