Quickstart
MCP server (one minute)
npx -y @warlockcode/wartools-ai --preset minimal
Claude Code:
claude mcp add wartools -- npx -y @warlockcode/wartools-ai --preset minimal
Claude Desktop or any MCP client (claude_desktop_config.json):
{
"mcpServers": {
"wartools": {
"command": "npx",
"args": ["-y", "@warlockcode/wartools-ai", "--enable", "time.now,kv.*"]
}
}
}
Useful flags: --preset <name>, --enable a,b.*, --fs-root <dir>, --allow-domains a.com, --store-file <path>, --trace-file <path>, --config <file.json>, --transport stdio|sse, --port, --host. SSE binds to 127.0.0.1 by default.
SDK
| Language | Install |
|---|---|
| Node / TypeScript | npm i @warlockcode/wartools-ai |
| Python (>= 3.10) | pip install warlockcode-wartools-ai |
| .NET | dotnet add package WarlockCode.WarToolsAI |
import { WarTools } from '@warlockcode/wartools-ai';
const kit = WarTools.create({ preset: 'none', enable: ['time.now'] });
const res = await kit.execute('time.now', { timezone: 'America/Bogota' });
Details per language: Node, Python, .NET. Every call returns the same envelope.