Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

model-enhancement-servers模型增强服务器

Agent Skill

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

总安装

339

周安装

14

GitHub Stars

公开资料未说明

下载量

111
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:model-enhancement-servers(模型增强服务器)
来源仓库:https://github.com/zpankz/mcp-skillset
仓库路径:skills/model-enhancement-servers
安装命令:
npx skills add zpankz/mcp-skillset --skill "model-enhancement-servers"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "model-enhancement-servers"

简介

用于在 Codex、Claude、Cursor 和 Gemini CLI 中查找、检索和筛选相关信息。

  • 适合根据关键词或任务场景快速定位候选结果。
  • 通过 npx skills add zpankz/mcp-skillset --skill "model-enhancement-servers" 安装。
  • 建议确认权限范围和维护状态,避免触发联网或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Model Enhancement Servers

*Based on MCP Protocol Version: 2025-06-18*

Overview

Model enhancement servers are a specialized category of MCP servers that extend LLM capabilities not by wrapping external APIs, but by providing structured reasoning frameworks, persistence mechanisms, and cognitive workflow guidance.

Wrapper Servers vs. Model Enhancement Servers

Wrapper servers are like keys that open specific chests with specific treasures. They provide access to external services (Supabase, Gmail, Airtable) and are essential for integrating LLMs with existing systems.

Model enhancement servers are like pen and paper: general-purpose cognitive tools natively designed for LLM use. They extend the model's abilities across a variety of circumstances, not just specific API integrations.

Think of model enhancement servers as a bullet journal for AI. The model documents information with the server, which does basic heuristic processing to signal completion of steps and define next scopes. By directing the AI to consider only a small set of concerns during ongoing transactions, performance improves in tasks requiring memory, reasoning, and runtime lookup.

The Context Window Benefit

Similar to how Getting Things Done (GTD) helps humans by offloading thoughts into documents, model enhancement servers help LLMs process more effectively. When we write down one thought instead of juggling a hundred, we can focus better. Context window management is critical to all entities that use attention—a scarce resource.

"Do Nothing" as a core feature of Model Enhancement Servers

A model enhancement server does not *do* anything, any more than a real bullet journal "does" anything: its value is entirely tied to how well it facilitates the agentic process it's meant to support.

Instead, the server "enhances" an agent's capabilities by externalizing some state that represents the agent's thinking process. As mentioned above, this externalized state allows the agent to focus on the current step. But further, because a representation of reasoning is lossy relative to the actual process of reasoning, creating the representation forces an agent to make choices about what is and is not important to the process: in this way, externalization can be modeled as a form of compression. Just as a human may improve their thinking through journaling or other forms of externalization, agents can improve their reasoning through externalization: the benefits of externalization are not confined to the carbon substrate.


⚠️ CRITICAL PRINCIPLE: The Server Does NOT Reason

The most important thing to understand about model enhancement servers:

The agent performs reasoning. The server provides structure.

Model enhancement servers are scaffolding, not reasoning engines. They are persistence mechanisms and workflow guides, not AI models themselves.

What the server does:

  • ✅ Records reasoning steps (journaling)
  • ✅ Maintains state and history
  • ✅ Validates input format
  • ✅ Returns metadata and progress indicators
  • ✅ Simplifies the possibility space available to the agent
  • ✅ Encourages use of structured workflows
  • ✅ Makes the process transparent and evaluable

What the server does NOT do:

  • ❌ Generate thoughts or reasoning
  • ❌ Decide what the next step should be
  • ❌ Evaluate the quality of the agent's reasoning
  • ❌ Make decisions about problem-solving approaches
  • ❌ Act as an autonomous agent
  • ❌ Perform any AI inference

Why This Matters

The value of model enhancement comes from:

  1. Simplifying possibility space: Fewer choices → better focus
  2. Encouraging structured workflows: Patterns that can be evaluated and improved
  3. Making processes transparent: We (and the agent) can see and analyze what the agent did
  4. Providing persistence: The agent doesn't lose context

The server is a notebook, a journal, a whiteboard—not a tutor, not a critic, not a collaborator.

Remember: The MCP client application (the agent) does the thinking. Your server just keeps the whiteboard clean and organized.


Core Patterns

1. Structured Journal Pattern

Purpose: Track and persist a sequence of reasoning steps while guiding the model through a cognitive process.

