mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-21 04:54:17 +02:00
fix rendering for some pages
This commit is contained in:
parent
1aaadf25e9
commit
a7e3ae47bf
4 changed files with 13 additions and 5 deletions
|
|
@ -27,7 +27,7 @@ httpx.AsyncClient (or appropriate FastMCP client/transport instance)
|
|||
|
||||
**Args:**
|
||||
- `mcp_url`: Full URL to the MCP endpoint (e.g.,
|
||||
- `"http`: //host/mcp/sse")
|
||||
- `"http`: //host/mcp/sse/")
|
||||
- `scopes`: OAuth scopes to request. Can be a
|
||||
- `client_name`: Name for this client during registration
|
||||
- `token_storage_cache_dir`: Directory for FileTokenStorage
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ Generate an RSA key pair for testing.
|
|||
#### `create_token`
|
||||
|
||||
```python
|
||||
create_token(self, subject: str = 'fastmcp-user', issuer: str = 'https://fastmcp.example.com', audience: str | None = None, scopes: list[str] | None = None, expires_in_seconds: int = 3600, additional_claims: dict[str, Any] | None = None, kid: str | None = None) -> str
|
||||
create_token(self, subject: str = 'fastmcp-user', issuer: str = 'https://fastmcp.example.com', audience: str | list[str] | None = None, scopes: list[str] | None = None, expires_in_seconds: int = 3600, additional_claims: dict[str, Any] | None = None, kid: str | None = None) -> str
|
||||
```
|
||||
|
||||
Generate a test JWT token for testing purposes.
|
||||
|
|
@ -47,7 +47,7 @@ Generate a test JWT token for testing purposes.
|
|||
- `private_key_pem`: RSA private key in PEM format
|
||||
- `subject`: Subject claim (usually user ID)
|
||||
- `issuer`: Issuer claim
|
||||
- `audience`: Audience claim (optional)
|
||||
- `audience`: Audience claim - can be a string or list of strings (optional)
|
||||
- `scopes`: List of scopes to include
|
||||
- `expires_in_seconds`: Token expiration time in seconds
|
||||
- `additional_claims`: Any additional claims to include
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue