Description
Hi! I have such a problem, I have started several MCP servers, and any access to them gives the same error:
[non-fatal] Tracing client error 400: {
"error": {
"message": "Invalid type for 'data[1].span_data.result': expected an array of strings, but got null instead.",
"type": "invalid_request_error",
"param": "data[1].span_data.result",
"code": "invalid_type"
}
}
Here are the parts of my code:
///code
dexpaprika_server = MCPServerStdio(
params={
"command": "npx",
"args": ["dexpaprika-mcp"],
},
cache_tools_list=True,
name="DexPaprika"
)
...
dex_agent = Agent(
name="Crypto Analytics Agent",
instructions="""You are an expert in cryptocurrency analytics and market data.
Your task is to provide accurate information on crypto tokens, DEX trading activity,
and liquidity across multiple blockchains.
""",
model=MAIN_AGENT_MODEL,
mcp_servers=[dexpaprika_server]
)
...
main_agent = Agent(
name="Assistant",
instructions=main_instructions.format(CURRENT_DATE, CURRENT_DATE, CURRENT_DATE),
model=MAIN_AGENT_MODEL,
tools=[
dex_agent.as_tool(
tool_name="crypto_analytics",
tool_description="Analyze cryptocurrency data, tokens, DEX trading activity, and liquidity across multiple blockchains. Use this tool for questions related to crypto markets, tokens, DeFi, or blockchain analytics. When using this tool, do not specify the year in your queries."
)
]
)
///code
What am I doing wrong?
I also noticed that there is no information about accessing the MCP in Traces, but the information is in the logs.:
Function call
Arguments
crypto_analytics({
"input": "Analyze JUP token on Solana. Fetch price, volume, and top liquidity pools."
})
Output
No output