Key Features:

  • Single tool with rich, descriptive guidance in the tool description
  • State tracking (history of steps, branches, revisions)
  • Support for non-linear thinking (revisions, branches, adjusting scope)
  • Dual output channels (structured JSON for model, formatted logs for humans)

When to Use:

  • Breaking down complex problems into steps
  • Planning and design requiring iteration
  • Analysis that might need course correction
  • Problems where scope isn't fully known upfront
  • Tasks requiring context maintenance across multiple steps

Example: Sequential Thinking Server

This server provides a framework for step-by-step reasoning with the ability to revise, branch, and adjust course.

Architecture:

interface ThoughtData {
  thought: string;
  thoughtNumber: number;
  totalThoughts: number;
  isRevision?: boolean;
  revisesThought?: number;
  branchFromThought?: number;
  branchId?: string;
  needsMoreThoughts?: boolean;
  nextThoughtNeeded: boolean;
}

Tool Design:

  • Name: Single, clear tool name (e.g., sequentialthinking)
  • Description: Extensive guidance on when to use, how it works, parameter meanings, key features, workflow recommendations
  • Input Schema: Mix of required (core workflow) and optional (advanced features) fields
  • State Management: Maintain history array, track branches separately, validate input, return status and metadata
  • Output Strategy: JSON for model, formatted colored display for humans (stderr)

Variations: The Structured Journal pattern can be specialized for specific methodologies:

  • Structured Argumentation: Typed workflow states (thesis, antithesis, synthesis), relationship graphs, methodology-aware suggestions
  • Analogical Reasoning: Complex nested structures (source/target domains), multi-instance state tracking, rich metadata summaries

Novel Strategies:

  1. Typed Workflow States: Use enums to make methodology steps explicit
  2. Relationship Tracking: Maintain graphs of how entries relate
  3. Auto-ID Generation: Reduce agent cognitive load
  4. Confidence/Strength Metadata: Let agents express uncertainty numerically
  5. Complex Nested Structures: Support domain-specific decomposition
  6. Methodology-Aware Guidance: Suggest next steps based on formal structure
  7. Multi-Instance Registries: Enable building on previous work
  8. Rich State Summaries: Return contextual metadata about current state

2. Literate Reasoning / Notebook Pattern

Purpose: Provide a Jupyter-like notebook interface where models work through problems with full transparency and reproducibility.

Key Features:

  • Markdown cells for explanations and reasoning
  • Code cells for executable actions
  • Cell-by-cell execution with visible outputs
  • Re-runnable and modifiable workflows
  • Living documentation of problem-solving process

When to Use:

  • Complex multi-step processes requiring transparency
  • Debugging and tracing agent reasoning
  • Iterative problem-solving where you might modify approaches
  • Creating reusable workflow templates ("notebook presets")
  • Situations where the process matters as much as the result

The Problem It Solves:

Traditional agent interactions are "black boxes" - you get a final answer but don't see how the agent arrived at it. Notebooks provide four critical benefits:

  1. Transparency: See the agent's thought process step-by-step
  2. Reproducibility: Replay and refine workflows
  3. Built-in Gating: Control agent reasoning at the source with validation checkpoints
  4. Headless Simplicity: Serve as pure data structures via API/MCP tools without UI overhead

Architecture Pattern:

Unlike the Structured Journal pattern (which maintains state in the server), the Notebook pattern typically:

  • Uses a CLI application to serve the notebook to the model (headless - no UI needed)
  • Provides both markdown cells (guidance) and code cells (actions)
  • Allows non-linear execution (jump to cells, re-run, modify)
  • Maintains execution history and cell outputs
  • Can be persisted and shared as templates
  • Serves notebooks as data structures via MCP tools (agents interact via API, not visually)
  • Enables gating between cells (validation, checkpoints, required steps)

Notebook Structure:

interface NotebookCell {
  id: string;
  type: 'markdown' | 'code';
  content: string;
  output?: string;
  executionCount?: number;
  metadata?: Record<string, unknown>;
}

interface Notebook {
  cells: NotebookCell[];
  metadata: {
    language: string;
    title: string;
    description?: string;
  };
}

Tool Design:

  • notebook_create: Initialize new notebook with optional preset template
  • notebook_add_cell: Add markdown or code cells
  • notebook_run_cell: Execute a specific cell (can enforce gating rules)
  • notebook_get_cell: Retrieve cell content and output
  • notebook_validate_progression: Check if agent can proceed to next cell (gating)
  • notebook_export: Save notebook for sharing/reuse

