type + more codex docs

This commit is contained in:
lda
2026-05-15 22:43:41 +07:00 Verified
parent 511075f8a3
commit 3f83afc100
6 changed files with 488 additions and 31 deletions
+5 -3
View File
@@ -4,6 +4,8 @@ from collections.abc import Sequence
from dataclasses import dataclass
from typing import Any
from fastmcp.tools import Tool
from ..shared.names import is_admin_tool_name, parse_namespaced_tool_name
from ..shared.pagination import paginate_items
@@ -61,7 +63,7 @@ def proxy_tool_payload(
proxy_name: str,
connection_id: str,
local_name: str,
tool: Any,
tool: Tool,
include_schema: bool,
) -> dict[str, Any]:
"""Return the admin-facing metadata payload for one proxied tool."""
@@ -82,7 +84,7 @@ def proxy_tool_payload(
def collect_proxy_tools(
*,
tools: Sequence[Any],
tools: Sequence[Tool],
connection_ids: set[str],
) -> list[ProxyToolPayload]:
"""Collect visible upstream tool metadata from FastMCP's listed tools."""
@@ -113,7 +115,7 @@ def collect_proxy_tools(
def collect_proxy_tool_payloads(
*,
tools: Sequence[Any],
tools: Sequence[Tool],
connection_ids: set[str],
include_schema: bool,
) -> list[dict[str, Any]]: