返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
m

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
安全检测
已通过
320
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

marsbit-opennews

# 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: ```bash 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) ```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) Get news channels ```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":"get_news_channels","arguments":{}}}' ``` ### 3) Get latest news ```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":"get_latest_news","arguments":{"limit":10}}}' ``` ### 4) Search news by keyword ```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) Get one news detail by 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":"get_news_detail","arguments":{"news_id":"20260304151610694513"}}}' ``` ### 6) Get related news by 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":"get_related_news","arguments":{"news_id":"20260304151610694513","limit":6}}}' ``` ### 7) Get latest flash ```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":"get_latest_flash","arguments":{"limit":10}}}' ``` ### 8) Search flash by keyword ```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}}}' ``` ## 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: ```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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部