Skip to main content

functualize-mcp

Status: Published — Independently installable from PyPI.

MCP delivery adapter plugin for functualize — exposes jobs as MCP tools via FastMCP. External AI agents (Goose, Claude, Cursor) can discover and invoke functualize jobs through the standardized Model Context Protocol interface without any manual wiring.

Installation

pip install functualize-mcp

Quick Start

from functualize_mcp import JobToolTranslator, MCPToolDef, SchemaExporter

# Translate a job descriptor into an MCP tool definition
translator = JobToolTranslator()
tool_def = translator.translate(my_job_descriptor)
print(tool_def.name, tool_def.description)

# Export all job schemas as OpenAI function calling JSON
exporter = SchemaExporter(translator)
openai_json = exporter.export_openai(descriptors)

Features

  • Automatic job-to-tool translation with JSON Schema input generation from config models
  • Dual transport support: stdio (default) and HTTP+SSE for networked agents
  • Job visibility filtering via include/exclude tags and job name exclusion lists
  • Multi-format schema export: JSON (MCP), Markdown, OpenAI function calling, TypeScript
  • Multi-server management: start, list, and stop background HTTP servers
  • Workflow inspection and advancement tools for paused workflow steps
  • Async job execution with polling via run_job_async / get_execution_status
  • AI outbound gate strategy for workflow checkpoint serialization

API Reference

Public classes and functions exported by this plugin:

  • MCPAdapterPlugin — Plugin entry point implementing the AdapterPlugin protocol; registers MCP tools at boot
  • MCPConfig — Pydantic configuration model controlling transport, port, host, tag filters, and management features
  • MCPServer — FastMCP wrapper that discovers jobs, registers tools, and serves via stdio or HTTP+SSE
  • JobToolTranslator — Translates JobDescriptors into MCPToolDef instances using docstrings and config schemas
  • MCPToolDef — Frozen dataclass representing an MCP tool (name, description, input_schema, annotations)
  • SchemaExporter — Exports job schemas in JSON, Markdown, OpenAI, and TypeScript formats
  • MCPToolRegistry — Registers core MCP tools (discover_jobs, get_job_schema, run_job, run_job_async, get_execution_status)
  • MCPHistoryToolRegistry — Registers execution history inspection tools
  • MCPManagementToolRegistry — Registers multi-server management meta-tools
  • MCPTaskToolRegistry — Registers task-domain MCP tools
  • WorkflowToolProvider — Registers workflow state inspection and resume tools
  • ServerManager — Manages background MCP HTTP server processes (start, list, stop)
  • ServerInfo — Dataclass describing a managed server (name, directory, port, pid, status)
  • AIOutboundGateResolver — Gate strategy resolver for AI outbound workflow checkpoints
  • register_ai_outbound_gate_strategy() — Registers the ai_outbound gate strategy and preset with an app

Development

Run plugin tests:

uv run pytest plugins/functualize-mcp/tests/ -v

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

functualize_mcp-0.1.0.tar.gz (44.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

functualize_mcp-0.1.0-py3-none-any.whl (49.9 kB view details)

Uploaded Python 3

File details

Details for the file functualize_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: functualize_mcp-0.1.0.tar.gz
  • Upload date:
  • Size: 44.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.15

File hashes

Hashes for functualize_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 58577b194d6db72462f9ac1c06b32e64662800334abd5954c643c477f416c8cf
MD5 31527d1d6585894e6c8c3b2077b75159
BLAKE2b-256 e268e378938b0ccb30942774eaa86ad7304902fe64908698241bd4ca026ef919

See more details on using hashes here.

File details

Details for the file functualize_mcp-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for functualize_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cc214e34506b985ad8ba3ddfcba669af7e96bc8c0cefa3931737ea6f59dab6b8
MD5 1451c83db656f507302db9a92a4f1c38
BLAKE2b-256 8b3c6c66c4e3c8e8b50d68cdfc74188e6a88315f29ae422e270bac448f8b39c7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page