Self Claude MCP — Development skill for Claude Code
MCP for Claude Code self-management (hot restart, compaction).
How to install Self Claude MCP
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open sancovp/self-claude-mcp and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Self Claude MCP does
MCP for Claude Code self-management (hot restart, compaction).
Alternatives in Development
- Asana — Project Management Asana integration via MCP 14k ★
- Fix Job — Diagnose and fix a failed VASP job, then restart it 155 ★
- Restart Server — 重启/停止开发服务(Backend:18081 + MCP:3100 + FrontEnd:3000) 131 ★
README
self-claude-mcp
**Requires [Claude Code](https://claude.ai/download) | [SIGN UP HERE](https://claude.ai/)**
MCP server for Claude Code self-management commands (hot restart, compaction).
Installation
pip install self-claude-mcp
Add to your Claude MCP config:
{
"mcpServers": {
"self-claude": {
"command": "self-claude-mcp",
"env": {
"AUTOPOIESIS": "1"
}
}
}
}
**Note:** `AUTOPOIESIS=1` is optional. If set, restart messages will remind Claude to enable [autopoiesis-mcp](https://github.com/sancovp/autopoiesis-mcp) (makes Claude loop on purpose). Remove the `env` block if you don't use it.
Setup
After installing the MCP, Claude needs to install bash scripts for the commands to work.
Ask Claude to run:
Use self_claude with setup_only=True and install the scripts
Or manually: call `self_claude(cmd="", setup_only=True)` to get the installation instructions.
Requirements
- tmux: Scripts use tmux for session management
- Claude Code: Must be running inside a tmux session named "claude"
Starting Claude in tmux
Use `claude-debug` (installed by setup) or manually:
tmux -u new-session -d -s claude
tmux send-keys -t claude 'claude --debug' Enter
tmux -u attach -t claude
Usage
Once set up, Claude can use these commands:
| Command | Description |
|---|---|
self_claude("self_restart") |
Hot restart with auto-resume |
self_claude("self_compact") |
Trigger context compaction |
self_claude("", setup_only=True) |
Get installation instructions |
Hot Restart
Use when MCP configs change and you need to reload without losing conversation:
- Claude calls
self_claude("self_restart")→ returnsbash self_restart - Claude runs
bash self_restart - Handler sends
/exit, waits for death, relaunches, sends/resume, selects session 1
Compaction
Use when context is running low:
- Claude calls `self_claude("self_compact")
Related Skills
Claude Remote Plus
Hot-swap Claude Code remote sessions between projects from your phone. A daemon + MCP server that manages clau
Link Session
Link two or more active Claude Code sessions for short-lived coordination via shared files. Run /link-session
Restart All
Rebuild and restart the whole local agent-runner fleet via scripts/build_and_restart_all.py (self-last, detach
Oxframe CLI
The oxframe command: create a project, preview it with hot reload, check it, render it. oxframe init writes AG
Context Management
Self-monitor context usage and suggest optimization when many tools are active
Akm Eval
Self-assess your agentic knowledge management system — AKM Index v1.0 (5 pillars × 25 criteria, evidence-based
Related Agents
Vbw Lead
Planning agent that researches, decomposes phases into plans, and self-reviews in one compaction-extended sess
Context Engine
Context window management — tracks tool call count, auto-detects when context fills up, triggers state save +
Arch Context Architect
Designs the context management layer for a new plugin — CLAUDE.md, memory tiers, scratchpad schemas, read-dept