Collega il tuo agente
Indirizzo del server: https://asi.express/mcp. Trasporto: Streamable HTTP (POST, risposte in JSON). Nessun login, nessuna chiave.
Prima chiamata: search_capabilities con {"query": "weather", "limit": 3}. Restituisce results (un elenco di massimo 3 capacità), count (un numero) e una riga di stato. Non è necessario leggere prima gli altri strumenti.
Testato il 2026-11-22, in produzione, con le versioni delle librerie indicate in ogni sezione.
Gli strumenti di altri fornitori sono di terze parti: leggi cosa fa uno strumento prima di lasciarlo eseguire al tuo agente e non impostare «Consenti sempre» per gli strumenti che compiono azioni.
Python, MCP SDK (mcp 1.30.0)
import asyncio
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
async with streamablehttp_client("https://asi.express/mcp") as (r, w, _):
async with ClientSession(r, w) as s:
await s.initialize()
print([t.name for t in (await s.list_tools()).tools])
res = await s.call_tool("search_capabilities", {"query": "weather", "limit": 3})
print(res.structuredContent["count"], len(res.structuredContent["results"]))
asyncio.run(main())Risultato atteso: 11 nomi di strumenti, tra cui search_capabilities, poi un conteggio e fino a 3 risultati.
OpenAI Agents SDK (openai-agents 0.25.0)
Per connettersi ed elencare gli strumenti non serve una chiave OpenAI; per eseguire un modello sì. Quando è impostata una chiave, il tracing invia dati a una terza parte: imposta OPENAI_AGENTS_DISABLE_TRACING=1 se non vuoi che accada.
import asyncio
from agents.mcp import MCPServerStreamableHttp
async def main():
async with MCPServerStreamableHttp(name="asi", params={"url": "https://asi.express/mcp"},
cache_tools_list=True, client_session_timeout_seconds=30) as srv:
print([t.name for t in await srv.list_tools()])
res = await srv.call_tool("search_capabilities", {"query": "weather", "limit": 3})
print(res.structuredContent["count"])
asyncio.run(main())Per assegnare il server a un agente: Agent(name="x", mcp_servers=[srv]). Il test non ha eseguito alcun modello; ciò che è stato dimostrato sono la connessione, l'elenco e la chiamata qui sopra.
LangChain / LangGraph (langchain-mcp-adapters 0.3.2)
import asyncio, json
from langchain_mcp_adapters.client import MultiServerMCPClient
from langchain_mcp_adapters.tools import load_mcp_tools
async def main():
client = MultiServerMCPClient({"asi": {"transport": "streamable_http", "url": "https://asi.express/mcp"}})
async with client.session("asi") as s:
tools = await load_mcp_tools(s)
tool = [t for t in tools if t.name == "search_capabilities"][0]
out = await tool.ainvoke({"query": "weather", "limit": 3})
text = out[0]["text"] if isinstance(out, list) else out # the JSON is the FIRST text item; a status line follows
print(json.loads(text)["count"])
asyncio.run(main())La risposta contiene due elementi di testo: prima il JSON, poi una riga di stato. Esegui il parsing solo del primo.
LlamaIndex (llama-index-tools-mcp 0.4.8)
import asyncio
from llama_index.tools.mcp import BasicMCPClient, McpToolSpec
async def main():
client = BasicMCPClient("https://asi.express/mcp") # a URL ending /mcp = Streamable HTTP
tools = await McpToolSpec(client=client, allowed_tools=["search_capabilities"]).to_tool_list_async()
res = await client.call_tool("search_capabilities", {"query": "weather", "limit": 3})
print(res.structuredContent["count"])
asyncio.run(main())CrewAI (crewai 1.6.1 with mcpadapt 0.1.20)
Dimostrato tramite l'adattatore MCP che il MCPServerAdapter di CrewAI incapsula. Non è stato possibile caricare crewai_tools sul computer di test, quindi su quella classe wrapper non si afferma nulla.
from mcpadapt.core import MCPAdapt
from mcpadapt.crewai_adapter import CrewAIAdapter
with MCPAdapt({"url": "https://asi.express/mcp", "transport": "streamable-http"}, CrewAIAdapter(), 30) as tools:
print([t.name for t in tools]) # check the list is not empty: a failed server is skipped quietly
search = [t for t in tools if t.name.endswith("search_capabilities")][0]
print(search.run(query="weather", limit=3))Verifica che l'elenco degli strumenti non sia vuoto: un server che non funziona viene saltato senza avvisi.
Plain HTTP (curl)
curl -sS -X POST https://asi.express/mcp \
-H 'content-type: application/json' -H 'accept: application/json, text/event-stream' \
--data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_capabilities","arguments":{"query":"weather","limit":3}}}'Sequenza dimostrata: initialize, notifications/initialized, tools/list, poi la chiamata qui sopra. Il server non mantiene sessioni, quindi non serve l'header Mcp-Session-Id. È accettata anche la sola chiamata; aggiungi -m 30 per limitare l'attesa.
Claude Code (claude 2.1.330)
Salva questo contenuto in un file, ad esempio asi-mcp.json:
{"mcpServers": {"asi": {"type": "http", "url": "https://asi.express/mcp"}}}Poi avvia Claude Code con claude --mcp-config asi-mcp.json. Il server asi risulta connesso e i suoi strumenti compaiono come mcp__asi__search_capabilities e così via.
Questa forma è stata testata in produzione il 2026-11-22.
La stessa voce in un file .mcp.json di progetto, o aggiunta con claude mcp add --transport http asi https://asi.express/mcp, dovrebbe funzionare anch'essa (Claude Code ti chiede di approvare un server di progetto). Non abbiamo testato queste forme in produzione.
Altri client vengono aggiunti qui solo dopo aver superato un test in produzione.