Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PrefectHQ/fastmcp
/ functions
Functions
17,519 in github.com/PrefectHQ/fastmcp
⨍
Functions
17,519
◇
Types & classes
2,390
↳
Endpoints
196
↓ 2 callers
Method
_make_list_prompts_tool
Create the list_prompts tool.
fastmcp_slim/fastmcp/server/transforms/prompts_as_tools.py:94
↓ 2 callers
Method
_make_list_resources_tool
Create the list_resources tool.
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:97
↓ 2 callers
Method
_make_read_resource_tool
Create the read_resource tool.
fastmcp_slim/fastmcp/server/transforms/resources_as_tools.py:140
↓ 2 callers
Method
_make_reader_tool
(self)
tests/server/transforms/test_catalog.py:53
↓ 2 callers
Function
_make_restoring_handler
Wrap a proxy handler to restore request_ctx before delegating. When ``pending`` is given, each in-flight call is tracked in it so the proxy c
fastmcp_slim/fastmcp/server/providers/proxy.py:1939
↓ 2 callers
Method
_make_search_tool
Create the search tool. Subclasses define the parameter schema.
fastmcp_slim/fastmcp/server/transforms/search/base.py:356
↓ 2 callers
Method
_make_server
(self)
tests/tools/tool/test_results.py:499
↓ 2 callers
Function
_make_summary
(entry: dict[str, Any])
fastmcp_slim/fastmcp/apps/file_upload.py:96
↓ 2 callers
Method
_make_synthetic_tool
(self)
tests/server/transforms/test_catalog.py:81
↓ 2 callers
Method
_make_task_context
( self, mcp: FastMCP, session_id: str )
tests/tasks/server/test_context_background_task.py:187
↓ 2 callers
Method
_make_task_context
( self, mcp: FastMCP, extensions: dict[str, dict[str, Any]] | None )
tests/tasks/server/test_context_background_task.py:246
↓ 2 callers
Method
_make_tool
(self, row: aiosqlite.Row)
examples/providers/sqlite/server.py:97
↓ 2 callers
Function
_manifest_resource
(path: str, manifest: SkillManifest)
fastmcp_slim/fastmcp/skills/provider.py:530
↓ 2 callers
Method
_map
(self, entry: MCPSkill)
fastmcp_slim/fastmcp/skills/_composition.py:111
↓ 2 callers
Function
_mark_verify_factory
Tag a factory generated from ``verify`` so it can be told apart from a caller-supplied factory.
fastmcp_slim/fastmcp/client/transports/base.py:34
↓ 2 callers
Method
_matches
(self, name: str)
fastmcp_remote/fastmcp_remote/cli.py:60
↓ 2 callers
Method
_matches_tool_cache_settings
Check if the tool matches the cache settings for tool calls.
fastmcp_slim/fastmcp/server/middleware/caching.py:632
↓ 2 callers
Method
_materialize_generator
Consume generators/async generators into lists. Without this, async generators pass through as objects (repr string), and sync genera
fastmcp_slim/fastmcp/tools/function_tool.py:558
↓ 2 callers
Function
_materialize_sync_generator
Consume a sync generator into a list, passing any other value through. A generator body runs during iteration, not creation, so this must be
fastmcp_slim/fastmcp/tools/function_tool.py:72
↓ 2 callers
Function
_merge_forwardable_http_headers
Combine forwardable ambient headers with a transport's configured headers. Configured headers take precedence. Header names are case-insensitive,
fastmcp_slim/fastmcp/client/dependencies.py:6
↓ 2 callers
Method
_merge_schema_with_precedence
Merge two schemas, with the override schema taking precedence. Args: base_schema: Base schema to start with override_
fastmcp_slim/fastmcp/tools/tool_transform.py:1042
↓ 2 callers
Function
_methods
(provider: ProxyProvider, client: MagicMock, kind: str)
tests/server/providers/proxy/test_cache_refresh_races.py:35
↓ 2 callers
Function
_modern_proxy
A proxy whose backend client negotiates the modern era, so the backend can emit an `InputRequiredResult` for the proxy to round-trip.
tests/server/test_mrtr_guards_components.py:57
↓ 2 callers
Function
_multi_round_server
()
tests/client/client/test_input_required_driver.py:60
↓ 2 callers
Method
_mutate
(self, result: ResultT)
tests/server/providers/proxy/test_server_metadata.py:407
↓ 2 callers
Method
_negotiate
Run the connect-time protocol negotiation dictated by ``self.mode``. - ``"legacy"``: today's initialize handshake (populates ``initialize_res
fastmcp_slim/fastmcp/client/client.py:952
↓ 2 callers
Function
_nested_class_name
Disambiguate a nested class named like the conversion root. Pydantic resolves a class's annotations with the class's own name bound to that c
fastmcp_slim/fastmcp/utilities/json_schema_type.py:1362
↓ 2 callers
Function
_normalize
(skills: SkillCatalog)
fastmcp_slim/fastmcp/skills/provider.py:437
↓ 2 callers
Function
_normalize_domain
Strip any URL scheme and trailing slashes from a Clerk instance domain. The Clerk dashboard shows the Frontend API URL with its scheme, so users
fastmcp_slim/fastmcp/server/auth/providers/clerk.py:48
↓ 2 callers
Function
_normalize_redirect_uri
Return the canonical string form shared by both input types. A plain string never goes through a URL parser, so attacker-controlled spellings
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:357
↓ 2 callers
Function
_normalize_scopes
Normalize scopes to a space-separated string (or None).
fastmcp_slim/fastmcp/client/auth/client_credentials.py:57
↓ 2 callers
Function
_normalize_yaml_types
Convert YAML-parsed types back to JSON-native types. ``yaml.safe_load`` converts ISO date-time strings to ``datetime``/``date`` objects. The
fastmcp_slim/fastmcp/utilities/json_schema_type.py:133
↓ 2 callers
Method
_note_gap
(self)
fastmcp_events/fastmcp_events/subscription.py:143
↓ 2 callers
Method
_occurrence
(self, name: str, event: Event)
fastmcp_events/fastmcp_events/extension.py:506
↓ 2 callers
Method
_on_call_tool
Handle MCP 'tools/call' requests. A guard tool (SEP-2322 multi-round-trip) requests client input by returning an ``InputRequiredResul
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:264
↓ 2 callers
Function
_once_per_request
( provider: Provider, name: str, load: Callable[[], Awaitable[_T]] )
fastmcp_slim/fastmcp/skills/provider.py:472
↓ 2 callers
Method
_open
(self)
fastmcp_events/fastmcp_events/redis_log.py:85
↓ 2 callers
Method
_paginate_list
Generic pagination helper for list operations. Invokes a FastMCP ``_on_*`` list handler (``(ctx, params) -> result``) page by page. T
fastmcp_slim/fastmcp/server/context.py:531
↓ 2 callers
Method
_params
(message: str, field: dict[str, Any], name: str = "answer")
tests/cli/test_client_commands.py:1170
↓ 2 callers
Method
_parent_with_failing_list
(self)
tests/server/mount/test_mount.py:348
↓ 2 callers
Method
_parse_cache_policy
Parse HTTP cache headers and derive cache behavior.
fastmcp_slim/fastmcp/server/auth/cimd.py:249
↓ 2 callers
Method
_parse_call_tool_result
Parse an mcp_types.CallToolResult into our CallToolResult dataclass. Args: name: Tool name (for schema lookup) result
fastmcp_slim/fastmcp/client/mixins/tools.py:274
↓ 2 callers
Method
_path
(self, key: Sequence[str])
scripts/rank_issues.py:379
↓ 2 callers
Function
_play_youtube_video
(fire_tv: FireTVClient, video_id: str)
examples/smart_home/src/smart_home/fire_tv/server.py:26
↓ 2 callers
Function
_post_status
( server: ASGIServer, message_url: str, headers: dict[str, str], )
tests/server/http/test_sse_host_origin_protection.py:76
↓ 2 callers
Function
_pre_4_2_payload
A payload as fastmcp 4.0-4.1 backends serialize it.
tests/server/providers/test_prefab_payload.py:9
↓ 2 callers
Function
_prefab_to_json
Serialize a PrefabApp, addressing its peer-tool references by identity. The resolver writes each reference as ``__<hash>_<local_name>``, and the
fastmcp_slim/fastmcp/tools/base.py:695
↓ 2 callers
Function
_prepare_directory
(path: Path)
fastmcp_slim/fastmcp/cli/deploy/state.py:88
↓ 2 callers
Function
_prepare_parameter_map
Return the route's parameter map, building it if the route lacks one. Routes from the OpenAPI parser carry a precomputed map. Routes constructed
fastmcp_slim/fastmcp/utilities/openapi/director.py:256
↓ 2 callers
Method
_prepare_scopes_for_upstream_refresh
Prepare scopes for upstream token refresh request. Override this method to transform scopes before sending to upstream provider. For
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1834
↓ 2 callers
Method
_prepare_transports
Create backend transports before connecting so capabilities are inspectable.
fastmcp_slim/fastmcp/client/transports/config.py:303
↓ 2 callers
Function
_principal_segment
A fixed-length, delimiter-safe key segment for a principal. Hashing keeps an arbitrary principal string from injecting the `:` key delimiter
fastmcp_slim/fastmcp/server/sessions.py:152
↓ 2 callers
Function
_propagation_only_span
Attach the incoming `_meta` trace context without creating a span. This is what separates `propagation_only` from `off`. Both create no FastM
fastmcp_slim/fastmcp/server/telemetry.py:176
↓ 2 callers
Function
_proxy
( backend: FastMCP, *, backend_mode: str, client_class: type[Client] )
tests/server/providers/proxy/test_proxy_request_meta.py:80
↓ 2 callers
Function
_quote_batch_text
Quote text for cmd.exe and the C runtime argument parser.
fastmcp_slim/fastmcp/cli/install/shared.py:58
↓ 2 callers
Function
_raised
(call: Callable[[], Awaitable[Any]])
tests/client/client/test_session.py:72
↓ 2 callers
Method
_read_skill_file
(self: Client, uri: str)
fastmcp_slim/fastmcp/client/mixins/skills.py:406
↓ 2 callers
Function
_read_stored_snapshot
Return the raw stored value of a task's snapshot key.
tests/tasks/server/test_snapshot_encryption.py:196
↓ 2 callers
Function
_read_supporting_file
(path: Path)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:41
↓ 2 callers
Method
_read_upstream
( self, client: Client, context: Context | None )
fastmcp_slim/fastmcp/server/providers/proxy.py:1423
↓ 2 callers
Function
_readiness
(invalid: list[str], main_file_name: str = "SKILL.md")
fastmcp_slim/fastmcp/server/providers/skills/_deprecation.py:77
↓ 2 callers
Method
_record
( self, context: MiddlewareContext[Any], call_next: Callable[[MiddlewareContext[Any]],
fastmcp_slim/fastmcp/server/middleware/usage.py:189
↓ 2 callers
Method
_record
(self, name: str, error: BaseException | None, seconds: float)
tests/downstream/_harness.py:214
↓ 2 callers
Function
_recording_backend
(seen: dict[str, _RecordedRequest])
tests/server/providers/proxy/test_proxy_request_meta.py:46
↓ 2 callers
Function
_recover_new_pid
Call `call` until it succeeds on a subprocess other than `old_pid`. `psutil.Process(pid).kill()` is asynchronous and crash recovery is transp
tests/client/test_stdio.py:91
↓ 2 callers
Method
_redeem_code
(self, client: str, code: str)
tests/pbt/test_oauth_proxy_machine.py:231
↓ 2 callers
Function
_ref_alias_chain
(hops: int)
tests/utilities/test_json_schema.py:1515
↓ 2 callers
Function
_ref_component_name
Return the component schema a local `$ref` points into, if any. The name is the decoded segment after `#/$defs/` or `#/components/schemas/`,
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:95
↓ 2 callers
Method
_refresh
(self, client: str, token: str)
tests/pbt/test_oauth_proxy_machine.py:238
↓ 2 callers
Method
_refuse_foreign_loop_in_use
Refuse a connection while another event loop is using this one. The connection task and the session's streams belong to the event loop
fastmcp_slim/fastmcp/client/transports/stdio.py:213
↓ 2 callers
Method
_register
(self, kind, owner, ident, version, tags)
tests/pbt/test_components_machine.py:275
↓ 2 callers
Function
_register_client
Register the MCP client so the token endpoint can authenticate it.
tests/server/auth/oauth_proxy/test_identity_assertion.py:133
↓ 2 callers
Method
_registration_for
(self, model: type[BaseModel])
fastmcp_events/fastmcp_events/extension.py:378
↓ 2 callers
Function
_relay_read_resource
Read a backend resource, surfacing a guard ask rather than driving it. Mirrors `ProxyTool.run`: on a modern backend the low-level session is used
fastmcp_slim/fastmcp/server/providers/proxy.py:276
↓ 2 callers
Method
_relist
Refresh `Mcp-Param-*` headers after the server rejected them.
fastmcp_events/fastmcp_events/subscription.py:188
↓ 2 callers
Method
_remove_from_index
(self, key: str, subscription_id: str)
fastmcp_events/fastmcp_events/webhook_delivery.py:315
↓ 2 callers
Function
_remove_module
(name: str, module: ModuleType)
fastmcp_slim/fastmcp/server/providers/filesystem_discovery.py:183
↓ 2 callers
Function
_remove_task_session
(session_id: str, ref: weakref.ref[ServerSession])
fastmcp_tasks/fastmcp_tasks/context.py:409
↓ 2 callers
Function
_request_state_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:93
↓ 2 callers
Method
_request_token
(self, url: str, data: dict[str, Any])
fastmcp_slim/fastmcp/server/auth/oauth_proxy/upstream.py:101
↓ 2 callers
Function
_require_azure_identity
Raise ImportError with install instructions if azure-identity is not available.
fastmcp_slim/fastmcp/server/auth/providers/azure.py:850
↓ 2 callers
Method
_require_connected
(self)
fastmcp_slim/fastmcp/client/group.py:213
↓ 2 callers
Function
_require_events
(client: Any)
fastmcp_events/fastmcp_events/cli.py:63
↓ 2 callers
Method
_require_skills_extension
(self: Client)
fastmcp_slim/fastmcp/client/mixins/skills.py:73
↓ 2 callers
Function
_required_dt
(value: str)
scripts/rank_issues.py:252
↓ 2 callers
Method
_reset_session_state
Reset session state after disconnect or cancellation. Args: full: If True, also resets session_task and nesting_counter.
fastmcp_slim/fastmcp/client/client.py:668
↓ 2 callers
Function
_resolve
(meta: dict[str, Any])
tests/server/telemetry/test_span_links.py:168
↓ 2 callers
Function
_resolve_json_spec
Disambiguate a ``.json`` server spec.
fastmcp_slim/fastmcp/cli/client.py:160
↓ 2 callers
Function
_resolve_ref
Resolve JSON Schema reference to target schema.
fastmcp_slim/fastmcp/utilities/json_schema_type.py:560
↓ 2 callers
Function
_resolve_token_storage
Wrap a token store in the FastMCP adapter, defaulting to in-memory. Unlike the interactive `OAuth` provider, M2M providers do not warn when using
fastmcp_slim/fastmcp/client/auth/client_credentials.py:73
↓ 2 callers
Method
_resource_mode_manifest
( self: Client, uri: str )
fastmcp_slim/fastmcp/client/mixins/skills.py:381
↓ 2 callers
Function
_resource_texts
Text from ReadResourceResult.contents blocks (TextResourceContents).
tests/server/test_protocol_eras.py:83
↓ 2 callers
Method
_respelled_target
Return the URI a template read of `uri` forwards, when it differs. A template matches other spellings of a URI, such as `%73` for `s`, a
fastmcp_slim/fastmcp/server/server.py:1342
↓ 2 callers
Function
_restore_request_context
Set the ``request_ctx``, ``_current_context`` and ``_current_server`` ContextVars from stashed values so a proxy forwarding handler relays to the
fastmcp_slim/fastmcp/server/providers/proxy.py:1888
↓ 2 callers
Function
_restore_token_expiry
Restore the persisted absolute token expiry after a token is reloaded. The inherited initializer reloads the stored token but not its expiry, so
fastmcp_slim/fastmcp/client/auth/client_credentials.py:105
↓ 2 callers
Function
_restrict_windows_access
(path: Path)
fastmcp_slim/fastmcp/cli/deploy/state.py:58
↓ 2 callers
Method
_reverse_name
Remove namespace prefix from a name, or None if no match.
fastmcp_slim/fastmcp/server/transforms/namespace.py:67
↓ 2 callers
Method
_reverse_uri
Remove namespace from a URI, or None if no match.
fastmcp_slim/fastmcp/server/transforms/namespace.py:85
↓ 2 callers
Method
_revoke_access
Revoke as the revocation route does; False when it cannot load.
tests/pbt/test_oauth_proxy_machine.py:245
↓ 2 callers
Function
_rewrite_preserves
(rewrite, schema: dict[str, Any], instances: list[Any])
tests/pbt/test_json_schema.py:258
← previous
next →
1,701–1,800 of 17,519, ranked by callers