← 返回
数据分析 中文

marsbit-news-skill

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,...
通过 marsbit-co 托管的 MCP 路由获取 MarsBit 新闻及快讯数据,用于最新资讯、频道查询、关键词搜索、详情及相关新闻等。
domilin
数据分析 clawhub v1.0.7 1 版本 100000 Key: 无需
★ 0
Stars
📥 578
下载
💾 11
安装
1
版本
#latest

概述

MarsBit OpenNews Skill (Directly Usable)

This skill is designed to work immediately after installation using the hosted

MCP endpoint.

MCP endpoint:

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

Use this endpoint in all commands:

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

Runtime rules

When user asks for MarsBit news/flash info, call MCP tools via curl directly.

Required headers for every MCP POST:

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

Response parsing:

  • MCP wraps tool output in result.content[0].text
  • text is a JSON string; parse it before answering
  • If success is false, surface the error and ask user whether to retry with different params

Tool calls

1) List tools (quick connectivity check)

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) Get news channels

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":"get_news_channels","arguments":{}}}'

3) Get latest news

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":"get_latest_news","arguments":{"limit":10}}}'

4) Search news by keyword

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) Get one news detail by id

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":"get_news_detail","arguments":{"news_id":"20260304151610694513"}}}'

6) Get related news by id

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":"get_related_news","arguments":{"news_id":"20260304151610694513","limit":6}}}'

7) Get latest flash

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":"get_latest_flash","arguments":{"limit":10}}}'

8) Search flash by keyword

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}}}'

Intent -> tool routing

  • Latest news -> get_latest_news
  • News channels -> get_news_channels
  • Keyword news search -> search_news
  • One news detail -> get_news_detail
  • Related by news id -> get_related_news
  • Latest flash -> get_latest_flash
  • Keyword flash search -> search_flash

Backend architecture alignment

This skill relies on the current marsbit-co hosted MCP implementation (/api/mcp), which internally uses:

  • fetcher(..., { marsBit: true }) in src/lib/utils.ts
  • News APIs: /info/news/channels, /info/news/shownews, /info/news/getbyid, /info/news/v2/relatednews
  • Flash API: /info/lives/showlives
  • Search API: /info/assist/querySimilarityInfo (via src/lib/db-marsbit/agent)

ClawHub upload path

Upload this folder directly:

marsbit-co/skills/opennews

Do not upload its parent directory.

Install from GitHub

You can install this skill directly from GitHub when ClawHub is unavailable

(for example, rate-limit errors).

Repository:

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

Example local install:

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

版本历史

共 1 个版本

  • v1.0.7 当前
    2026-03-30 02:34 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 165 📥 59,962
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,083
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,395