Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

using-heavy-mcps使用重型 mcp

Agent Skill

using-heavy-mcps 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

559

周安装

24

GitHub Stars

2

下载量

196
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:using-heavy-mcps(使用重型 mcp)
来源仓库:https://github.com/nweii/agent-stuff
仓库路径:skills/using-heavy-mcps
安装命令:
npx skills add https://github.com/nweii/agent-stuff --skill using-heavy-mcps
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/nweii/agent-stuff --skill using-heavy-mcps

简介

用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装使用。
  • 安装前需确认权限范围、维护状态及是否触发联网或文件操作。
  • using-heavy-mcps 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Token-Efficient MCP Usage via MCPorter

When working with MCPs that return large payloads—like Sanity queries with full document content or Brain vault searches with entire file contents—you can route these calls through mcporter outside of chat, trim the output with jq, and feed only the compact result back to the model. This avoids the 20–40k token bloat that comes from loading full responses into context.

When to Use This Pattern

Use mcporter + jq when:

  • Large responses: Sanity queries returning full documents, Brain vault searches with file contents
  • Repeated queries: You need the same data multiple times and only care about specific fields
  • Field filtering: The MCP returns 50 fields but you only need 3
  • Chained operations: Multiple MCP calls where each bloats context
  • List operations: Getting 100 items but only needing titles and IDs

Don't use this pattern when:

  • Exploring unfamiliar data (let Cursor call MCP directly to see full structure)
  • Response is already small (< 1000 tokens)
  • You need the full response for analysis

The Core Pattern

The basic workflow:

  1. Run MCP outside chat via bunx mcporter call
  2. Pipe to jq to extract only needed fields
  3. Feed compact result back into chat
  4. Save as one-liner for reuse
bunx mcporter call 'MCP-Name.tool_name(param: "value")' | jq 'filter'

Alternative syntaxes:

# Shorthand (infers 'call' command)
bunx mcporter 'MCP-Name.tool_name(param: "value")' | jq 'filter'

# Structured JSON output (useful for error handling)
bunx mcporter call 'MCP-Name.tool_name(param: "value")' --output json | jq 'filter'

Two Approaches: jq vs CallResult Helpers

mcporter responses include built-in helpers that can replace jq for simple extractions. Choose based on your needs:

Option A: Built-in CallResult Helpers (Simpler)

mcporter returns results wrapped in a CallResult object with helper methods:

# Extract plain text only (strips all metadata/formatting)
bunx mcporter call 'Brain.vault(action: "search", query: "portfolio")' | node -e "console.log(JSON.parse(require('fs').readFileSync(0)).result.text())"

# Get markdown format
# Similar node one-liner but calling .markdown()

# Get parsed JSON
# Similar but calling .json()

When to use: Simple text extraction, when you want markdown, or when you need the full JSON object.

Limitation: Less flexible than jq for complex filtering/transforming.

Option B: jq Filtering (More Powerful)

jq is a command-line JSON filter. Think of it as "grep for JSON."

Basic patterns:

# Get specific fields from each item in array
jq '[.[] | {id: ._id, title: .title}]'

# Limit to first 5 results
jq '.results[:5]'

# Extract nested field
jq '.results[] | .frontmatter.description'

# Combine: first 3 items, specific fields
jq '.results[:3] | [.[] | {path: .path, desc: .frontmatter.description}]'

# Filter by condition
jq '[.[] | select(.status == "published")]'

When to use: Precise field selection, transforming data structure, filtering by conditions, combining multiple operations.

Recommendation: Start with jq since it's more flexible and works across any JSON output, not just mcporter.

Usage Examples

For concrete examples of using this pattern with Sanity and Brain Vault MCPs, see EXAMPLES.md.

Integration Patterns

Pattern 1: One-liners in chat

When you need compact data mid-conversation, run the command and paste the filtered output:

User: "Can you review my portfolio projects? Here's the data:"
<paste result of mcporter + jq command>

Pattern 2: Embedding in other Cursor rules

Add mcporter commands to rules that need specific data:

## Portfolio Context

When discussing portfolio work, use this to fetch current project list:

<command>
bunx mcporter call 'Sanity Developer.query_documents(
  resource: {projectId: "xyz", dataset: "production"},
  query: "*[_type == \"project\"]"
)' | jq '[.[] | {title: .title, role: .role}]'
</command>

Pattern 3: Save as shell alias

Add to your .zshrc for frequently-used queries:

alias portfolio-list='bunx mcporter call '"'"'Sanity Developer.query_documents(
  resource: {projectId: "xyz", dataset: "production"},
  query: "*[_type == \"project\"]"
)'"'"' | jq "[.[] | {title: .title, slug: .slug.current}]"'

Then just run: portfolio-list

When to Just Use Cursor's MCP Calls

Let Cursor call MCPs directly when:

  • Exploring: You don't know the response structure yet
  • Small responses: The data is already compact
  • Interactive filtering: You want to iteratively refine what you're looking for
  • One-off questions: Not worth the setup overhead

The mcporter pattern is for repeatability and token efficiency, not every MCP interaction.

Avoiding Token Waste on Failed Calls

Set timeouts to fail fast:

# Don't wait forever for a hung MCP call
bunx mcporter call 'Brain.vault(action: "search", query: "test")' --timeout 10000

Default timeout is 30 seconds. For slow operations, increase it. For quick checks, decrease it.

Check auth before expensive queries:

# Verify authentication status
bunx mcporter config get "Sanity Developer"

# If auth is required, do it once
bunx mcporter auth "Sanity Developer"

This prevents loading huge error messages into context when auth fails.

Use --output json for programmatic error handling:

bunx mcporter call 'Brain.vault(action: "search", query: "test")' --output json

The structured envelope makes it easier to detect failures without loading full error traces into context.

Debugging Tips

Check available MCPs:

bunx mcporter list

See tool signatures and schemas:

bunx mcporter list Brain --schema
bunx mcporter list "Sanity Developer" --schema

Test without jq first:

bunx mcporter call 'Brain.vault(action: "search", query: "test")'

Then add jq filtering once you see the structure.

Format jq output for readability:

... | jq '.'
# vs compact:
... | jq -c '.'

Real-World Token Savings

Before (direct MCP call in chat):

  • Sanity query for 10 projects with full content: ~25,000 tokens
  • Brain vault search returning 5 notes: ~15,000 tokens

After (mcporter + jq):

  • Same Sanity query, titles/IDs only: ~500 tokens
  • Same vault search, metadata only: ~300 tokens

Savings: 95%+ reduction for typical filtered queries.

Additional Resources

Official mcporter documentation: Available via Context7 at /steipete/mcporter

Key docs to reference:

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

38.27%
按下载量换算75

Claude

28.04%
按下载量换算55

Cursor

19.48%
按下载量换算38

Gemini CLI

8.75%
按下载量换算17

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/nweii/agent-stuff --skill using-heavy-mcps 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills