You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,13 +4,13 @@ Unofficial extension library for FastMCP 2.0 with patterns, practices, and utili
4
4
5
5
## Features
6
6
7
-
- MCP Server Factory: `mcp_server()` helper that creates FastMCP instances with built-in server info resources, MCP asset discovery (optional), and credential resolution
7
+
- MCP Server Factory: `mcp_server()` helper that creates FastMCP instances with built-in server info resources, MCP asset discovery (optional), and credential resolution.
8
8
- MCP Annotation Constants: Standard annotation hints (`readOnlyHint`, `destructiveHint`, `idempotentHint`, `openWorldHint`) following the FastMCP 2.2.7+ specification
9
-
- Deferred Registration Decorators: `@mcp_tool`, `@mcp_prompt`, `@mcp_resource` decorators for organizing tools by domain with automatic domain detection
10
-
- Registration Utilities: Functions to register tools, prompts, and resources with a FastMCP app, filtered by domain
11
-
- Tool Testing Utilities: Helpers for testing MCP tools directly with JSON arguments (stdio and HTTP transports)
12
-
- Tool List Measurement: Utilities for measuring tool list size to track context truncation issues
13
-
- Prompt Helpers: Generic `get_prompt_text` helper for agents that cannot access prompt assets directly
9
+
- Deferred Registration Decorators: `@mcp_tool`, `@mcp_prompt`, `@mcp_resource` decorators for organizing tools by domain with automatic domain detection.
10
+
- Registration Utilities: Functions to register tools, prompts, and resources with a FastMCP app, filtered by domain.
11
+
- Tool Testing Utilities: Helpers for testing MCP tools directly with JSON arguments (stdio and HTTP transports).
12
+
- Tool List Measurement: Utilities for measuring tool list size to track context truncation issues.
13
+
- Prompt Helpers: Generic `get_prompt_text` helper for agents that cannot access prompt assets directly.
14
14
15
15
## Installation
16
16
@@ -28,7 +28,7 @@ uv add fastmcp-extensions
28
28
29
29
### Using the MCP Server Factory
30
30
31
-
The `mcp_server()` function creates a FastMCP instance with built-in server info resources and optional credential resolution:
31
+
The `mcp_server` function creates a FastMCP instance with built-in server info resources and optional credential resolution:
32
32
33
33
```python
34
34
from fastmcp_extensions import mcp_server, MCPServerConfigArg
-`mcp_server(name, package_name, advertised_properties, auto_discover_assets, server_config_args, **fastmcp_kwargs)` - Create a FastMCP instance with built-in server info resource
0 commit comments