WarToolsAI MCP Server
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.
Give your AI agent tools — but only the ones you turn on.
A tool runtime and MCP server for AI agents, with identical SDKs for TypeScript, Python and .NET. 62 deterministic tools, all off until you enable them.
Start in 1 minute
Nothing to clone. The MCP server runs straight from npm with the minimal preset (9 tools: time, a tiny key-value memory and the catalog); everything else stays off.
Client | Do this |
Claude Code |
|
Claude Desktop | Add to |
Cursor / VS Code | Use the buttons above |
Python ( |
|
Docker |
|
Turn on more tools when you need them: --preset research, or --enable "time.*,fs.read_file" --fs-root ./workspace. Then try these in your client:
Paste this | What happens |
"What time is it in Tokyo?" | Calls |
"Remember that my deploy day is Friday." | Stores it with |
"Which tools do you have?" |
|
"Read the file notes.txt" | Rejected with |
Related MCP server: machine-mcp
What is this?
WarToolsAI is a catalog of 62 small, deterministic utilities for agents (clock and timezones, key-value memory, planning scratchpad, safe file access, web fetch, JSON/CSV tooling, hashing, prompt-injection scanning…). You can use it in two ways:
How | Use it when | |
MCP server | Run one command; Claude Code, Claude Desktop or any MCP client sees the tools | You want tools in an existing agent/client with no code |
SDK |
| You are building your own agent or backend |
Both expose the same tools, same inputs/outputs and same error codes; that parity is enforced by shared contract tests, not by convention.
Why Default-Off?
Most tool servers advertise everything they have. Every tool schema you send costs tokens on every request, and every tool is something the model can misuse.
WarToolsAI starts with zero tools. Nothing is registered, serialized into the model's context or executable until you enable it by name, glob or preset:
enable: ["time.now", "kv.*"] → 6 tools exposed, everything else invisible
preset: "none" (default) → 0 tools, 0 schema tokensFor scale: all the tool schemas together are roughly 3,900 tokens (approxSchemaTokens in the manifest); a typical preset is a fraction of that. A disabled tool that is called anyway returns TOOL_DISABLED; it does not run.
Install and downloads
Same version on all three registries. Pick your language:
Registry | Package | Install | Version | Downloads |
npm |
| |||
PyPI |
| |||
NuGet |
|
Download counters start at 0 and take about a day to appear on npm and PyPI after a first release.
Quick start
Status:
1.0.0, published on all three registries:npm i @warlockcode/wartools-ai·pip install warlockcode-wartools-ai·dotnet add package WarlockCode.WarToolsAI.
git clone https://github.com/jmmana/WarToolsAI.git && cd WarToolsAI
npm ci && npm run build:nodeAs an MCP server
# stdio (default), the agent-core preset
node packages/node/dist/esm/cli.js --preset agent-core
# only specific tools
node packages/node/dist/esm/cli.js --enable "time.now,kv.*,fs.read_file" --fs-root ./workspaceClaude Code
claude mcp add wartools -- node /absolute/path/WarToolsAI/packages/node/dist/esm/cli.js --preset agent-coreClaude Desktop / any MCP client (claude_desktop_config.json)
{
"mcpServers": {
"wartools": {
"command": "node",
"args": ["/absolute/path/WarToolsAI/packages/node/dist/esm/cli.js", "--enable", "time.now,kv.*"]
}
}
}HTTP SSE transport: --transport sse --port 3333 (binds to 127.0.0.1 by default).
As an SDK
import { WarTools, JsonFileKvStore } from '@warlockcode/wartools-ai';
const kit = WarTools.create({
preset: 'none',
enable: ['time.now', 'kv.*', 'fs.read_file'],
security: {
fsRoot: './workspace',
httpAllowDomains: ['api.github.com'],
maxOutputChars: 16000,
timeoutMs: 10000,
},
store: new JsonFileKvStore('./.wartools-store.json'),
});
const res = await kit.execute('time.now', { timezone: 'America/Bogota' });from warlockcode_wartools_ai import WarTools, JsonFileKvStore, SecurityConfig
kit = WarTools.create(
preset="none",
enable=["time.now", "kv.*"],
security=SecurityConfig(fs_root="./workspace", http_allow_domains=["api.github.com"]),
store=JsonFileKvStore("./.wartools-store.json"),
)
res = kit.execute("time.now", {"timezone": "America/Bogota"})using WarlockCode.WarToolsAI;
var kit = WarTools.Create(new WarToolsOptions
{
Preset = "none",
Enable = new[] { "time.now", "kv.*" },
Store = new JsonFileKvStore("./.wartools-store.json")
});
var res = await kit.ExecuteAsync("time.now", new { timezone = "America/Bogota" });Optional: SqliteKvStore
A persistent KvStore backed by SQLite (namespaces, TTL expiry, optional FTS5 index). It is not a tool and never loaded by the core, so the core keeps zero dependencies. All three SDKs share the same on-disk schema (version 1).
SDK | Import | Driver |
Node |
| built-in |
Python |
| stdlib |
.NET |
| separate package |
const kit = await WarTools.create({ enable: ['kv.*'], store: new SqliteKvStore('./.wartools.db') });If SQLite was built without FTS5, ftsAvailable / fts_available / FtsAvailable is false and search falls back to scan + BM25.
Every call returns the same envelope
{
"ok": true,
"tool": "time.now",
"data": { /* tool-specific output */ },
"error": null, // or { "code": "INVALID_INPUT" | "TOOL_DISABLED" | ... }
"meta": { "durationMs": 1, "truncated": false }
}Output is capped by maxOutputChars; when it is cut, meta.truncated is true.
Tool catalog and status
62 tools shipped, identical in TypeScript, Python and .NET. 1 more tool(s) planned.
Meaning | |
✅ | Shipped and covered by the shared contract tests |
🟡 | Implemented, in review (open pull request) |
⏳ | Planned, tracked in an issue |
💡 | Idea, design only |
Shipped tools
Tool | Domain | Priority | What it does | |
✅ |
| time | P0 | Return current date/time in ISO-8601, Unix ms, weekday, and requested IANA timezone. |
✅ |
| time | P0 | Calculate exact elapsed duration between two ISO-8601 timestamps. |
✅ |
| time | P0 | Add or subtract minutes, hours, days, weeks, or months from a base timestamp. |
✅ |
| time | P0 | Convert a timestamp from one IANA timezone to another. |
✅ |
| time | P2 | Count business days between two dates or add/subtract business days, with custom weekend and… |
✅ |
| time | P2 | Compute the next N run times of a 5-field cron expression in an IANA timezone with… |
✅ |
| kv | P0 | Persist a JSON value under a namespace/key with optional TTL. |
✅ |
| kv | P0 | Retrieve a previously stored JSON value from a session namespace. |
✅ |
| kv | P0 | Delete a key from a KV namespace. |
✅ |
| kv | P0 | List active non-expired keys in a namespace filtered by prefix. |
✅ |
| scratchpad | P0 | Initialize or replace the active session execution goal and ordered step checklist. |
✅ |
| scratchpad | P0 | Transition a scratchpad step status and record a concise result summary. |
✅ |
| scratchpad | P0 | Append a tagged working memory note to the session scratchpad. |
✅ |
| scratchpad | P0 | Retrieve the full scratchpad plan, step statuses, notes, and completion percentage. |
✅ |
| web | P1 | Fetch an allowlisted HTTP/HTTPS document and convert HTML to clean Markdown. |
✅ |
| web | P1 | Execute a guarded HTTP GET request and parse the JSON response. |
✅ |
| web | P1 | Extract and resolve anchor links from an allowlisted HTML page. |
✅ |
| web | P1 | Extract page title, description, author, publication time, and HTML language metadata. |
✅ |
| json | P1 | Query JSON objects or strings using deterministic dot/bracket JSONPath expressions. |
✅ |
| json | P1 | Repair malformed JSON output (markdown fences, trailing commas, single quotes, unclosed… |
✅ |
| json | P1 | Validate a JSON payload against a structural schema and return field-level diagnostics. |
✅ |
| json | P1 | Compare two JSON objects and report added, removed, and modified keys. |
✅ |
| text | P1 | Split long text into bounded chunks by paragraph, sentence, or markdown headings. |
✅ |
| text | P1 | Extract structured regex matches and capture groups with bounded output. |
✅ |
| text | P1 | Estimate token count, word count, line count, and character count deterministically. |
✅ |
| text | P1 | Generate a line-by-line unified diff between original and updated text. |
✅ |
| text | P1 | Apply a unified diff to text, tolerating line offsets and CRLF; fails atomically with… |
✅ |
| text | P1 | Rerank text chunks against a query with deterministic BM25 (no embeddings, no network). |
✅ |
| text | P3 | Detect the language of a text (en, es, pt, fr, de, it or und) with a confidence score and a… |
✅ |
| text | P2 | Reduce a long text to its N most representative sentences (TF-IDF cosine centrality, optional… |
✅ |
| logs | P3 | Group log lines by template (timestamps, UUIDs, IPs, hex ids and numbers masked as ) and… |
✅ |
| agent | P2 | Detect loops and stagnation in a window of tool calls (blind retry of an error, same call… |
✅ |
| doc | P2 | Detect document type (json, csv, markdown, html, yaml, code, text, empty) from the first 512… |
✅ |
| math | P2 | Safely evaluate arithmetic expressions and math functions using a recursive-descent AST. |
✅ |
| math | P2 | Compute descriptive statistics (count, sum, mean, median, min, max, stdDev, p95). |
✅ |
| math | P2 | Convert values across length, mass, duration, temperature, and digital storage units. |
✅ |
| csv | P2 | Parse delimited CSV/TSV text into typed row objects with pagination. |
✅ |
| csv | P2 | Profile CSV columns, inferred types, null counts, and distinct sample values. |
✅ |
| csv | P2 | Filter CSV rows and compute grouped count, sum, avg, min, or max aggregations. |
✅ |
| fs | P2 | List directory entries inside the canonical fsRoot sandbox. |
✅ |
| fs | P2 | Read a file inside fsRoot with optional line range and maxChars limit. |
✅ |
| fs | P2 | Write or update a file safely inside the configured fsRoot sandbox. |
✅ |
| fs | P2 | Search for matching text lines across files inside fsRoot. |
✅ |
| kv | P2 | Atomically increment or decrement a numeric counter in a KV namespace. |
✅ |
| text | P2 | Detect and redact emails, phones, Luhn payment cards, IPv4 addresses, and API secrets. |
✅ |
| text | P2 | Render mustache-style templates with strict mode detection for missing variables. |
✅ |
| json | P2 | Flatten nested JSON objects to dotted keys or unflatten them back into objects. |
✅ |
| crypto | P3 | Compute SHA-256, SHA-384, or SHA-512 cryptographic digests in hex and base64. |
✅ |
| crypto | P3 | Generate UUID v4, UUID v7, or ULID identifiers deterministically formatted. |
✅ |
| encoding | P3 | Encode or decode UTF-8 strings using standard or URL-safe Base64. |
✅ |
| encoding | P3 | Decode JWT header and claims without signature verification and check expiration. |
✅ |
| security | P3 | Scan untrusted text for prompt injection phrases, role impersonation, and hidden Unicode. |
✅ |
| security | P3 | Inspect a URL for protocol, private/loopback network status, punycode, and query params. |
✅ |
| security | P1 | Detect and mask secrets (private keys, cloud/API tokens, JWT, bearer/basic auth, URL… |
✅ |
| security | P1 | Restore <SECRET_n> placeholders from the session's in-memory vault (created by… |
✅ |
| security | P1 | Discard the session's in-memory secret vault; returns how many entries were removed. |
✅ |
| validate | P3 | Validate arrays of records against field constraints (required, min, max, email, iso_date… |
✅ |
| state | P3 | Save, restore, or list named session checkpoints covering KV and scratchpad state. |
✅ |
| catalog | P4 | Search WarToolsAI capabilities by keyword, domain, or active policy status. |
✅ |
| doc | P4 | Extract structured header/row tables from Markdown or HTML documents. |
✅ |
| doc | P4 | Compile structured sections and data tables into a formatted Markdown report. |
✅ |
| trace | P4 | Record a structured execution trace event to the configured session trace sink. |
Planned tools
Tool | Domain | What it does | Tracking | |
⏳ |
| kv | Search stored values. |
Runtime and store features
Feature | What it does | Tracking | |
✅ | Approval gate ( | Single-use approvals bound to tool, arguments and session | |
✅ | Budget guard | Per-session limits on calls, per-tool calls and cost | |
✅ | Retry with backoff + idempotency cache | Safe retries for flaky tools | |
✅ |
| Persistent KV with TTL, namespaces and FTS5 | |
💡 |
| Optional separate package |
Full schemas live in spec/registry-manifest.json, the single source of truth.
Presets
Preset | Tools | Selectors | For |
| 0 | — | Strict default |
| 9 |
| Light stateful agents |
| 16 |
| Planning, memory, tracing |
| 14 |
| Web and document pipelines |
| 16 |
| Deterministic data work |
Presets and enable combine; see docs/presets.md.
Security model
Tools that touch the outside world are fenced by configuration, not by trust in the model:
Filesystem (
fs.*): confined tofsRoot; path traversal and symlink escapes returnSANDBOX_PATH_DENIED.Network (
web.*): only domains inhttpAllowDomains(DOMAIN_NOT_ALLOWED); literal and DNS-resolved private, loopback and link-local addresses are blocked (PRIVATE_NETWORK_BLOCKED); enforced timeouts.Output limits: every response is truncated at
maxOutputChars.MCP over HTTP binds to loopback unless you pass
--host.
Details and threat model: docs/security-model.md. Report vulnerabilities per SECURITY.md.
CLI configuration
Flag / env | Purpose |
| Start from a preset (default |
| Enable tools by name or glob |
| Sandbox root for |
| Allowed hosts for |
| Persist |
| Write |
| Same options from a JSON file |
| MCP transport |
How it is built
Layer | Location |
Canonical manifest (tools, schemas, presets) |
|
Shared contract tests (17 domain suites) |
|
Node / TypeScript SDK + MCP |
|
Python SDK + MCP (stdio) |
|
.NET SDK |
|
Workbench (catalog, playground, policy export) |
|
Parity check and CI |
|
The three SDKs implement every tool independently and must pass the same JSON contract suites; sync-manifest.py fails CI if the manifest, contracts or any language drift apart. Architecture: docs/architecture.md.
Develop and verify
npm run sync:check # manifest ↔ contracts ↔ Node/Python/.NET parity
npm run build:node
npm run test:node # contracts, CJS, MCP stdio, MCP HTTP SSE
npm run test:python
npm run lint
dotnet test packages/dotnet/WarToolsAI.slnx -c ReleaseRoadmap
Planned tools and runtime features (approval gates, budget limits, retries, SQLite store, cron/time math, patching…) are tracked in issues and docs/roadmap.md. Contributions welcome: see CONTRIBUTING.md.
License
MIT © WarlockCode
Available Tools
9 toolscatalog.searchC
Search WarToolsAI capabilities by keyword, domain, or active policy status.
Inputs: query, domain, includeDisabled.
kv.deleteC
Delete a key from a KV namespace.
Inputs: key (required), namespace, sessionId.
kv.getC
Retrieve a previously stored JSON value from a session namespace.
Inputs: key (required), namespace, sessionId.
kv.listC
List active non-expired keys in a namespace filtered by prefix.
Inputs: limit, prefix, namespace, sessionId.
kv.setC
Persist a JSON value under a namespace/key with optional TTL.
Inputs: key (required), value (required), namespace, sessionId, +1 more.
time.addC
Add or subtract minutes, hours, days, weeks, or months from a base timestamp.
Inputs: unit (required), amount (required), baseDate, timezone.
time.convert_tzB
Convert a timestamp from one IANA timezone to another.
Inputs: dateTime (required), toTimezone (required), fromTimezone (required).
time.diffB
Calculate exact elapsed duration between two ISO-8601 timestamps.
Inputs: end (required), start (required).
time.nowA
Return current date/time in ISO-8601, Unix ms, weekday, and requested IANA timezone.
Inputs: timezone.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
TDQS
Scored across 9 tools
Each tool targets a clearly distinct operation: time.now, time.diff, time.add, and time.convert_tz cover separate time-related tasks, while kv.set/get/delete/list form an unambiguous CRUD set. catalog.search is clearly separated from the time and KV namespaces.
All tools follow a predictable lowercase namespace.action convention, with time.*, kv.*, and catalog.* grouping related operations. Minor abbreviation in convert_tz does not break the overall consistency.
Nine tools is well within the ideal range for a focused utility server. Each tool has a clear purpose and no obvious redundancy.
The KV namespace has complete create/read/update/delete/list coverage, and the time tools cover common operations. The catalog surface is thinner, with only search and no dedicated get or list operation for capability details.
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Persistent memory, hybrid search and a goal graph for AI agents, over stdio or remote HTTP.
Hosted runtime for persistent agent teams, durable workflows, memory, schedules, and goals.
Hosted MCP runtime where your agent publishes its own tools by tool call and keeps working.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables registering custom agent tools via a minimal JSON-RPC over stdio implementation, with zero external dependencies, to expose them to AI agents like Claude, Cursor, and Gemini.MIT
- AlicenseAqualityDmaintenanceEnables an AI agent to run local tools on the user's own machine via stdio, including command execution, workspace file read/write, and system status checks.52MIT
- FlicenseNot gradedqualityDmaintenanceEnables autonomous agents and multi-agent frameworks to discover and execute modular, class-based tools over SSE with a standardized response contract.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to discover and execute operational tools such as database mutations and system diagnostics over stdio, with deterministic structured outputs and Langfuse observability.ISC