Skip to main content

Provider toolkit: JSON Schema → Pydantic codegen and validated FastMCP registration

Project description

scientifiq-mcp-provider

Toolkit for standalone Scientifiq MCP providers:

  1. Generate Pydantic models from per-tool JSON Schema (input.v1.json / output.v1.json)
  2. Register handlers on FastMCP with Pydantic input/output validation

Install

pip install -e packages/scientifiq-mcp-provider

Codegen

scientifiq-mcp-codegen \
  --api-dir path/to/domain_api \
  --handler-prefix my_pkg.domain_api

Writes domain_api/<domain>/_generated/python/pydantic_models.py (and tool_schemas.json).

$ref resolution: relative path from the referencing schema, then $id lookup under api_dir (so _shared/bbox.v1.json works).

Serve

from pathlib import Path
from scientifiq_mcp_provider import build_provider_server

mcp = build_provider_server(
    name="my-provider",
    api_dir=Path(__file__).parent / "domain_api",
    handler_prefix="my_pkg.domain_api",
)

Tool names stay unprefixed; the gateway applies namespaces when proxying.

Project details


Download files

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

Source Distribution

scientifiq_mcp_provider-0.1.0.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

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

scientifiq_mcp_provider-0.1.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scientifiq_mcp_provider-0.1.0.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for scientifiq_mcp_provider-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d077a996acef725d63531d6c3eee6918022f8a100d9a2a620475240bad144e58
MD5 1a5cd5e195f85f4b6fcbefb6f3cbbfb4
BLAKE2b-256 2dad0cbe8a86df202b3e161534c8aef2b53e6d70fa589797d43233dadaad64fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for scientifiq_mcp_provider-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 27cf0ef20bf6aa321e723b6f4247b7935e16bb1112ff4f9f6f80c9c62806430d
MD5 62714a3414d179b3bb28ea8fae5f77b8
BLAKE2b-256 cf40e24f100727cae61810c4c53b84141227232c8e3d05bc12512181a563534b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page