Spaces:
Sleeping
Sleeping
zzstoatzz commited on
Commit ·
18d0508
1
Parent(s): 8e52c19
adapt to new structure
Browse filesFiles changed (5)
75 unmodified lines767778798081822 unmodified lines8586878889909124 unmodified lines11611711811912012112232 unmodified lines155156157158159160161162163164165166167100 unmodified lines26826927027127227327427527627775 unmodified lines{"group": "Authentication","icon": "shield-check","pages": ["servers/auth/bearer"]},"servers/middleware","servers/openapi",2 unmodified lines{"group": "Deployment","icon": "upload","pages": ["deployment/running-server", "deployment/asgi"]}]},24 unmodified lines{"group": "Authentication","icon": "user-shield","pages": ["clients/auth/oauth", "clients/auth/bearer"]}]},32 unmodified lines},{"anchor": "What's New","pages": ["updates", "changelog"]},{"anchor": "Community","icon": "users","pages": ["community/showcase"]}]},100 unmodified lines"python-sdk/fastmcp-utilities-components","python-sdk/fastmcp-utilities-exceptions","python-sdk/fastmcp-utilities-http","python-sdk/fastmcp-utilities-json_schema","python-sdk/fastmcp-utilities-logging","python-sdk/fastmcp-utilities-mcp_config","python-sdk/fastmcp-utilities-openapi","python-sdk/fastmcp-utilities-types"]}75 unmodified lines7677787980818283842 unmodified lines8788899091929394959624 unmodified lines12112212312412512612712812913032 unmodified lines163164165166167168169170171172173174175176177178179100 unmodified lines28028128228328428528628728828929029175 unmodified lines{"group": "Authentication","icon": "shield-check","pages": ["servers/auth/bearer"]},"servers/middleware","servers/openapi",2 unmodified lines{"group": "Deployment","icon": "upload","pages": ["deployment/running-server","deployment/asgi"]}]},24 unmodified lines{"group": "Authentication","icon": "user-shield","pages": ["clients/auth/oauth","clients/auth/bearer"]}]},32 unmodified lines},{"anchor": "What's New","pages": ["updates","changelog"]},{"anchor": "Community","icon": "users","pages": ["community/showcase"]}]},100 unmodified lines"python-sdk/fastmcp-utilities-components","python-sdk/fastmcp-utilities-exceptions","python-sdk/fastmcp-utilities-http","python-sdk/fastmcp-utilities-inspect","python-sdk/fastmcp-utilities-json_schema","python-sdk/fastmcp-utilities-logging","python-sdk/fastmcp-utilities-mcp_config","python-sdk/fastmcp-utilities-openapi","python-sdk/fastmcp-utilities-tests","python-sdk/fastmcp-utilities-types"]}
62 unmodified lines63646562 unmodified linesEnvironment variables are preserved once added and only updated if new valuesare explicitly provided.62 unmodified lines63646566676869707172737475767778798081828384858662 unmodified linesEnvironment variables are preserved once added and only updated if new valuesare explicitly provided.### `inspect````pythoninspect(server_spec: str = typer.Argument(..., help='Python file to inspect, optionally with :object suffix'), output: Annotated[Path, typer.Option('--output', '-o', help='Output file path for the JSON report (default: server-info.json)')] = Path('server-info.json')) -> None```Inspect a FastMCP server and generate a JSON report.This command analyzes a FastMCP server (v1.x or v2.x) and generatesa comprehensive JSON report containing information about the server'sname, instructions, version, tools, prompts, resources, templates,and capabilities.Examples:fastmcp inspect server.pyfastmcp inspect server.py -o report.jsonfastmcp inspect server.py:mcp -o analysis.jsonfastmcp inspect path/to/server.py:app -o /tmp/server-info.json
1234567891011121314151617181920212223242526272829303132333435363738394041---title: inspectsidebarTitle: inspect---
# `fastmcp.utilities.inspect`
Utilities for inspecting FastMCP instances.
## Classes
### `ToolInfo`
Information about a tool.
### `PromptInfo`
Information about a prompt.
### `ResourceInfo`
Information about a resource.
### `TemplateInfo`
Information about a resource template.
### `FastMCPInfo`
Information extracted from a FastMCP instance.
123456789101112131415161718192021222324252627282930313233343536373839404142---title: testssidebarTitle: tests---
# `fastmcp.utilities.tests`
## Functions
### `temporary_settings`
```pythontemporary_settings(**kwargs: Any)```
Temporarily override ControlFlow setting values.
**Args:**- `**kwargs`: The settings to override, including nested settings.
### `run_server_in_process`
```pythonrun_server_in_process(server_fn: Callable[..., None], *args, **kwargs) -> Generator[str, None, None]```
Context manager that runs a FastMCP server in a separate process andreturns the server URL. When the context manager is exited, the server process is killed.
**Args:**- `server_fn`: The function that runs a FastMCP server. FastMCP servers arenot pickleable, so we need a function that creates and runs one.- `*args`: Arguments to pass to the server function.- `provide_host_and_port`: Whether to provide the host and port to the server function as kwargs.- `**kwargs`: Keyword arguments to pass to the server function.
**Returns:**- The server URL.
15 unmodified lines1617181920212215 unmodified lines# Generate API reference documentation for all modulesapi-ref-all:uvx --with-editable . --refresh-package mdxify mdxify@latest --all --root-module fastmcp --anchor-name "SDK Reference"# Generate API reference for specific modules (e.g., just api-ref prefect.flows prefect.tasks)api-ref *MODULES:15 unmodified lines1617181920212215 unmodified lines# Generate API reference documentation for all modulesapi-ref-all:uv run --with-editable . --with git+https://github.com/zzstoatzz/mdxify.git@fix-nested-anchor-navigation mdxify --all --root-module fastmcp --anchor-name "Python SDK" --exclude fastmcp.contrib# Generate API reference for specific modules (e.g., just api-ref prefect.flows prefect.tasks)api-ref *MODULES:
docs/docs.json+20-6
docs/python-sdk/fastmcp-cli-cli.mdx+21
docs/python-sdk/fastmcp-utilities-inspect.mdxAdded+41
docs/python-sdk/fastmcp-utilities-tests.mdxAdded+42
justfile+1-1