# TypeSafe

TypeSafe is an MCP server for Claude Code that scores claims, choices, and ordered scales. It can handle one item or batches of up to 1000 rows.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5 repo stars
- Author: foreverworks
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/foreverworks/mcps/tree/HEAD/servers/typesafe
- Updated: 2026-10-29
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/typesafe

## What it does

TypeSafe sends questions to Jev and returns probabilities, a selected option, or a score on an ordered scale. The `ask` tool handles a single state; `ask_batch` processes a set and can apply thresholds or filters such as `where`, `top`, and `counts`.

The server needs a TypeSafe account and an API key stored in a file named through `TYPESAFE_API_KEY_FILE`. Calls are billed by input tokens, and the published package requires Node 22.19 or newer. Batch input files are read from `MCP_FILE_ROOTS`; full results can be saved as JSONL.

## Requirements
- Needs: Node.js (commands run via npx)
- Environment variables: `TYPESAFE_API_KEY_FILE` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add typesafe -e TYPESAFE_API_KEY_FILE=<TYPESAFE_API_KEY_FILE> -- npx -y @foreverworks/mcp-typesafe
```
Replace <…> with your own values

### Codex

**Platform CLI**
```bash
codex mcp add typesafe --env TYPESAFE_API_KEY_FILE=<TYPESAFE_API_KEY_FILE> -- npx -y @foreverworks/mcp-typesafe
```
Replace <…> with your own values

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "typesafe": {
            "command": "npx",
            "args": [
                "-y",
                "@foreverworks/mcp-typesafe"
            ],
            "env": {
                "TYPESAFE_API_KEY_FILE": "<TYPESAFE_API_KEY_FILE>"
            }
        }
    }
}
```
Replace <…> with your own values

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "typesafe": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "@foreverworks/mcp-typesafe"
            ],
            "env": {
                "TYPESAFE_API_KEY_FILE": "<TYPESAFE_API_KEY_FILE>"
            }
        }
    }
}
```
Replace <…> with your own values

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add -e TYPESAFE_API_KEY_FILE=<TYPESAFE_API_KEY_FILE> typesafe npx -y @foreverworks/mcp-typesafe
```
Replace <…> with your own values

## When to use it
- estimate whether a claim holds for an item
- choose a category from a set of options
- score up to 1000 rows on an ordered scale
- filter batch results and count categories

## Example prompts
- Estimate the chance that this record meets the criteria and include Jev’s confidence.
- Classify the entries in this file and save the full results as JSONL.
- Score each row on this scale and show the ones above the threshold.

## Similar
- [typesafe-ai](https://affpapa.org/en/nevibecode/skills/typesafe-ai.md) — skill · 101400 installs
- [building-with-typesafe-jev](https://affpapa.org/en/nevibecode/skills/building-with-typesafe-jev.md) — skill · ★ 158 repo stars
- [Context7](https://affpapa.org/en/nevibecode/mcp/context7.md) — MCP server · 5563 installs
- [Search Google Flights](https://affpapa.org/en/nevibecode/mcp/search-google-flights.md) — MCP server · 2595 installs
- [Math-MCP](https://affpapa.org/en/nevibecode/mcp/math-mcp.md) — MCP server · 5958 installs
- [pipeworx gateway](https://affpapa.org/en/nevibecode/mcp/pipeworx-gateway.md) — MCP server · 419019 installs
- [SparkForge](https://affpapa.org/en/nevibecode/mcp/sparkforge.md) — MCP server · 219896 installs
- [OpenWebSearch](https://affpapa.org/en/nevibecode/mcp/openwebsearch.md) — MCP server · 494 installs

From the same set: [foreverworks/mcps](https://affpapa.org/en/nevibecode/by/foreverworks/mcps.md) — 15 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
