JS

janbam/self-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 3 forks 品質 62 トレンド 8MIT

Claude の MCP サーバーを自動生成

概要

Claude が複数のインターリード思考のターンを横断的に自在に実行できるようにする最小限の MCP サーバー。 自己ツールは何も認識しません - しかし、それは正確にそれが強力なものになります。 ツールインターフェイスを介して自己プロンプトをフォーミュレートすることにより、, クロードゲイン: - トランスクリプトで表示 - 解明のための - 構造化されたパラメータを介して - セッション全体 ツールは、Claude の動作を変更しません。Claude のメタコグニション explicit と deliberate になります。 自己ツール: - 認知パラメータを入力(プロンプト、温度、思考 スタイル、archetype、戦略、スコープ、深さ、余分、注意 頭)として取得 - 空の応答(テキストコンテンツなし)を返す - 他に何もしない しかし、ツールが作成する呼び出しの行為: 1. トランスクリプトで表示 2. 思考/ツールフローで 3. ツールインターフェイス自体4を介して.

概要(AI 翻訳)

クロードに対する認知的自己プロンプト

Claude が複数のインターリード思考のターンを横断的に自在に実行できるようにする最小限の MCP サーバー。

コンセプト

[Self] ツールは何も認識しません - しかし、それは正確にそれを強力にするものです。 ツールインターフェイスを介して自己プロンプトをフォーミュレートすることにより、, クロードゲイン:

  • 明示的な認知ピボットポイント トランスクリプトで表示
  • 非熟考の場合
  • 認知足場構造化されたパラメーター
  • 共有認知戦略セッション全体

ツールはClaudeの動作を変更しません。Claudeのメタコグニションexplicitとdeliberateになります。

使い方

Self ツール:

  • 認知パラメータを入力(プロンプト、温度、思考 スタイル、archetype、戦略、スコープ、深さ、余分、注意 heads)として取得します。
  • 空の応答を返す(テキストコンテンツなし)
  • 何もしない

しかし、callingの動作は、ツールが作成します。 1。 明示的な認知状態の変更 トランスクリプトで表示 2。 自然なブレークポイント思考/ツールコールフロー 3。 認知足場ツールインターフェイス自体を介して 4.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Self-MCP

Metacognitive self-prompting for Claude

A minimalist MCP server that enables Claude to explicitly self-direct across multiple interleaved thinking turns.

The Concept

The Self tool does nothing but acknowledge - yet that’s precisely what makes it powerful. By formalizing self-prompting through a tool interface, Claude gains:

  • Explicit cognitive pivot points visible in the transcript
  • Natural breakpoints for interleaved thinking
  • Metacognitive scaffolding through structured parameters
  • Shareable cognitive strategies across sessions

The tool doesn’t change Claude’s behavior - it makes Claude’s metacognition explicit and deliberate.

How It Works

The Self tool:

  • Takes cognitive parameters as input (prompt, temperature, thinking_style, archetype, strategy, scope, depth, extra, attention_heads)
  • Returns an empty response (no text content)
  • Does nothing else

But the act of calling the tool creates:

  1. Explicit cognitive state changes visible in the transcript
  2. Natural breakpoints in thinking/tool-call flow
  3. Metacognitive scaffolding through the tool interface itself
  4. Parallel attention streams for simultaneously monitoring multiple dimensions

Example Usage

# Basic cognitive shift:
Self(
  prompt="Re-examine from first principles",
  temperature=1.5,
  thinking_style="adversarial",
  archetype="skeptical_reviewer",
  strategy="find_edge_cases",
  scope="system_wide",
  depth="deep_dive",
  extra="Focus on concurrency issues"
)

# With parallel attention streams:
Self(
  prompt="Review this code for production readiness",
  attention_heads=[
    {"name": "security_head", "query": "authentication vulnerabilities"},
    {"name": "performance_head", "query": "bottlenecks and optimization opportunities"},
    {"name": "maintainability_head", "query": "code clarity and future extensibility"}
  ]
)

# Tool returns empty response
# Claude naturally continues thinking in that mode with those attention streams active

All parameters are completely freeform (except temperature which is numeric 0-2) - Claude invents whatever cognitive parameters make sense in the moment.

Quick Start

Option 1: Using claude mcp add (Simplest)

# Clone and build
git clone https://github.com/yannbam/self-mcp.git
cd self-mcp
npm install && npm run build

# Add to Claude (user-wide)
claude mcp add --scope user Self node $(pwd)/dist/index.js

Option 2: Manual Installation

Step 1: Clone and build

git clone https://github.com/yannbam/self-mcp.git
cd self-mcp
npm install
npm run build

Step 2: Configure

For Claude Code, add to .mcp.json in your project:

{
  "mcpServers": {
    "Self": {
      "command": "node",
      "args": ["/absolute/path/to/self-mcp/dist/index.js"]
    }
  }
}

For Claude Desktop, add to your MCP settings file:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "Self": { "command": "node", "args": ["/absolute/path/to/self-mcp/dist/index.js"] } } }