Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

functype-mcp-server

Latest version: v2.2.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: jordanburke
10 Stars
1 Forks
29 Versions
4.3K Downloads
TypeScript Repo language

Scan summary

functype-mcp-server was last scanned on 24 Nov 2026 at version 2.2.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 29 versions; the latest 5 were published within 5 days (20–24 Nov 2026).
  • Findings: No rules fired in version 2.2.0.
  • Downloads: 4,257 downloads.

Versions

29 versions published
Versions and the rules that fired in each
VersionPublishedStatus
2.2.0 LATEST 24 Nov 2026 No rules fired
2.1.0 23 Nov 2026 No rules fired
2.0.0 22 Nov 2026 No rules fired
1.27.2 22 Nov 2026 Not shown
1.27.1 20 Nov 2026 Not shown

No rules fired in 2.2.0

Findings

Findings for v2.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 2.2.0; other versions have their own rules, not their own score.

Known vulnerabilities

1 CVE · last 28 Oct 2026

0 CRITICAL 1 HIGH 0 MEDIUM 0 LOW

Versions

  • ≥ 1.4.4
  • < 1.4.4 1 HIGH

Vulnerabilities

  • CVE-2026-59176 High 28 Oct 2026 functype-mcp-server: MCP `set_functype_version` Package Alias RCE via Unsanitized pnpm install + Dynamic Import Fixed in 1.4.4

README

The publisher’s own README, as collected from the registry.

functype-mcp-server

MCP server for functype — documentation lookup and compile-time TypeScript code validation for AI editors.

This package is part of the functype monorepo.

Features

  • search_docs — Search functype documentation by keyword or type name
  • get_type_api — Detailed API reference for any type (Option, Either, List, IO, etc.)
  • get_interfaces — Interface hierarchy (Functor, Monad, Foldable, Extractable, etc.)
  • validate_code — Type-check functype code snippets using the TypeScript Compiler API, then lint them with eslint-plugin-functype's recommended preset
  • set_functype_version — Switch functype version at runtime (installs + reloads docs and types)

The validate_code tool is the killer feature: an LLM writes functype code, calls the tool, gets back type errors and lint errors, and fixes them before showing the user. The lint errors are the ones a project's build reports with the same preset. A snippet can still pass here and fail there: an inline eslint-disable comment is honored here, as in a build; .tsx isn't parsed; and code that doesn't type-check, such as React code without React's types, isn't linted.

Installation

Claude Desktop

Add to your Claude Desktop config (~/Library/Application Support/Claude/claude_desktop_config.json):

{
  "mcpServers": {
    "functype": {
      "command": "npx",
      "args": ["functype-mcp-server"]
    }
  }
}
Claude Code

Add to your project's .mcp.json:

{
  "mcpServers": {
    "functype": {
      "command": "npx",
      "args": ["functype-mcp-server"]
    }
  }
}
From Source
git clone https://github.com/jordanburke/functype.git
cd functype/mcp-server
pnpm install
pnpm build

Then configure your MCP client to use node dist/bin.js.

Tools

search_docs

Search functype documentation. Omit query for a full overview.

query?: string  — Type name or keyword (e.g., "Option", "map", "Foldable")
get_type_api

Get detailed API reference for a specific type.

type_name: string              — e.g., "Option", "Either", "List", "IO"
include_full_interface?: bool  — Include full TypeScript interface definition
get_interfaces

Get the interface hierarchy — Functor, Monad, Foldable, Extractable, etc.

No parameters.

validate_code

Type-check a functype code snippet using the TypeScript compiler, then lint it with eslint-plugin-functype's recommended preset.

code: string          — TypeScript code to validate
auto_import?: bool    — Auto-import functype types if no import present (default: true)
lint?: bool           — Also run the lint preset once the code type-checks (default: true)

Returns Validation PASSED, or the type errors (line, column, message, TS error code) and the lint errors (line, column, message, rule).

  • The lint preset is the one a project's build runs, every rule error or off. The type-aware rules run too, such as no-floating-result on a dropped Either and no-array-mutation on a push: the linter reuses the program the type check built.
  • Lint runs only once the code type-checks, because the type-aware rules need the types.
  • A snippet passes only with no type errors and no lint errors. Pass lint: false to check types alone.
set_functype_version

Switch the functype version at runtime. Installs the specified version and reloads all documentation and type definitions.

version: string  — Version to install (e.g., "0.47.0", "latest", ...)

Requires functype >= 0.47.0 for full documentation support. Older versions will still work for type-checking via validate_code.

Environment Variables

Variable Default Description
TRANSPORT_TYPE stdio Transport mode: stdio or httpStream
PORT 3000 HTTP port (when using httpStream)
HOST 127.0.0.1 HTTP host (when using httpStream). Set 0.0.0.0 to bind all interfaces

Security note. set_functype_version installs a package and dynamic-imports it, so it is only registered when TRANSPORT_TYPE=stdio (the default). Over HTTP, an unauthenticated caller could otherwise downgrade functype to a vulnerable version. The HTTP listener also defaults to 127.0.0.1 — set HOST=0.0.0.0 explicitly if you really want to bind publicly, and front it with auth.

Development

pnpm validate          # format + lint + typecheck + test + build
pnpm test              # Run tests
pnpm inspect           # Build + launch MCP Inspector
pnpm serve:dev         # Dev server with tsx watch

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm functype-mcp-server

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229