functype-mcp-server

v1.26.0
functype-mcp-server Checked 16 hours ago Published 23 days ago

MCP server for functype documentation lookup and TypeScript code validation

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_docs

Search functype documentation by keyword or type name. Omit query for a full overview of all types and categories.

ParameterTypeDescription
querystringType name or keyword to search for. Omit for full overview.

get_type_api

Get detailed API reference for a specific functype type including methods by category and optionally the full TypeScript interface definition.

ParameterTypeDescription
type_name *stringThe type name (e.g., Option, Either, List, IO)
include_full_interfacebooleanInclude full TypeScript interface definition

get_interfaces

Get the functype interface hierarchy — Functor, Monad, Foldable, Extractable, Matchable, etc. — with their methods and inheritance.

validate_code

Type-check a functype code snippet using the TypeScript compiler. Returns PASSED or a list of type errors with line/column/message. Use this to verify functype code is type-correct before presenting to users.

ParameterTypeDescription
code *stringTypeScript code snippet using functype to type-check
auto_importbooleanAutomatically import all functype types if no import statement is present. Default: true

set_functype_version

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

ParameterTypeDescription
version *stringThe functype version to install (e.g., "0.46.0", "latest", "^0.45.0")