Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计提醒

mcp-code-executionMCP 代码 execution

Agent Skill

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

总安装

539

周安装

22

GitHub Stars

264

下载量

172
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:mcp-code-execution(MCP 代码 execution)
来源仓库:https://github.com/athola/claude-night-market
仓库路径:skills/mcp-code-execution
安装命令:
npx skills add https://github.com/athola/claude-night-market --skill mcp-code-execution
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/athola/claude-night-market --skill mcp-code-execution

简介

用于安全执行跨模块代码操作与工作流编排。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

  • 评估内存、CPU 与网络等资源消耗风险后再启动任务。
  • 支持与性能专项技能联动,实现精细化管控。
  • 启用前需充分理解各环节副作用,避免误改关键数据。
  • mcp-code-execution 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Table of Contents

MCP Code Execution Hub

Quick Start

Basic Usage


# Run the main command

python -m module_name

# Show help

python -m module_name --help ```

**Verification**: Run with `--help` flag to confirm installation.

## When To Use

- **Automatic**: Keywords: `code execution`, `MCP`, `tool chain`, `data pipeline`, `MECW`
- **Tool Chains**: >3 tools chained sequentially
- **Data Processing**: Large datasets (>10k rows) or files (>50KB)
- **Context Pressure**: Current usage >25% of total window (proactive context management)

> **MCP Tool Search (Claude Code 2.1.7+)**: When MCP tool descriptions exceed 10% of context, tools are automatically deferred and discovered via MCPSearch instead of being loaded upfront. This reduces token overhead by ~85% but means tools must be discovered on-demand. Haiku models do not support tool search. Configure threshold with `ENABLE_TOOL_SEARCH=auto:N` where N is the percentage.

> **Subagent MCP Access Fix (Claude Code 2.1.30+)**: SDK-provided MCP tools are now properly synced to subagents. Prior to 2.1.30, subagents could not access SDK-provided MCP tools — workflows delegating MCP tool usage to subagents were silently broken. No workarounds needed on 2.1.30+.

> **Claude.ai MCP Connectors (Claude Code 2.1.46+)**: Users logged into Claude Code with a claude.ai account may have additional MCP tools auto-loaded from claude.ai/settings/connectors. These tools contribute to the tool search threshold count. If workflows unexpectedly trigger tool search or context inflation, check `/mcp` for claude.ai-sourced connectors. Known reliability issue: connectors can silently disappear (GitHub #21817).

> **MCP Prompt Cache Fix (Claude Code 2.1.70+)**: MCP servers with instructions connecting after the first turn no longer bust the prompt cache. Previously, a late-connecting MCP server would invalidate cached prompt prefixes, increasing token costs for the rest of the session. On 2.1.70+, prompt cache reuse is preserved regardless of when MCP servers connect.

> **ToolSearch Reliability Fix (Claude Code 2.1.70+)**: Empty model responses after ToolSearch are fixed. The server was rendering tool schemas with system-prompt-style tags that could confuse models into stopping early. ToolSearch-heavy workflows (many deferred MCP tools) are now more reliable.

## When NOT To Use

- Simple tool calls that don't chain
- Context pressure is low and tools are fast

## Core Hub Responsibilities

- Orchestrates MCP code execution workflow
- Routes to appropriate specialized modules
- Coordinates MECW compliance across submodules
- Manages token budget allocation for submodules

## Required TodoWrite Items

1. `mcp-code-execution:assess-workflow`
2. `mcp-code-execution:route-to-modules`
3. `mcp-code-execution:coordinate-mecw`
4. `mcp-code-execution:synthesize-results`

## Step 1 – Assess Workflow (`mcp-code-execution:assess-workflow`)

### Workflow Classification

def classify_workflow_for_mecw(workflow): """Determine appropriate MCP modules and MECW strategy"""

if has_tool_chains(workflow) and workflow.complexity == 'high': return { 'modules': ['mcp-subagents', 'mcp-patterns'], 'mecw_strategy': 'aggressive', 'token_budget': 600 } elif workflow.data_size > '10k_rows': return { 'modules': ['mcp-patterns', 'mcp-validation'], 'mecw_strategy': 'moderate', 'token_budget': 400 } else: return { 'modules': ['mcp-patterns'], 'mecw_strategy': 'conservative', 'token_budget': 200 }


**Verification:** Run the command with `--help` flag to verify availability.

### MECW Risk Assessment

Delegate to mcp-validation module for detailed risk analysis:

def delegate_mecw_assessment(workflow): return mcp_validation_assess_mecw_risk( workflow, hub_allocated_tokens=self.token_budget * 0.5 )


**Verification:** Run the command with `--help` flag to verify availability.

## Step 2 – Route to Modules (`mcp-code-execution:route-to-modules`)

### Module Orchestration

class MCPExecutionHub: def __init__(self): self.modules = { 'mcp-subagents': MCPSubagentsModule(), 'mcp-patterns': MCPatternsModule(), 'mcp-validation': MCPValidationModule() }

def execute_workflow(self, workflow, classification): results = []

# Execute modules in optimal order for module_name in classification['modules']: module = self.modules[module_name] result = module.execute( workflow, mecw_budget=classification['token_budget'] // len(classification['modules']) ) results.append(result)

return self.synthesize_results(results)


**Verification:** Run the command with `--help` flag to verify availability.

## Step 3 – Coordinate MECW (`mcp-code-execution:coordinate-mecw`)

### Cross-Module MECW Management

- Monitor total context usage across all modules
- Enforce 50% context rule globally
- Coordinate external state management
- Implement MECW emergency protocols

## Step 4 – Synthesize Results (`mcp-code-execution:synthesize-results`)

### Result Integration

def synthesize_module_results(module_results): """Combine results from MCP modules into structured output"""

return { 'status': 'completed', 'token_savings': calculate_savings(module_results), 'mecw_compliance': verify_mecw_rules(module_results), 'hallucination_risk': assess_hallucination_prevention(module_results), 'results': consolidate_results(module_results) }


**Verification:** Run the command with `--help` flag to verify availability.

## Module Integration

### Available Modules

- See `modules/mcp-coordination.md` for cross-module orchestration
- See `modules/mcp-patterns.md` for common MCP execution patterns
- See `modules/mcp-subagents.md` for subagent delegation strategies
- See `modules/mcp-validation.md` for MECW compliance validation

### With Context Optimization Hub

- Receives high-level MECW strategy from context-optimization
- Returns detailed execution metrics and compliance data
- Coordinates token budget allocation

### Performance Skills Integration

- uses python-performance-optimization through mcp-patterns
- Aligns with cpu-gpu-performance for resource-aware execution
- validates optimizations maintain MECW compliance

## Emergency Protocols

### Hub-Level Emergency Response

When MECW limits exceeded:

1. Delegates immediately to mcp-validation for risk assessment
2. Route to mcp-subagents for further decomposition
3. Apply compression through mcp-patterns
4. Return minimal summary to preserve context

## Success Metrics

- **Workflow Success Rate**: >95% successful module coordination
- **MECW Compliance**: 100% adherence to 50% context rule
- **Token Efficiency**: Maintain >80% savings vs traditional methods
- **Module Coordination**: <5% overhead for hub orchestration

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.93%
按下载量换算62

Claude

32.3%
按下载量换算56

Cursor

17.57%
按下载量换算30

Gemini CLI

10.45%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

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

来源信息

继续浏览同类 Skills