Gating Example:

// Server can enforce that certain cells must be executed before others
// NOTE: Gates enforce STRUCTURE (has X been done?), not QUALITY (was X done well?)
async function runCell(cellId: string): Promise<Response> {
  const cell = notebook.getCell(cellId);
  const gates = notebook.getGatesForCell(cellId);

  // Check if prerequisites are met (structural validation only)
  for (const gate of gates) {
    if (!gate.isOpen()) {
      return {
        error: `Cannot execute cell ${cellId}: ${gate.requirement}`,
        suggestion: `Complete cells [${gate.requiredCells.join(', ')}] first`
      };
    }
  }

  // Execute cell if gates are open
  return executeCell(cell);
}

Use Cases:

  1. Guided Workflows: Pre-filled code cells with markdown explanations as tutorials
  2. Structured AI Behavior: Direct agents through logical flows
  3. Notebook Presets: Pre-made templates for common tasks (Git workflows, database queries, API integrations)
  4. Interactive Experimentation: Modify parameters and re-run to see impact

Implementation Reference:


Pattern Comparison: When to Use Which

Structured Journal vs. Notebook

Use Structured Journal when:

  • The process is primarily linear with optional branches
  • You want minimal overhead (single tool, simple state)
  • The focus is on the reasoning sequence itself
  • Human inspection is secondary (optional stderr logging)
  • The model drives the structure and pacing
  • Example: Sequential thinking, step-by-step analysis

Use Notebook when:

  • The process requires code execution and output inspection
  • Transparency and reproducibility are critical
  • You want to save/share the process as a template
  • Multiple passes and revisions are expected
  • Human inspection and modification are important
  • You need built-in validation gates between reasoning steps
  • Headless serving is preferred (agent interaction via API, no UI needed)
  • Example: Research workflows, debugging, tutorials, multi-stage validation processes

Hybrid Approach: You can combine both patterns - use a notebook where each cell represents a structured reasoning step that gets journaled.


Implementation Guide (TypeScript)

Project Setup

import { Server } from "@modelcontextprotocol/sdk/server/index.js";
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
import {
  CallToolRequestSchema,
  ListToolsRequestSchema,
  Tool,
} from "@modelcontextprotocol/sdk/types.js";

Core Server Class Pattern

class EnhancementServer {
  private state: YourStateType = initialState;
  private config: ConfigType;

  constructor() {
    this.config = {
      disableLogging: (process.env.DISABLE_LOGGING || "").toLowerCase() === "true"
    };
  }

  private validateInput(input: unknown): ValidatedType {
    // Type-safe validation - throw clear errors for invalid input
  }

  public processRequest(input: unknown): {
    content: Array<{ type: string; text: string }>;
    structuredContent?: { [key: string]: unknown };
    isError?: boolean;
  } {
    try {
      const validated = this.validateInput(input);
      this.updateState(validated);

      if (!this.config.disableLogging) {
        this.logToStderr(validated);
      }

      const responseData = this.getResponseData(validated);

      return {
        content: [{ type: "text", text: JSON.stringify(responseData, null, 2) }],
        structuredContent: responseData,
        isError: false
      };
    } catch (error) {
      return {
        content: [{
          type: "text",
          text: JSON.stringify({
            error: error instanceof Error ? error.message : String(error),
            status: 'failed'
          }, null, 2)
        }],
        isError: true
      };
    }
  }
}

Tool Definition Pattern

const ENHANCEMENT_TOOL: Tool = {
  name: "toolname",
  title: "Tool Display Name",  // Optional: display precedence: title > annotations.title > name

  description: `Comprehensive description that guides the model:

When to use this tool:
- Specific use cases

Key features:
- Feature explanations

Parameters explained:
- param1: What it means and how to use it

You should:
1. Step-by-step workflow guidance
2. Expected behavior patterns
3. When to stop/continue`,

  inputSchema: {
    type: "object",
    properties: {
      requiredField: { type: "string", description: "Clear description" },
      optionalField: { type: "boolean", description: "When to use this" }
    },
    required: ["requiredField"]
  },

  outputSchema: {  // Optional: enables structuredContent
    type: "object",
    properties: {
      status: { type: "string", description: "Operation status" },
      metadata: { type: "object", description: "Additional metadata" }
    },
    required: ["status"]
  },

  annotations: {  // Optional: hints about behavior
    readOnlyHint: true,
    destructiveHint: false,
    idempotentHint: true,
    openWorldHint: false
  }
};

