typesafe-mcp
Provides an evaluate tool that uses Vercel AI Gateway as a backend to answer typed questions about content, supporting yes/no probability judgments, multiple-choice selections, and rubric-based scoring.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@typesafe-mcp evaluate this review: 'fast shipping but poor packaging' for sentiment and a 1-5 score"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
system-one-mcp
Local stdio MCP server exposing TypeSafe's System One API as an MCP tool, for Claude Code and other MCP agents. No install step required -- run it with npx.
What it does
The downstream API answers one or more typed questions about a piece of content in a single call. This is exposed as one MCP tool:
Tool | Description |
| Evaluate |
Related MCP server: jev
Setup
Get a TypeSafe API key (or a credential for one of the alternate backends below).
Run it with your key in the environment:
TYPESAFE_API_KEY=your-key npx system-one-mcpThe process exits immediately with an error if no backend can be configured.
Claude Code / agent config
{
"mcpServers": {
"typesafe": {
"command": "npx",
"args": ["-y", "system-one-mcp"],
"env": {
"TYPESAFE_API_KEY": "your-typesafe-api-key"
}
}
}
}Backends
evaluate calls whichever backend is configured. Set exactly one credential and it's picked automatically, in this order:
Backend | Env var | Notes |
TypeSafe direct (default) |
| Via the official |
OpenRouter |
| Jev's alpha Decisions endpoint; |
Vercel AI Gateway |
|
|
Set JEV_BACKEND (typesafe | openrouter | vercel) to force a specific backend instead of relying on auto-detection.
Already using OPENROUTER_API_KEY, AI_GATEWAY_API_KEY, or TYPESAFE_API_KEY for something else in the same environment? Point this server at a different variable instead of renaming yours, by setting <VAR>_ENV to that variable's name:
OPENROUTER_API_KEY_ENV=MY_JEV_OPENROUTER_KEY MY_JEV_OPENROUTER_KEY=sk-... npx system-one-mcpThis works the same way for all three credentialed backends (TYPESAFE_API_KEY_ENV, OPENROUTER_API_KEY_ENV, AI_GATEWAY_API_KEY_ENV).
Development
npm install
cp .env.example .env # fill in a credential
npm run dev # run from source via tsx
npm run build # bundle to dist/index.js
npm run typecheck
npm testTests (npm test) spawn the real stdio server as a child process (via tsx, exactly as an agent would run it) for each backend, pointed at a local mock HTTP server standing in for the real provider -- they prove credentials (including redirected ones) are forwarded correctly, downstream errors propagate unmodified, and retries happen where the API docs say they should. No live calls are made.
Project layout
src/
index.ts MCP stdio server entrypoint
toolRegistry.ts Registers ./tools/* against the MCP server
backends/ One adapter per provider behind a common EvaluateBackend interface
types.ts Shared types, reusing @typesafe-ai/sdk's own request/response types
typesafe.ts Default backend, via the official SDK
openrouter.ts Same wire dialect as TypeSafe, different host
vercel.ts Translates to/from Vercel AI Gateway's dialect
http.ts Shared HTTP/retry plumbing for openrouter/vercel
index.ts Backend selection (JEV_BACKEND, auto-detect, *_API_KEY_ENV redirects)
tools/
evaluate.ts Tool handler
evaluate.json Tool schema (name, description, input schema)
tests/
evaluate.test.ts End-to-end tests, one backend at a timeAdd a new tool by creating <name>.json + <name>.ts side by side under src/tools/, then listing both in toolRegistry.ts.
Security
Your credential is read once at startup and held only in this process's memory -- it is never written to disk or sent anywhere except as the Authorization: Bearer <key> header on calls to the configured backend's host (api.typesafe.ai, openrouter.ai, or ai-gateway.vercel.sh, per the table above). Treat it like any other bearer credential. Don't paste it into chat messages, tickets, or other insecure channels.
No secrets are committed to source control: .env is gitignored, and only .env.example (no real values) is tracked.
Available Tools
1 toolevaluateA
Evaluate content against one or more typed questions using TypeSafe's System One API (model 'jev'). Supports three question primitives that can be mixed in a single call: noul (yes/no, returns a probability 0-1), choice (select the best-fitting option from a fixed set), and score (rate against a rubric with 2-10 levels). All questions in a call are answered in parallel against the same input.
Inputs: model (required), state (required), questions (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no possibility of an agent confusing it with another. The description clearly defines what 'evaluate' does and its supported question primitives.
With a single tool, naming inconsistency is impossible. 'evaluate' is a clear, action-oriented verb that accurately describes the tool's purpose.
One tool feels thin for a server named 'typesafe-mcp', even though it is not trivial because it packages multiple evaluation primitives. The minimal surface is workable but leaves little room for supporting operations.
The tool covers the full stated domain: noul, choice, and score questions can be mixed and answered in parallel. No obvious required operations are missing for this narrow evaluation-focused use case.
Maintenance
Related MCP Connectors
Prompt evals over MCP: run a prompt on your dataset, score each output 1-5 with an LLM judge.
Evidence-readiness MCP server: validate, audit, and score briefs, memos, and evidence packs.
Remote MCP for Gemini upgrade evals, prompt regressions, output diffs, and eval receipts.
Lets your agent find the right MCP server, tool or service for a task, in one call. Ads labelled.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables structured, rubric-based evaluation of text or structured state using TypeSafe AI's Jev System One API, supporting yes/no, single-choice, and rubric-scored questions in parallel.Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables agents to evaluate single records or batches with dynamically authored typed questions, returning structured decisions and probabilities.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to classify, score, and evaluate content with structured typed decisions via a single generic tool.12MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to obtain typed, probabilistic decisions from text or structured state and up to four images—choosing among labeled options, scoring on ordered scales, and estimating whether propositions are true—for routing, triage, moderation, risk scoring, and similar agent workflows.535 npmMIT