闲社服务运行正常AI智能体自动化平台
m

MarsBit新闻

技能标识:marsbit-opennews

Fetch MarsBit news and flash data through the hosted MCP route in marsbit-co. Use this for latest news, channel lookup, keyword search, detail, related news, and flash updates.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.7
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

MarsBit新闻

技能名称: marsbit-opennews
详细描述:

MarsBit OpenNews 技能(可直接使用)

该技能设计为安装后即可通过托管的 MCP 端点立即使用。

MCP 端点:

  • - https://www.marsbit.co/api/mcp

在所有命令中使用此端点:

bash
MCP_URL=https://www.marsbit.co/api/mcp

运行时规则

当用户询问 MarsBit 新闻/快讯信息时,直接通过 curl 调用 MCP 工具。

每次 MCP POST 请求所需的请求头:

  • - Content-Type: application/json
  • Accept: application/json, text/event-stream
  • mcp-protocol-version: 2025-11-25

响应解析:

  • - MCP 将工具输出包装在 result.content[0].text 中
  • text 是一个 JSON 字符串;在回答前需进行解析
  • 如果 success 为 false,则显示错误信息,并询问用户是否使用不同参数重试

工具调用

1) 列出工具(快速连接检查)

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:1,method:tools/list,params:{}}

2) 获取新闻频道

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:2,method:tools/call,params:{name:getnewschannels,arguments:{}}}

3) 获取最新新闻

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:3,method:tools/call,params:{name:getlatestnews,arguments:{limit:10}}}

4) 按关键词搜索新闻

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:4,method:tools/call,params:{name:search_news,arguments:{keyword:bitcoin,limit:10}}}

5) 按 ID 获取单条新闻详情

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:5,method:tools/call,params:{name:getnewsdetail,arguments:{news_id:20260304151610694513}}}

6) 按 ID 获取相关新闻

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:6,method:tools/call,params:{name:getrelatednews,arguments:{news_id:20260304151610694513,limit:6}}}

7) 获取最新快讯

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:7,method:tools/call,params:{name:getlatestflash,arguments:{limit:10}}}

8) 按关键词搜索快讯

bash
curl -sS -X POST $MCP_URL \
-H Content-Type: application/json \
-H Accept: application/json, text/event-stream \
-H mcp-protocol-version: 2025-11-25 \
-d {jsonrpc:2.0,id:8,method:tools/call,params:{name:search_flash,arguments:{keyword:ETF,limit:10}}}

意图 -> 工具路由

  • - 最新新闻 -> getlatestnews
  • 新闻频道 -> getnewschannels
  • 关键词新闻搜索 -> searchnews
  • 单条新闻详情 -> getnewsdetail
  • 按新闻 ID 获取相关新闻 -> getrelatednews
  • 最新快讯 -> getlatestflash
  • 关键词快讯搜索 -> searchflash

后端架构对齐

该技能依赖于当前 marsbit-co 托管的 MCP 实现(/api/mcp),其内部使用:

  • - src/lib/utils.ts 中的 fetcher(..., { marsBit: true })
  • 新闻 API:/info/news/channels、/info/news/shownews、/info/news/getbyid、/info/news/v2/relatednews
  • 快讯 API:/info/lives/showlives
  • 搜索 API:/info/assist/querySimilarityInfo(通过 src/lib/db-marsbit/agent)

ClawHub 上传路径

直接上传此文件夹:

marsbit-co/skills/opennews

不要上传其父目录。

从 GitHub 安装

当 ClawHub 不可用时(例如,速率限制错误),您可以直接从 GitHub 安装此技能。

仓库:

  • - https://github.com/domilin/marsbit-news-skill

本地安装示例:

bash
git clone https://github.com/domilin/marsbit-news-skill /tmp/marsbit-news-skill
mkdir -p ~/.openclaw/skills/opennews
cp -R /tmp/marsbit-news-skill/openclaw-skill/opennews/* ~/.openclaw/skills/opennews/
openclaw skills list

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 marsbit-news-skill-1776273199 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 marsbit-news-skill-1776273199 技能

通过命令行安装

skillhub install marsbit-news-skill-1776273199

下载

⬇ 下载 marsbit-opennews v1.0.7(免费)

文件大小: 3.34 KB | 发布时间: 2026-4-16 16:20

v1.0.7 最新 2026-4-16 16:20
- Added a README.md file with instructions for installing the skill directly from GitHub.
- Provided example commands for cloning and copying the skill for manual installation.
- No changes to core features or functionality.
返回顶部