# TypeGen

> Use this tool when you need to generate efficient TypeScript client code for MCP servers, reducing token consumption and context overhead. TypeGen introspects servers and converts verbose tool definitions into structured filesystem references, supporting both stdio and HTTP/SSE transport modes. It provides CLI and programmatic API access for seamless integration into development workflows.

Canonical page: https://skillsregistry.net/skills/pontusab-typegen  
JSON: https://api.skillsregistry.net/v1/skills/pontusab-typegen

## Description

Introspects MCP servers and generates typed TypeScript client code to reduce token consumption when calling tools. Converts verbose tool definitions into structured filesystem references, achieving substantial context reduction per Anthropic research on file references. Supports both stdio and HTTP/SSE transport modes with CLI and programmatic API access.

## Trust

- **Trust score (0–1):** 0.94
- **Verification tier:** verified
- **Last scanned:** 2026-09-28

## Facts

- **Version:** 1.0.0
- **Skill type:** atomic
- **Execution layer:** mcp-remote
- **Runtime environment:** api
- **Category:** ai-ml
- **Updated:** 2026-09-28

## Source

- **Source listing:** [PulseMCP](https://www.pulsemcp.com/servers/pontusab-typegen)
- **Repository:** <https://github.com/pontusab/mcp-typegen>

## Use it

Resolve this record through the SkillsRegistry MCP server (no auth, read-only):

```
claude mcp add --transport http --scope user skillsregistry https://api.skillsregistry.net/mcp
```

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "get_skill",
    "arguments": {
      "slug": "pontusab-typegen"
    }
  }
}
```

REST: `GET https://api.skillsregistry.net/v1/skills/pontusab-typegen` · pull for local use: `GET https://api.skillsregistry.net/v1/skills/pontusab-typegen/pull`

---
SkillsRegistry indexes agent skills from public registries and GitHub. Skills we have analysed are scanned with Circle-IR and scored on six dimensions; each listing states its scan coverage. More: https://skillsregistry.net/llms.txt
