MCPcopy Create free account

hub / github.com/PrefectHQ/fastmcp / functions

Functions15,974 in github.com/PrefectHQ/fastmcp

↓ 3 callersFunction_image_content_to_openai_part
Convert MCP ImageContent to OpenAI image_url content part.
fastmcp_slim/fastmcp/client/sampling/handlers/openai.py:74
↓ 3 callersMethod_initialize
Load stored tokens and client info, properly setting token expiry.
fastmcp_slim/fastmcp/client/auth/oauth.py:371
↓ 3 callersFunction_inline_defs_schema
A media-type schema that declares its own ``$defs``.
tests/utilities/openapi/test_inline_defs.py:29
↓ 3 callersFunction_input_responses_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:97
↓ 3 callersFunction_is_continuation_leg
Whether this request is answering a previous round's ask (SEP-2322). A continuation must bypass the cache entirely. Cache keys are built from the
fastmcp_slim/fastmcp/server/middleware/caching.py:49
↓ 3 callersFunction_is_legacy_httpx_exception
Check a legacy-httpx exception without importing the legacy package.
fastmcp_slim/fastmcp/utilities/exceptions.py:11
↓ 3 callersMethod_is_modern_protocol
True when the negotiated MCP protocol era removed the back-channel. Reads the negotiated protocol version from the active request context.
fastmcp_slim/fastmcp/server/context.py:981
↓ 3 callersFunction_is_preserved_property_key
(key: str)
fastmcp_slim/fastmcp/tools/tool_transform.py:52
↓ 3 callersFunction_is_silent_approval
(response: httpx2.Response)
tests/server/auth/test_oauth_consent_remembered_key.py:119
↓ 3 callersFunction_leg_number_key
(docket: Docket, task_scope: str | None, task_id: str)
fastmcp_tasks/fastmcp_tasks/input_store.py:89
↓ 3 callersFunction_lift_meta
Lift the raw ``_meta`` block from the request params. ``ctx.params`` is the raw params mapping (or None); its ``_meta`` key holds the full me
fastmcp_slim/fastmcp/server/dependencies.py:99
↓ 3 callersMethod_list_tools
Return all available tools. Override to provide tools dynamically. Returns ALL versions of all tools. The server handles deduplicatio
fastmcp_slim/fastmcp/server/providers/base.py:461
↓ 3 callersMethod_list_tools
(self)
tests/server/test_providers.py:77
↓ 3 callersMethod_list_tools
(self)
tests/server/providers/test_base_provider.py:31
↓ 3 callersFunction_load_session_snapshot
( credentials: CredentialStore, )
fastmcp_slim/fastmcp/cli/deploy/command.py:83
↓ 3 callersFunction_locate
(uri: str, catalog: Mapping[str, _T])
fastmcp_slim/fastmcp/skills/provider.py:498
↓ 3 callersMethod_lookup_resource
Resolve a resource as `get_resource` does. Also reports whether a concrete resource exists at `uri` at all, so reads can tell a hidde
fastmcp_slim/fastmcp/server/server.py:1201
↓ 3 callersFunction_lookup_task
Resolve a task's current-leg execution and metadata within the scope. Returns ``(execution, base_task_key, leg_number, created_at, poll_inter
fastmcp_tasks/fastmcp_tasks/handlers.py:127
↓ 3 callersMethod_make_access_token
(self, aud: str)
tests/server/auth/providers/test_propelauth.py:199
↓ 3 callersMethod_make_oauth_with_redirect
Build a HeadlessOAuth with a fake stored 302 response.
tests/utilities/test_tests.py:82
↓ 3 callersMethod_make_refresh_context
(self, jwt_verifier)
tests/server/auth/oauth_proxy/test_tokens.py:359
↓ 3 callersMethod_make_state_key
Create session-prefixed key for state storage.
fastmcp_slim/fastmcp/server/context.py:1144
↓ 3 callersMethod_make_token
(scopes: list[str])
tests/server/middleware/test_caching.py:1014
↓ 3 callersMethod_make_tools
(self)
tests/cli/test_generate_cli.py:409
↓ 3 callersMethod_make_verify_factory
(self)
fastmcp_slim/fastmcp/client/transports/http.py:141
↓ 3 callersFunction_may_read
(server: FastMCP, uri: str)
fastmcp_slim/fastmcp/skills/_routing.py:26
↓ 3 callersFunction_mcp_config
()
tests/cli/test_config_encoding.py:51
↓ 3 callersMethod_message_to_create_message_result
( message: Message, )
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:345
↓ 3 callersMethod_message_to_result_with_tools
Convert Anthropic response to CreateMessageResultWithTools.
fastmcp_slim/fastmcp/client/sampling/handlers/anthropic.py:417
↓ 3 callersMethod_metadata
(self, proxy: OAuthProxy)
tests/server/auth/oauth_proxy/test_identity_assertion.py:230
↓ 3 callersMethod_method_name
(body: dict[str, Any])
fastmcp_slim/fastmcp/cli/apps_dev_log.py:43
↓ 3 callersMethod_mock_session
Build a mock session with a stable per-connection Connection. SDK v2 constructs a ServerSession per request; PingMiddleware keys the
tests/server/middleware/test_ping.py:44
↓ 3 callersFunction_modern_proxy
A FastMCPProxy whose backend client negotiates the modern era, so the backend can emit an `InputRequiredResult` (SEP-2322) for the proxy to ro
tests/server/test_mrtr_guards.py:415
↓ 3 callersFunction_normalize
Compare schemas by their full structure, modulo generated titles. "required" is sorted because the SDK and FastMCP may build it in a different
tests/docs/test_upgrade_guide_equivalence.py:66
↓ 3 callersFunction_normalize_google_scope
Normalize a Google scope shorthand to its canonical full URI. Google accepts shorthand scopes like "email" and "profile" in authorization req
fastmcp_slim/fastmcp/server/auth/providers/google.py:50
↓ 3 callersFunction_normalize_origin
(origin: str)
fastmcp_slim/fastmcp/server/http.py:194
↓ 3 callersFunction_object_schema_to_type
Convert an object schema to the appropriate Python type. Single source of truth for the four object-schema cases, used by both the top-level
fastmcp_slim/fastmcp/utilities/json_schema_type.py:984
↓ 3 callersMethod_on_read_resource
Handle MCP 'resources/read' requests.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:390
↓ 3 callersMethod_one_shot_server
(self)
tests/server/test_mrtr_guards.py:726
↓ 3 callersFunction_parse_mcp_servers
Parse an ``mcpServers``-style dict into discovered servers.
fastmcp_slim/fastmcp/cli/discovery.py:90
↓ 3 callersFunction_parse_resource_uri
(uri: str)
fastmcp_slim/fastmcp/skills/models.py:25
↓ 3 callersFunction_play_via_mcp
( source: Source, source_id: str, url: str, title: str, target: FastMCP | str, tool_na
examples/apps/media_picker/media_picker_server.py:165
↓ 3 callersMethod_provider
(self, key_pair: RSAKeyPair)
tests/server/auth/providers/test_scalekit.py:145
↓ 3 callersMethod_prune_expired
Remove expired files while holding the default storage lock.
fastmcp_slim/fastmcp/apps/file_upload.py:217
↓ 3 callersFunction_raise_for_status
Raise an OpenAPI-formatted error with concise upstream details.
fastmcp_slim/fastmcp/server/providers/openapi/components.py:75
↓ 3 callersFunction_ranked_catalog
Build a catalog whose BM25 ranking is the reverse of its registration order. Every tool repeats the query token a different number of times, so n
tests/experimental/transforms/test_code_mode_search_limits.py:14
↓ 3 callersMethod_read_all
(self, path: str)
scripts/auto_close_duplicates.py:123
↓ 3 callersMethod_read_consent_state_cookies
Per-token consent-state cookies the browser sent, by cookie name. Returns {cookie_name: (txn_id, issued_at)} for every cookie whose s
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:236
↓ 3 callersFunction_read_map
(payload: dict[str, Any])
fastmcp_slim/fastmcp/server/providers/prefab_payload.py:60
↓ 3 callersFunction_ref_is_mergeable_object
Whether *schema*'s ``$ref`` (if any) can be dropped by a property merge.
fastmcp_slim/fastmcp/utilities/openapi/schemas.py:404
↓ 3 callersMethod_register_and_store_code
( self, provider: AzureProvider, *, code: str, idp_tokens: dict, )
tests/server/auth/providers/test_azure.py:1397
↓ 3 callersMethod_register_provider_extensions
Register all bundled extensions, rolling back if any registration fails.
fastmcp_slim/fastmcp/server/mixins/extensions.py:156
↓ 3 callersMethod_render
Summary and detail text for this search's catalog, as locals.
fastmcp_slim/fastmcp/experimental/transforms/jev_search.py:242
↓ 3 callersMethod_render_results
(self, tools: Sequence[Tool])
fastmcp_slim/fastmcp/server/transforms/search/base.py:394
↓ 3 callersFunction_render_tools
Render tools at the requested detail level. The same detail value produces the same output format regardless of which discovery tool calls th
fastmcp_slim/fastmcp/experimental/transforms/code_mode.py:330
↓ 3 callersFunction_request_with_cookies
(cookies: dict[str, str])
tests/server/auth/test_oauth_consent_page.py:116
↓ 3 callersFunction_requested_version
(meta: Mapping[str, Any] | None)
fastmcp_slim/fastmcp/server/middleware/authorization.py:56
↓ 3 callersFunction_resolve_local_ref
Resolve a local `$ref` (`#...`) by walking its JSON pointer through *schema*. This uses the same pointer syntax as `jsonref` but doesn't normaliz
fastmcp_slim/fastmcp/utilities/json_schema.py:64
↓ 3 callersFunction_resolve_owning_server
Re-resolve a mounted task's owning child server from the root (remote worker). A separate worker process cannot reach the submitting process's se
fastmcp_tasks/fastmcp_tasks/context.py:502
↓ 3 callersFunction_resolve_param_hints
Resolve a callable's parameter type hints, tolerating partials. Depending on the Python version, ``get_type_hints`` either rejects ``functool
fastmcp_slim/fastmcp/tools/function_tool.py:230
↓ 3 callersFunction_resolve_read
Return the component a read of `uri` would use, without reading it.
fastmcp_slim/fastmcp/skills/_routing.py:15
↓ 3 callersFunction_resolve_schema_ref
Resolve a local `$ref`, tracking references active on this traversal path. Returns the resolved schema (empty when the chain cycles or cannot be
fastmcp_slim/fastmcp/utilities/openapi/director.py:59
↓ 3 callersFunction_resolve_supporting_file
(root: Path, file_path: str)
fastmcp_slim/fastmcp/server/providers/skills/skill_provider.py:34
↓ 3 callersMethod_run_in_child_context
(self, fn)
tests/server/providers/proxy/test_stateful_proxy_client.py:269
↓ 3 callersMethod_run_inspector
(self, config_file: Path, **kwargs)
tests/cli/test_run.py:1340
↓ 3 callersMethod_run_outer_mw
Run the method-agnostic (``on_message``/``on_request``) hook pass. ``call_next`` bridges to the real SDK dispatch (request-state boundary,
fastmcp_slim/fastmcp/server/low_level.py:226
↓ 3 callersFunction_sampling_request
A one-message sampling request.
tests/conformance/server.py:412
↓ 3 callersFunction_scan_claude_desktop
Scan the Claude Desktop config file.
fastmcp_slim/fastmcp/cli/discovery.py:149
↓ 3 callersFunction_scan_project_mcp_json
Check for ``mcp.json`` in *start_dir*.
fastmcp_slim/fastmcp/cli/discovery.py:262
↓ 3 callersFunction_schema_digest
Return a deterministic hash of the schema and its serialized size. Handles non-JSON-native types (datetime, date, bool keys) that can appear
fastmcp_slim/fastmcp/utilities/json_schema_type.py:524
↓ 3 callersFunction_server
(rounds: int = 1)
tests/server/transforms/test_input_required.py:51
↓ 3 callersFunction_set_query
Replace `url`'s query component while preserving an empty `//` authority. `urlunparse` omits `//` when `netloc` is empty on custom schemes that a
fastmcp_slim/fastmcp/server/auth/redirect_validation.py:23
↓ 3 callersMethod_set_token
(token)
tests/server/middleware/test_caching.py:1026
↓ 3 callersFunction_spec
( version: str, property_schema: dict[str, Any], media_type: str )
tests/utilities/openapi/test_null_body.py:80
↓ 3 callersFunction_spec
(operations: dict[str, dict[str, Any]])
tests/server/providers/openapi/test_default_names.py:12
↓ 3 callersMethod_state_of
The user-state sub-dict of a raw stored dict (empty when absent).
fastmcp_slim/fastmcp/server/sessions.py:230
↓ 3 callersFunction_strip_input_required
Remove `InputRequiredResult` arms from a union return annotation. A guard tool typically annotates its return as ``X | InputRequiredResult``;
fastmcp_slim/fastmcp/tools/function_parsing.py:146
↓ 3 callersFunction_text
(result: mcp_types.CallToolResult)
tests/server/test_extensions.py:48
↓ 3 callersFunction_text
(result)
examples/tasks/client.py:37
↓ 3 callersFunction_to_base_model
Validate a component's public base fields without serializing its subclass.
fastmcp_slim/fastmcp/server/middleware/caching.py:82
↓ 3 callersMethod_to_child
(self, uri: str)
fastmcp_slim/fastmcp/skills/_composition.py:70
↓ 3 callersFunction_tool
Build a real Tool component (a FastMCPComponent) with a version.
tests/server/versioning/test_versioning.py:90
↓ 3 callersFunction_tool
(name: str, doc: str | None = None, params: tuple[str, ...] = ("query",))
tests/experimental/transforms/test_jev_search.py:79
↓ 3 callersMethod_tool
(description: str)
tests/server/providers/test_local_provider.py:599
↓ 3 callersFunction_tool_server
()
tests/tasks/server/test_task_tools.py:54
↓ 3 callersFunction_trace_meta
Trace context for a task management request, for the current client span. Task management calls (`tasks/get`/`update`/`cancel`) use ordinary
fastmcp_tasks/fastmcp_tasks/client.py:74
↓ 3 callersMethod_transform_uri
Apply namespace to a URI: protocol://path → protocol://namespace/path.
fastmcp_slim/fastmcp/server/transforms/namespace.py:74
↓ 3 callersMethod_translate_scopes_from_idp
Translate IdP-returned scopes into the client-facing form. Some IdPs (notably Azure) require scopes on the wire in a form that differ
fastmcp_slim/fastmcp/server/auth/oauth_proxy/proxy.py:1724
↓ 3 callersFunction_union_branches
Return the ``anyOf``/``oneOf`` branches of a union schema, if any.
fastmcp_slim/fastmcp/cli/client.py:355
↓ 3 callersMethod_validate_client_redirect_uri
Validate a stored transaction redirect URI before sending a browser to it.
fastmcp_slim/fastmcp/server/auth/oauth_proxy/consent.py:120
↓ 3 callersFunction_validate_limits
(file_count: int, total_bytes: int)
fastmcp_slim/fastmcp/skills/skill.py:47
↓ 3 callersFunction_version_from_ctx
Extract the FastMCP component version from the request's lifted _meta.
fastmcp_slim/fastmcp/server/mixins/mcp_operations.py:99
↓ 3 callersFunction_wait_until_listening
Poll until the callback server's socket is accepting connections. uvicorn sets `Server.started = True` right after it binds and starts listen
tests/client/test_oauth_callback_race.py:11
↓ 3 callersFunction_warn_wire_model
(call: str)
fastmcp_slim/fastmcp/skills/skill.py:36
↓ 3 callersFunction_watch_filter
Filter for files that should trigger reload.
fastmcp_slim/fastmcp/cli/run.py:375
↓ 3 callersFunction_with_proxy_transport_options
Layer proxy-owned settings onto options supplied by another client layer.
fastmcp_slim/fastmcp/server/providers/proxy.py:117
↓ 3 callersMethod_write_skill
(tmp_path: Path, frontmatter: str)
tests/server/providers/test_skills_provider.py:536
↓ 3 callersFunction_write_stored_snapshot
Overwrite a task's stored snapshot value.
tests/tasks/server/test_snapshot_encryption.py:186
↓ 3 callersMethodaclose
(self)
fastmcp_slim/fastmcp/utilities/asgi_transport.py:66
↓ 3 callersMethodaclose
(self)
tests/client/auth/test_oauth_client.py:435
← previousnext →1,101–1,200 of 15,974, ranked by callers