Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
16,098 in github.com/PrefectHQ/fastmcp
⨍
Functions
16,098
◇
Types & classes
2,237
↳
Endpoints
189
↓ 2 callers
Function
_constant
(content: bytes)
tests/skills/test_read_skill.py:172
↓ 2 callers
Function
_contains_input_required
True when `InputRequiredResult` appears anywhere in *tp*. Recurses through `TypeAliasType`, `Annotated`, and unions so a guard arm is found e
fastmcp_slim/fastmcp/tools/function_parsing.py:109
↓ 2 callers
Function
_convert_normalized
(schema: dict[str, Any], name: str | None)
fastmcp_slim/fastmcp/utilities/json_schema_type.py:386
↓ 2 callers
Function
_convert_nullable_field
Convert OpenAPI nullable field to JSON Schema type array.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:203
↓ 2 callers
Function
_convert_tool_choice_to_google_genai
Convert MCP ToolChoice to Google GenAI ToolConfig.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:203
↓ 2 callers
Method
_convert_tools_to_anthropic
Convert MCP tools to Anthropic tool format.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:378
↓ 2 callers
Function
_cookie_max_age
(response, name: str)
tests/server/auth/test_oauth_consent_page.py:148
↓ 2 callers
Method
_cookie_signing_key
Return the key used for HMAC-signing consent cookies. Uses the upstream client secret when available, falling back to the JWT signing
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:136
↓ 2 callers
Method
_create_basic_auth_header
Create HTTP Basic Auth header value from client credentials.
fastmcp_slim/fastmcp/server/auth/providers/introspection.py:162
↓ 2 callers
Function
_create_dataclass
Create dataclass from object schema.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1437
↓ 2 callers
Method
_create_transport
Create the transport used by a multi-server proxy backend.
fastmcp_slim/fastmcp/client/transports/config.py:309
↓ 2 callers
Function
_current_user_session
Build the per-user session for the current principal, or `None` if unauth. Resolves the store through `get_server()` rather than `get_context()`:
fastmcp_slim/fastmcp/server/sessions.py:386
↓ 2 callers
Method
_cursor
(offset: object)
tests/server/test_pagination.py:129
↓ 2 callers
Function
_decode_jwt_part
Decode a JWT part (header or payload) without signature verification. Args: token: JWT token string (header.payload.signature) pa
fastmcp_slim/fastmcp/utilities/auth.py:14
↓ 2 callers
Method
_decode_list_cookie
Decode and verify a signed base64-encoded JSON list from cookie. Returns [] if missing/invalid.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:180
↓ 2 callers
Function
_delegate_extension_interceptors
(server: FastMCP)
fastmcp_slim/fastmcp/server/extensions.py:108
↓ 2 callers
Function
_dict_to_enum_schema
Convert dict enum to SEP-1330 compliant schema pattern. Args: enum_dict: {"low": {"title": "Low Priority"}, "medium": {"title": "Medium P
fastmcp_slim/fastmcp/server/elicitation.py:382
↓ 2 callers
Method
_discover_body
(**envelope: Any)
tests/client/client/test_mode_negotiation.py:175
↓ 2 callers
Function
_discriminator_target_name
Resolve a ``discriminator.mapping`` value to a local schema name. Mapping values hold "schema names or references", so a bare ``"Cat"`` means
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:416
↓ 2 callers
Function
_dispatch_decorator
Shared dispatch logic for @app.tool() and @app.ui() calling patterns.
fastmcp_slim/fastmcp/apps/app.py:124
↓ 2 callers
Function
_download_skill
( client: Client, skill_name: str, target_dir: str | Path, *, overwrite: bool )
fastmcp_slim/fastmcp/utilities/skills.py:208
↓ 2 callers
Function
_drive_flow_tracking_step_up
Delegate to the inherited auth flow, flagging step-up challenges. On a 403 ``insufficient_scope`` the inherited flow unions the challenged scope
fastmcp_slim/fastmcp/client/auth/client_credentials.py:136
↓ 2 callers
Function
_drive_to_terminal
Poll `tasks/get` until the task reaches a terminal state. `working` sleeps and polls again; `input_required` answers the outstanding requests
fastmcp_tasks/fastmcp_tasks/client.py:248
↓ 2 callers
Function
_dump_task_fields
Dump without the `resultType` discriminator the draft schema omits. `resultType` is required by the protocol's result union but forbidden by the
tests/tasks/server/test_wire_models.py:56
↓ 2 callers
Method
_ec_assertion
Sign an ES256 assertion, returning it with the matching public JWK.
tests/server/auth/test_cimd_validators.py:359
↓ 2 callers
Function
_effective_prefab_tools
Use provider and session transforms before deriving resource identity.
fastmcp_slim/fastmcp/server/providers/prefab_synthesis.py:226
↓ 2 callers
Method
_encode_list_cookie
Encode values to base64 and sign with HMAC. Returns: signed cookie value (payload.signature)
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:209
↓ 2 callers
Function
_entry_files
On-disk entry files, excluding per-collection index files.
tests/server/auth/test_oauth_proxy_storage.py:221
↓ 2 callers
Function
_enum_values
(schema: Any)
fastmcp_slim/fastmcp/server/transforms/search/base.py:217
↓ 2 callers
Function
_evaluate_check
Evaluate a single auth check, masking unexpected failures as denial. An ``AuthorizationError`` is the check's deliberate denial and propagates.
fastmcp_slim/fastmcp/utilities/authorization.py:230
↓ 2 callers
Function
_expected
(tool: str, text: str)
tests/server/transforms/test_input_required.py:89
↓ 2 callers
Method
_extension_runtime
Track a serving root independently of resource lifespan ownership. Composite providers forward this scope to their children so live c
fastmcp_slim/fastmcp/server/providers/base.py:108
↓ 2 callers
Function
_extract_client_extension_settings
Pull `_meta[clientCapabilities][extensions][identifier]` from a lifted meta block.
fastmcp_slim/fastmcp/server/extensions.py:288
↓ 2 callers
Method
_extract_schema_dependencies
Extract all schema names referenced by a schema (including transitive dependencies). Args: schema: The schema to analyze
fastmcp_slim/fastmcp/utilities/openapi/parser.py:592
↓ 2 callers
Method
_extract_scopes
(self, claims: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/providers/auth0.py:202
↓ 2 callers
Function
_fastmcp_surface
(mcp: FastMCP)
tests/docs/test_upgrade_guide_equivalence.py:108
↓ 2 callers
Method
_fetched
(self, uri: str)
fastmcp_slim/fastmcp/skills/_proxy.py:81
↓ 2 callers
Function
_file_resource
( provider: SkillManifestProvider, path: str, manifest: SkillManifest, file_path: str, fil
fastmcp_slim/fastmcp/skills/provider.py:508
↓ 2 callers
Function
_filter_rows
( rows: list[dict], region: str = "All", product: str = "All", )
examples/apps/explorer/explorer_server.py:287
↓ 2 callers
Function
_fit_id
(name: str)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:83
↓ 2 callers
Method
_fit_question
(name: str)
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:257
↓ 2 callers
Function
_format_host_for_url
Format a host for inclusion in a URL, bracketing IPv6 addresses. A bare IPv6 address like ``::1`` must be wrapped in brackets when placed bef
fastmcp_slim/fastmcp/server/mixins/transport.py:38
↓ 2 callers
Function
_gated_server
(**kwargs: Any)
tests/server/test_completions.py:362
↓ 2 callers
Method
_generate
Generate a CLI for the server "weather" and return its CLIENT_SPEC.
tests/cli/test_generate_cli_remote.py:110
↓ 2 callers
Function
_get_candidate_from_response
Extract the first candidate from a response.
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:372
↓ 2 callers
Method
_get_connected_client
(self, server_name: str)
fastmcp_slim/fastmcp/client/group.py:221
↓ 2 callers
Method
_get_data
Get raw image data as base64-encoded string.
fastmcp_slim/fastmcp/utilities/types.py:293
↓ 2 callers
Function
_get_duration_ms
(start_time: float, /)
fastmcp_slim/fastmcp/server/middleware/logging.py:255
↓ 2 callers
Method
_get_entry
( self, uri: str, context: ServerRequestContext[Any, Any] )
fastmcp_slim/fastmcp/skills/extension.py:185
↓ 2 callers
Method
_get_execute_tool
(self)
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:704
↓ 2 callers
Method
_get_model
(self, model_preferences: ModelPreferences | None)
fastmcp_slim/fastmcp/client/sampling/handlers/google_genai.py:174
↓ 2 callers
Method
_get_prompt
(self, name: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:449
↓ 2 callers
Method
_get_resource
( self, uri: str, version: VersionSpec | None = None )
tests/skills/test_extension.py:86
↓ 2 callers
Method
_get_resource_template
(self, uri: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:443
↓ 2 callers
Method
_get_skill_entry
( self, uri: str, context: ServerRequestContext[Any, Any] )
tests/skills/test_read_skill.py:368
↓ 2 callers
Function
_get_skill_manifest
(client: Client, skill_name: str)
fastmcp_slim/fastmcp/utilities/skills.py:133
↓ 2 callers
Method
_get_tool
(self, name: str, version: Any = None)
fastmcp_slim/fastmcp/apps/app.py:431
↓ 2 callers
Method
_get_tool_by_hash
Look up an app-visible tool by its identity hash, before transforms. Matches on ``meta["fastmcp"]["tool_hash"]`` and requires ``"app"`` in
fastmcp_slim/fastmcp/server/providers/base.py:323
↓ 2 callers
Function
_get_user
( api_origin: str, credential: ResolvedCredential, )
fastmcp_slim/fastmcp/cli/deploy/command.py:187
↓ 2 callers
Function
_guard_server
()
tests/server/middleware/test_message_visibility.py:337
↓ 2 callers
Method
_handle
(self, request: httpx2.Request)
tests/utilities/httpx2_mock.py:160
↓ 2 callers
Function
_handle_prompt
Handle a prompt get within an open client session.
fastmcp_slim/fastmcp/cli/client.py:726
↓ 2 callers
Function
_has_literal_query
Whether the template writes `?` as literal text, outside a `{?...}` block.
fastmcp_slim/fastmcp/resources/template.py:108
↓ 2 callers
Function
_has_openapi_specific_fields
Whether the schema itself carries a keyword that needs converting.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:179
↓ 2 callers
Function
_has_read_only_properties
Quick check if schema has any readOnly properties.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:239
↓ 2 callers
Function
_has_ref
Check if a schema contains any $ref.
fastmcp_slim/fastmcp/server/middleware/dereference.py:67
↓ 2 callers
Function
_has_write_only_properties
Quick check if schema has any writeOnly properties.
fastmcp_slim/fastmcp/utilities/openapi/json_schema_converter.py:249
↓ 2 callers
Function
_host_origin_guard_middleware
Build the Host/Origin guard for an HTTP transport app. Returns None when `host_origin_protection` is False. `True` validates every request; `
fastmcp_slim/fastmcp/server/http.py:346
↓ 2 callers
Function
_http_request_with_headers
Build a minimal Starlette HTTP request carrying the given headers.
tests/server/http/test_http_dependencies.py:16
↓ 2 callers
Method
_ident
(kind: str, item: Any)
tests/pbt/test_components_machine.py:296
↓ 2 callers
Function
_import_key_for_algorithm
(key: str | bytes | JWKKeyData, algorithm: str)
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:50
↓ 2 callers
Function
_initialize
Create a session with the given token and return its session id.
tests/server/http/test_session_owner_enforcement.py:59
↓ 2 callers
Method
_initialize
(self, files: Mapping[str, str | bytes])
fastmcp_slim/fastmcp/skills/skill.py:234
↓ 2 callers
Function
_inject_log_panel
Inject the MCP message log panel before </body>.
fastmcp_slim/fastmcp/cli/apps_dev.py:813
↓ 2 callers
Method
_injected_tools
Tools added by `ToolInjectionMiddleware`, one per name. Each name maps to the tool `_get_injected_tool()` resolves for it: the one fr
fastmcp_slim/fastmcp/server/server.py:766
↓ 2 callers
Function
_inlined_call_tool_result
Parse a completed task's inlined result dict into a `CallToolResult`.
fastmcp_tasks/fastmcp_tasks/client.py:303
↓ 2 callers
Method
_input_response_params
The active request's multi-round-trip fields (SEP-2322), if any. Reads the raw params of the active wire request through the SDK's pe
fastmcp_slim/fastmcp/server/context.py:369
↓ 2 callers
Method
_install_extension
Wire a registration, removing methods belonging to its predecessor.
fastmcp_slim/fastmcp/server/mixins/extensions.py:79
↓ 2 callers
Function
_invalid_folder
One line per invalid folder: what's wrong, then how to fix it.
fastmcp_slim/fastmcp/skills/provider.py:377
↓ 2 callers
Function
_is_authored_skill
Check real inheritance, excluding the public wire-model compatibility alias.
fastmcp_slim/fastmcp/skills/skill.py:144
↓ 2 callers
Function
_is_input_required_type
True when *tp* is the `InputRequiredResult` type (SEP-2322). Resolves a `TypeAliasType` and peels an `Annotated` wrapper first, so an aliased
fastmcp_slim/fastmcp/tools/function_parsing.py:95
↓ 2 callers
Method
_is_served
Advertise a skill only when this caller can read every file as listed.
fastmcp_slim/fastmcp/skills/provider.py:164
↓ 2 callers
Method
_is_served
(self, entry: MCPSkill)
fastmcp_slim/fastmcp/skills/_proxy.py:139
↓ 2 callers
Function
_is_simple_type
Check if a schema represents a simple (non-complex) type.
fastmcp_slim/fastmcp/cli/generate.py:39
↓ 2 callers
Function
_is_unsafe_redirect_uri
(uri: str)
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:342
↓ 2 callers
Function
_json_values_equal
Compare JSON values without treating booleans as numbers.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:745
↓ 2 callers
Function
_key_asking
The surfaced key whose parked request asks *message*.
tests/tasks/server/test_guard_reentrant.py:66
↓ 2 callers
Function
_key_type_for_algorithm
(algorithm: str)
fastmcp_slim/fastmcp/server/auth/providers/jwt.py:38
↓ 2 callers
Method
_limits_tool
(self, name: str)
fastmcp_slim/fastmcp/server/middleware/response_limiting.py:72
↓ 2 callers
Method
_list_entries
( self, context: ServerRequestContext[Any, Any] )
fastmcp_slim/fastmcp/skills/extension.py:161
↓ 2 callers
Method
_list_prompts
Return all available prompts. Override to provide prompts dynamically. Returns ALL versions of all prompts. The server handles dedupl
fastmcp_slim/fastmcp/server/providers/base.py:555
↓ 2 callers
Method
_list_resource_templates
Return all available resource templates. Override to provide resource templates dynamically. Returns ALL versions. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:524
↓ 2 callers
Method
_list_resources
Return all available resources. Override to provide resources dynamically. Returns ALL versions of all resources. The server handles
fastmcp_slim/fastmcp/server/providers/base.py:493
↓ 2 callers
Method
_list_resources
List all resources from the remote server.
fastmcp_slim/fastmcp/server/providers/proxy.py:1132
↓ 2 callers
Function
_list_skills
(client: Client)
fastmcp_slim/fastmcp/utilities/skills.py:91
↓ 2 callers
Method
_listed
(self)
fastmcp_slim/fastmcp/skills/_proxy.py:72
↓ 2 callers
Function
_listing
(kind: str, name: str)
tests/server/providers/proxy/test_cache_refresh_races.py:12
↓ 2 callers
Function
_local_http_client
Client for the local MCP server, which is never reached through a proxy.
fastmcp_slim/fastmcp/cli/apps_dev.py:1103
↓ 2 callers
Function
_make_app
()
tests/server/http/test_session_owner_enforcement.py:44
↓ 2 callers
Method
_make_call_tool
Create the call_tool proxy that executes discovered tools.
fastmcp_slim/fastmcp/server/transforms/search/base.py:360
← previous
next →
1,401–1,500 of 16,098, ranked by callers