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/adapters/functualize-mcp/tests/ -v

Release files for functualize-mcp 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for functualize-mcp 0.4.0
File Size Uploaded
functualize_mcp-0.4.0.tar.gz 61.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for functualize-mcp 0.4.0
File Interpreter ABI Platform
functualize_mcp-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 119.9 kB

Release files / functualize_mcp-0.4.0.tar.gz

Download URL functualize_mcp-0.4.0.tar.gz
Size 61.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a3d0858f2f381d45f98359befba6a02b5e823e6651d6cd4c7640945ae3efc7f
BLAKE2b-256 checksum
How to use checksums
47d5afface7b54812578a38818608f8fc5e386c9dab0ceafa71cc6eb3b14da85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release files / functualize_mcp-0.4.0-py3-none-any.whl

Download URL functualize_mcp-0.4.0-py3-none-any.whl
Size 58.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7cb5a9fabf37746a15333ffa380109c65a2a1eb28801c1b0093a1b17734fc51f
BLAKE2b-256 checksum
How to use checksums
416091a70ed63f74a89fbd82db4ff1797ce5c427b26cf56744f72035177ddcb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.0

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release 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