dole
Project description
summary & introduction
this package provides some helper classes needed for using
fastmcp with azure authentication. in particular, fastmcp 2.12.5
has certain problems when trying to use the provided
fastmcp.server.auth.AzureProvider with a py-key-value-aio RedisStore
as described in the fastmcp documentation.
usage
from fastmcp import FastMCP
from dole.azure import azure_auth
from dole.health import add_health_endpoint, add_logging_health_filter
add_logging_health_filter()
tenant_id = 'my entra tenant id'
client_id = 'my entra app client id'
client_secret = '.......'
redis_host = 'redis'
redis_db = '0'
redis_port = '6379'
base_url = 'http://localhost:8000' # note that we do not include the mcp suffix
auth = azure_auth(
tenant_id, client_id, client_secret, base_url,
redis_host, redis_db, redis_port)
mcp = FastMCP(
name="my-mcp-server",
instructions="""
""",
auth=auth,
)
add_health_endpoint(mcp)
powered by angry penguins.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dole-0.1.tar.gz
(6.5 kB
view details)
File details
Details for the file dole-0.1.tar.gz.
File metadata
- Download URL: dole-0.1.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee628d98159ce92947c06e20c44085fcc67d54eadceb15b4b49cac1b07c84d95
|
|
| MD5 |
1a3466f57c3ee6e9d507ecc39eb2d074
|
|
| BLAKE2b-256 |
8b7984e3071f2d0d012002f69fcaebc49ff866b40928bc4b5647c88088585cc3
|