validate
v0.1.2Deterministic validation for AI-generated artifacts: JSON Schema, OpenAPI response, SQL syntax.
Values you need
| Variable | What it is | |
|---|---|---|
SANDBOX_URL | optional | Base URL of the validate API Default: https://api.machinegrade.dev |
SANDBOX_API_KEY | required secret | API key issued via POST https://api.machinegrade.dev/keys (free tier: 500 calls/month) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add validate -e 'SANDBOX_API_KEY=<SANDBOX_API_KEY>' -- npx -y --package=@machinegrade/validate@0.1.2 machinegrade-validate-mcpAdd to
claude_desktop_config.json{
"mcpServers": {
"validate": {
"args": [
"-y",
"--package=@machinegrade/validate@0.1.2",
"machinegrade-validate-mcp"
],
"command": "npx",
"env": {
"SANDBOX_API_KEY": "<SANDBOX_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"validate": {
"args": [
"-y",
"--package=@machinegrade/validate@0.1.2",
"machinegrade-validate-mcp"
],
"command": "npx",
"env": {
"SANDBOX_API_KEY": "<SANDBOX_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SANDBOX_API_KEY",
"id": "sandbox-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"validate": {
"args": [
"-y",
"--package=@machinegrade/validate@0.1.2",
"machinegrade-validate-mcp"
],
"command": "npx",
"env": {
"SANDBOX_API_KEY": "${input:sandbox-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.validate]
command = "npx"
args = ["-y", "--package=@machinegrade/validate@0.1.2", "machinegrade-validate-mcp"]
env = { "SANDBOX_API_KEY" = "<SANDBOX_API_KEY>" }Remote (hosted)
Run in a terminal
claude mcp add --transport http validate https://api.machinegrade.dev/mcpAdd to
Settings → Connectors → Add custom connector (or claude_desktop_config.json via mcp-remote){
"mcpServers": {
"validate": {
"args": [
"-y",
"mcp-remote",
"https://api.machinegrade.dev/mcp"
],
"command": "npx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"validate": {
"url": "https://api.machinegrade.dev/mcp"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"validate": {
"type": "http",
"url": "https://api.machinegrade.dev/mcp"
}
}
}Add to
~/.codex/config.toml[mcp_servers.validate]
command = "npx"
args = ["-y", "mcp-remote", "https://api.machinegrade.dev/mcp"]For AI agents
- Ask the user for: SANDBOX_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: validate.
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json