Velle
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Velle
Latin: "to will" — the root of volition.
Velle is an MCP server that gives Claude Code the ability to prompt itself. It injects text into the terminal as user input via Win32 console APIs, enabling autonomous multi-turn workflows without human intervention. Features include self-prompting chains, 2-step slash command introspection, configurable turn limits, cooldown enforcement, and audit logging.
How It Works
Velle runs as an MCP server child process of Claude Code. When the agent calls velle_prompt, the server injects the text as keyboard input into the parent process's console:
Agent calls velle_prompt("investigate the auth module")
|
v
Velle MCP Server (child process)
|
FreeConsole() -> AttachConsole(parent) -> CreateFile("CONIN$")
|
WriteConsoleInputW(key events) -> 500ms delay -> Enter key
|
v
Claude Code receives text as user input -> Agent gets a new turnEach turn, the agent decides what to do next and can chain another velle_prompt to continue autonomously.
Slash Command Introspection
Slash commands require a two-step injection: the command itself, then a follow-up prompt so the agent gets a turn to read the output.
velle_prompt(
text="/context",
follow_up="Summarize the context usage above.",
delay_ms=2000,
follow_up_delay_ms=3000
)The agent receives the slash command output as <local-command-stdout> in its context and can act on it.
Allowed Slash Commands
Command | Description |
| Compact conversation to free context |
| Visualize context window usage |
| Show plan usage limits and rate limits |
| Show version, model, account, connectivity |
| Visualize daily usage, session history |
| Show active todo items |
| Show running background tasks |
| Show running background bash commands |
| Check installation health |
| Read session debug log |
| Show IDE connection status |
| View release notes |
Interactive commands (/help, /mcp, /config, etc.) are blocked.
Related MCP server: dis-claude
Tools
velle_prompt
Inject text as user input into the Claude Code session.
Parameter | Type | Default | Description |
| string | required | Text to inject |
| integer | 500 | Delay before injection (ms) |
| string | — | Optional second injection for slash commands |
| integer | 3000 | Delay between first and second injection (ms) |
| string | — | Why this prompt is being issued (audit trail) |
velle_status
Returns current session state: turn count, limits, console availability, recent prompt log, and config file path.
Safety
Turn limit — configurable max self-prompts per session (default: 20). The agent cannot modify this; only the user can edit the config file.
Cooldown — minimum delay between prompts (default: 1000ms). Prevents accidental double-fires.
Kill switch — Ctrl+C stops the agent at any time.
Audit trail — every self-prompt is logged to
velle_audit.jsonlwith timestamp, text, and reason.
Configuration
Settings are loaded from velle.json in the project root:
{
"turn_limit": 20,
"cooldown_ms": 1000,
"budget_usd": 5.00,
"audit_mode": "both"
}Changes require an MCP server restart (/mcp in Claude Code). The agent has no tool to modify configuration — only the user controls these values.
Installation
Prerequisites
Windows 11 (uses Win32 console APIs)
Python 3.10+
Claude Code CLI
Setup
# Clone the repository
git clone https://github.com/PStryder/velle.git
cd velle
# Create virtual environment and install
uv venv
uv pip install -e .Register with Claude Code
Add to your Claude Code MCP configuration (~/.claude/claude_mcp_config.json):
{
"mcpServers": {
"velle": {
"command": "/path/to/velle/.venv/Scripts/python",
"args": ["-m", "velle.server"],
"cwd": "/path/to/velle"
}
}
}Architecture
src/velle/
__init__.py # Package version
server.py # MCP server — tool definitions, session state, audit logging
injector.py # Win32 console injection — AttachConsole, CONIN$, WriteConsoleInputWThe injector attaches to the parent process's console (since the MCP server's own stdin is a pipe for MCP transport), opens CONIN$ to get the real console input buffer, writes key events, then detaches. A 500ms delay between text characters and the Enter key ensures reliable submission even when the console is busy with output.
Project Structure
velle/
README.md # This file
pyproject.toml # Python package configuration
velle.json # Runtime configuration (turn limits, cooldown)
claude_mcp_config.json # Example MCP server registration
src/velle/ # Source code
spike/ # Proof-of-concept injection tests
docs/ # Design specification and command reference
SPEC.md # Technical specification
COMMANDS.md # Slash command inventory and access classificationEtymology
From Proto-Indo-European wel- ("to wish"), through Latin velle ("to will"), to Medieval Latin volitionem ("volition"). Velle is the act of willing — an agent that chooses its own next action.
License
Apache 2.0
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Agent personas for Claude. 16 tools, 13 personas, 3 workflows. Zero extra API cost. Free.
Use your own Windows, Mac or Linux computer from ChatGPT, Claude, Cursor or Gemini CLI: run commands, read, write and search files, run long processes. Your computer only makes an outgoing connection (no open ports or VPN). Read-only mode, allowed folders, blocked commands and an action log keep you in control. Free plan available.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables persistent agent identity, memory, and tools for Claude Code, including messaging, timers, and browser automation.591MIT
- AlicenseNot gradedqualityCmaintenanceConnects Discord to Claude Code, turning forum threads into interactive sessions. Supports approvals, live progress, slash commands, and terminal access.MIT
- AlicenseNot gradedqualityBmaintenanceEnables Claude Code, Cursor, and Codex users to orchestrate plan/build/review workflows across host or CLI models with a spec gate, tool vetting, hard per-run and per-day cost/token limits, safe defaults, and clear logs.15 npmMIT
- AlicenseNot gradedqualityAmaintenanceEnables driving a Claude Code session from chat messages, with bidirectional text and media, voice transcription, polls, per-group personalities, scheduled cron tasks, and context recovery after restarts. Incoming messages can wake the session and tool permission requests can be approved or denied by emoji reaction, while pairing codes, allowlists, and per-group policies gate who is allowed to reach the assistant.MIT