Skip to main content
Glama
WarToolsAI MCP Server

WarToolsAI MCP Server

WarToolsAI

Modular, Default-Off tool runtime, Model Context Protocol (MCP) server, and multi-language SDK suite for AI agents.

WarToolsAI eliminates tool-schema bloat and unintended execution surfaces by enforcing a Default-Off architecture: zero tools are active or serialized into an agent's context window until explicitly enabled via fine-grained selectors (time.now, kv.*, or curated presets).


Core Architecture (wartools-dod-v1)

Layer

Location

Responsibility

Canonical Spec

spec/registry-manifest.json

Single source of truth for all 50 tools (#01–#50), 17 domains, 5 presets, and JSON Schemas.

Shared Contracts

spec/contracts/*.json

17 domain contract suites testing happy paths, TOOL_DISABLED, INVALID_INPUT, truncation limits, SSRF, symlink escape, and store persistence.

Node.js / TS SDK + MCP

packages/node (@warlockcode/wartools-ai)

ESM + CJS + .d.ts runtime, JsonFileKvStore, FileTraceSink, and MCP server (stdio & HTTP SSE).

Python SDK + MCP

packages/python (warlockcode-wartools-ai)

Python >= 3.10 typed package (py.typed, Pydantic v2 schemas), pluggable stores, and MCP stdio CLI.

.NET SDK

packages/dotnet (WarlockCode.WarToolsAI)

Multi-targeted C# library (net8.0, net9.0, netstandard2.0) + xUnit contract test suite.

Workbench UI

src/ + server.ts

Interactive Express + React catalog, live tool playground, policy exporter, and docs viewer on port 3000.

Parity & CI

scripts/sync-manifest.py + .github/workflows/

Automated parity check across manifest, contracts, and all 3 language implementations.


Related MCP server: machine-mcp

Quick Start

Node.js / TypeScript

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' });

MCP Server CLI

# Stdio transport (Default-Off unless preset/enable is passed)
node packages/node/dist/esm/cli.js --preset agent-core

# HTTP SSE transport
node packages/node/dist/esm/cli.js --transport sse --port 3333 --enable time.now,kv.*

Python (>= 3.10)

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"})

.NET (net8.0 / net9.0 / netstandard2.0)

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" });

Verification Commands

npm run sync:check    # Verifies 50 tools, 17 contracts, and Node/Python/.NET parity
npm run build:node    # Builds packages/node ESM, CJS, and .d.ts artifacts
npm run test:node     # Runs all 17 domain contracts, CJS test, MCP stdio, and MCP HTTP SSE tests
npm run test:python   # Runs all 17 domain contracts and MCP stdio test in Python
npm run lint          # Runs ESLint + TypeScript typecheck

For Spanish documentation, see README.es.md. For full delivery details, see IMPLEMENTATION_HANDOFF.md.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers