So agent rẹ pọ̀
Àdírẹ́sì sáfà: https://asi.express/mcp. Transport: Streamable HTTP (POST, àwọn ìdáhùn JSON). Kò sí ìwọlé, kò sí kọ́kọ́rọ́.
Ìpè àkọ́kọ́: search_capabilities pẹ̀lú {"query": "weather", "limit": 3}. Ó máa dá results padà (àkójọ àwọn agbára tí kò ju 3 lọ), count (nọ́ńbà kan) àti ìlà ipò kan. O kò nílò láti ka àwọn irinṣẹ́ mìíràn ṣáájú.
A dán an wò ní 2026-11-22, lórí production, pẹ̀lú àwọn ẹ̀yà library tí a dárúkọ ní abala kọ̀ọ̀kan.
Àwọn irinṣẹ́ láti ọ̀dọ̀ àwọn olùpèsè mìíràn jẹ́ ti ẹgbẹ́ kẹta: ka ohun tí irinṣẹ́ kan ń ṣe kí o tó jẹ́ kí aṣojú rẹ lò ó, má sì ṣe ṣètò "Gbà láàyè nígbà gbogbo" fún àwọn irinṣẹ́ tí ń ṣe ìgbésẹ̀.
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())Àbájáde tí a retí: Orúkọ irinṣẹ́ 11 pẹ̀lú search_capabilities, lẹ́yìn náà iye kan àti àbájáde tí kò ju 3 lọ.
OpenAI Agents SDK (openai-agents 0.25.0)
A kò nílò kọ́kọ́rọ́ OpenAI láti sopọ̀ àti láti ṣe àkójọ àwọn irinṣẹ́; lílo model nílò rẹ̀. Nígbà tí a bá ṣètò kọ́kọ́rọ́, tracing máa ń fi dátà ránṣẹ́ sí ẹgbẹ́ kẹta: ṣètò OPENAI_AGENTS_DISABLE_TRACING=1 bí o kò bá fẹ́ bẹ́ẹ̀.
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())Láti fún agent ní sáfà náà: Agent(name="x", mcp_servers=[srv]). Ìdánwò náà kò lo model kankan; ìsopọ̀, àkójọ àti ìpè tí ó wà lókè ni ohun tí a fi hàn.
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())Ìdáhùn náà ní ohun ọ̀rọ̀ méjì: JSON ní àkọ́kọ́, lẹ́yìn náà ìlà ipò kan. Ṣe parse ti àkọ́kọ́ nìkan.
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)
A fi hàn nípasẹ̀ adapter MCP tí MCPServerAdapter ti CrewAI fúnra rẹ̀ ń wé. A kò lè ṣe load crewai_tools fúnra rẹ̀ lórí kọ̀ǹpútà ìdánwò, nítorí náà a kò sọ ohunkóhun nípa wrapper class yẹn.
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))Ṣàyẹ̀wò pé àkójọ irinṣẹ́ kò ṣófo: a máa ń fo sáfà tí ó bá kùnà kọjá ní ìdákẹ́jẹ́ẹ́.
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}}}'Ìtẹ̀léra tí a fi hàn: initialize, notifications/initialized, tools/list, lẹ́yìn náà ìpè tí ó wà lókè. Sáfà kò tọ́jú session, nítorí náà kò sí ìdí fún header Mcp-Session-Id. Sáfà náà tún máa ń gba ìpè yìí nìkan; fi -m 30 kún un láti fi òpin sí àkókò ìdúró.
Claude Code (claude 2.1.330)
Fi èyí pamọ́ gẹ́gẹ́ bí fáìlì, fún àpẹẹrẹ asi-mcp.json:
{"mcpServers": {"asi": {"type": "http", "url": "https://asi.express/mcp"}}}Lẹ́yìn náà bẹ̀rẹ̀ Claude Code pẹ̀lú claude --mcp-config asi-mcp.json. Sáfà asi yóò fi hàn pé ó ti sopọ̀, àwọn irinṣẹ́ rẹ̀ yóò sì farahàn gẹ́gẹ́ bí mcp__asi__search_capabilities àti bẹ́ẹ̀ bẹ́ẹ̀ lọ.
A dán ọ̀nà yìí wò lórí production ní 2026-11-22.
Ìforúkọsílẹ̀ kan náà nínú fáìlì .mcp.json ti project, tàbí èyí tí a fi kún pẹ̀lú claude mcp add --transport http asi https://asi.express/mcp, yẹ kí ó ṣiṣẹ́ pẹ̀lú (Claude Code yóò ní kí o fọwọ́ sí sáfà project). A kò tíì dán àwọn ọ̀nà wọ̀nyí wò lórí production.
Àwọn client mìíràn ni a máa ń fi kún ibí nìkan lẹ́yìn tí wọ́n bá yege ìdánwò lórí production.