Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Changed
- Bump `fastmcp` from `^2.14.0` to `^3.0.0` (resolves to 3.4.0), which pulls in `authlib` 1.7.2. The MCP adapter now uses `Tool.to_mcp_tool()` to read tool schemas, since fastmcp 3.x `list_tools()` returns `FunctionTool` objects that expose schemas via `parameters`/`output_schema` instead of `inputSchema`/`outputSchema`.

### Added
- **Distributed tracing via OpenTelemetry**: Agents now propagate a shared `trace_id` across every message hop. Opt-in via `setup_tracing()`; zero-cost when not configured.

Expand Down
12 changes: 8 additions & 4 deletions sdk/eggai/adapters/mcp/mcp.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,15 @@ async def handle_tool_list_request(message: ToolListRequestMessage):
mcp_tools = await mcp_server.list_tools()
tools: list[ExternalTool] = []
for tool in mcp_tools:
# fastmcp 3.x returns FunctionTool objects whose schemas live on
# `parameters`/`output_schema`; convert to the MCP protocol Tool to
# read the canonical `inputSchema`/`outputSchema` fields.
mcp_tool = tool.to_mcp_tool()
external_tool = ExternalTool(
name=tool.name,
description=tool.description,
parameters=getattr(tool, "inputSchema", {}),
return_type=getattr(tool, "outputSchema", {}),
name=mcp_tool.name,
description=mcp_tool.description or "",
parameters=mcp_tool.inputSchema or {},
return_type=mcp_tool.outputSchema or {},
)
tools.append(external_tool)

Expand Down
Loading
Loading