mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-11 16:19:10 +02:00
Co-authored-by: marvin-context-protocol[bot] <225465937+marvin-context-protocol[bot]@users.noreply.github.com>
25 lines
601 B
Text
25 lines
601 B
Text
---
|
|
title: auth
|
|
sidebarTitle: auth
|
|
---
|
|
|
|
# `fastmcp.utilities.auth`
|
|
|
|
|
|
Authentication utility helpers.
|
|
|
|
## Functions
|
|
|
|
### `parse_scopes` <sup><a href="https://github.com/jlowin/fastmcp/blob/main/src/fastmcp/utilities/auth.py#L9" target="_blank"><Icon icon="github" style="width: 14px; height: 14px;" /></a></sup>
|
|
|
|
```python
|
|
parse_scopes(value: Any) -> list[str] | None
|
|
```
|
|
|
|
|
|
Parse scopes from environment variables or settings values.
|
|
|
|
Accepts either a JSON array string, a comma- or space-separated string,
|
|
a list of strings, or ``None``. Returns a list of scopes or ``None`` if
|
|
no value is provided.
|
|
|