Skip to main content

Shared FastMCP infrastructure: auth, middleware, logging, server-factory helpers

Project description

fastmcp-pvl-core

Shared FastMCP infrastructure for the pvliesdonk/*-mcp server family: auth, middleware, logging, config helpers, server-factory building blocks.

Ecosystem

  • fastmcp-server-template — copier template that scaffolds new FastMCP servers on top of this library.
  • Active consumers (as of 2026-04): markdown-vault-mcp, scholar-mcp, image-generation-mcp.
  • Public API changes here propagate to consumers via periodic copier update runs against the template.
  • See the template's README for the update flow and the expected project shape.

API stability

This package is stable at 1.x and follows semantic versioning: breaking changes bump the major version, new features bump the minor, bugfixes bump the patch. "Public API" means symbols re-exported from the top-level fastmcp_pvl_core package (see __all__), which intentionally covers both the runtime surface (auth, middleware, factory builders, env/config helpers) and the CLI parser helpers consumed by downstream server.py entrypoints. Modules prefixed with _ are internal and may change without a major-version bump.

Install

uv add fastmcp-pvl-core
# If you use RemoteAuthProvider mode:
uv add "fastmcp-pvl-core[remote-auth]"

Usage

See src/fastmcp_pvl_core/ for the full surface. Typical usage:

from fastmcp import FastMCP
from fastmcp_pvl_core import (
    ServerConfig, build_auth, build_instructions,
    wire_middleware_stack, env,
)

config = ServerConfig.from_env("MY_APP")
mcp = FastMCP(
    name="my-app",
    instructions=build_instructions(read_only=False, env_prefix="MY_APP", domain_line="…"),
    auth=build_auth("MY_APP", config),
)
wire_middleware_stack(mcp)

Specs

  • MCP File Exchange v0.3 — convention for cross-MCP-server file transfer (exchange:// URIs over a shared volume + http fallback). The protocol surface (FileRef, ExchangeURI, register_file_exchange_capability) ships in fastmcp_pvl_core; the runtime is tracked in issue #21.

License

MIT

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

fastmcp_pvl_core-1.1.0rc1.tar.gz (190.2 kB view details)

Uploaded Source

Built Distribution

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

fastmcp_pvl_core-1.1.0rc1-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file fastmcp_pvl_core-1.1.0rc1.tar.gz.

File metadata

  • Download URL: fastmcp_pvl_core-1.1.0rc1.tar.gz
  • Upload date:
  • Size: 190.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for fastmcp_pvl_core-1.1.0rc1.tar.gz
Algorithm Hash digest
SHA256 8b9986d32736833c3aabc603d87a2fb2b09962bbe35cb1bec6e557c30384642f
MD5 3833d1379fa3b46f38d48e6b2e4abda8
BLAKE2b-256 cc62eb59c69011e02eea86f717a1e80bd9e21bdc99d9549c4032d2652751d8a4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_pvl_core-1.1.0rc1.tar.gz:

Publisher: release.yml on pvliesdonk/fastmcp-pvl-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file fastmcp_pvl_core-1.1.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastmcp_pvl_core-1.1.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 985ade743354b06cc8c03918c0a2ff5ab322e46e6566b1e3cff4285b5a974e60
MD5 9766f62b65bb67e92485376a4ee549c1
BLAKE2b-256 9c941879c725cca8396a4d06668103ebf68ccd598240f028b3a15e96bb4f86d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_pvl_core-1.1.0rc1-py3-none-any.whl:

Publisher: release.yml on pvliesdonk/fastmcp-pvl-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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