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.

Status

Early 0.x. API may change on minor bumps until 1.0.

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)

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.0.0rc1.tar.gz (144.9 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.0.0rc1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fastmcp_pvl_core-1.0.0rc1.tar.gz
  • Upload date:
  • Size: 144.9 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.0.0rc1.tar.gz
Algorithm Hash digest
SHA256 56925ed645720b956a7d1fe395da6edb9518c4e47470a4d0c24520af2364c26e
MD5 fc440ae415d2cebc0b7a00c71b7089f8
BLAKE2b-256 446171891949c6569c986d01a2f043687a6acb704a2b6b8422f3806036c47e12

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_pvl_core-1.0.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.0.0rc1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastmcp_pvl_core-1.0.0rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 5b268ca4dbe9eef50ee99fd58cd55fed32470fcf9c389eb45742a23454dadc6a
MD5 2b1d3c63354f8b1049f471ae6c299f3a
BLAKE2b-256 60f529ef92cfa2a0f61178e3bdd6f4b7fbc24e39507d0085154ec71bdc22a067

See more details on using hashes here.

Provenance

The following attestation bundles were made for fastmcp_pvl_core-1.0.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