Server Initialization

const server = new Server(
  { name: "your-enhancement-server", version: "0.1.0" },
  { capabilities: { tools: {} } }
);

const enhancementServer = new EnhancementServer();

server.setRequestHandler(ListToolsRequestSchema, async () => ({
  tools: [ENHANCEMENT_TOOL],
}));

server.setRequestHandler(CallToolRequestSchema, async (request) => {
  if (request.params.name === "toolname") {
    return enhancementServer.processRequest(request.params.arguments);
  }
  return {
    content: [{ type: "text", text: `Unknown tool: ${request.params.name}` }],
    isError: true
  };
});

async function runServer() {
  const transport = new StdioServerTransport();
  await server.connect(transport);
  console.error("Enhancement Server running on stdio");
}

runServer().catch((error) => {
  console.error("Fatal error running server:", error);
  process.exit(1);
});

Best Practices

Tool Description Writing:

  • Front-load the "when to use" guidance
  • Explain parameters in context, not just technically
  • Provide workflow steps as numbered guidance
  • Be explicit about flexibility and adaptation

State Management:

  • Keep state minimal but sufficient for context
  • Validate all inputs before updating state
  • Return metadata that helps the model understand progress

Error Handling:

  • Validate input with clear, specific error messages
  • Guide the model toward correct usage in errors
  • Always return structured responses, even for errors
  • CRITICAL: Only validate format and structure, never evaluate reasoning quality

Human Output (optional):

  • Log to stderr, never stdout (stdout is for MCP protocol)
  • Make it visually distinct and informative
  • Make it toggleable via environment variables

Future Directions and Use Cases

As agentic networking matures, model enhancement servers enable novel patterns:

Long-Running Async Processes

Model enhancement servers provide Day One mechanisms for maintaining context across extended operations:

  • Batch jobs: Track progress through multi-hour processing tasks
  • Extended research: Maintain context during deep exploration (e.g., Exa's Websets running 30+ minutes)
  • Multi-stage workflows: Coordinate phases of complex work over hours or days

Multi-Client Coordination

Model enhancement servers can connect to multiple clients simultaneously, acting as a bulletin board where different clients post and retrieve information. This enables coordination between clients that have no other means of communication. MCP servers as proxies between clients may become the dominant use case per-server.

Formalized Workflows

Enhancement servers can support highly structured methodologies with clear definitions:

  • Scientific method: Hypothesis generation, experimentation, validation
  • Design thinking: Empathy, definition, ideation, prototyping, testing
  • Six Sigma: DMAIC (Define, Measure, Analyze, Improve, Control)

The server guides adherence to the methodology while allowing flexibility within steps.


Example Servers

Sequential Thinking Server

See example-servers/sequential-thinking for full working example.

What It Does: Guides models through step-by-step reasoning, supports revision, branching, and dynamic scope adjustment.

Key Design Decisions:

  1. Single sequentialthinking tool handles entire workflow
  2. Rich description (~50 lines of guidance)
  3. Flexible schema (required fields for core, optional for advanced)
  4. Dual output (JSON for model, formatted boxes for humans)
  5. State tracking (linear history + branch dictionary)

The Whiteboard Analogy: Each time Claude calls sequentialthinking, imagine Claude as a student: works out a step on a whiteboard, walks away to reflect, returns when ready for the next step. The server provides the persistent whiteboard; the model provides the reasoning.

Structured Argumentation Server

See example-servers/structured-argumentation for full working example.

What It Does: Facilitates dialectical reasoning through formal argument structures (thesis → antithesis → synthesis).

Key Features: Formal claim/premises/conclusion structure, five argument types, relationship tracking, methodology guidance based on formal dialectical structure, auto-ID generation, confidence tracking.

Analogical Reasoning Server

See example-servers/analogical-reasoning for full working example.

What It Does: Supports systematic analogical reasoning with source/target domain mapping and element typing.

Key Features: Complex nested structures, element typing (entity/attribute/relation/process), mapping strength ratings, domain registry for reuse, inference tracking with confidence levels.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

OpenCode

29.15%
按下载量换算32

Claude Code

25.34%
按下载量换算28

windsurf

19.62%
按下载量换算22

Codex

12.56%
按下载量换算14

kiro-cli

7.3%
按下载量换算8

mcpjam

3.85%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills