ASI.EXPRESSFrom Enterprise.Systems

Ka wo agent no bom

Server no address: https://asi.express/mcp. Transport: Streamable HTTP (POST, mmuae a ɛyɛ JSON). Sign-in nni hɔ, key nni hɔ.

Ɔfrɛ a edi kan: search_capabilities ne {"query": "weather", "limit": 3}. Ɛsan de results (tumi ahorow a ɛkɔ kosi 3 din krataa), count (nɔma) ne status nkyerɛwee baako ba. Ɛnhia sɛ wodi kan kenkan nnwinnade afoforo no.

Wɔsɔɔ hwɛe wɔ 2026-11-22, wɔ production so, de library versions a wɔabɔ din wɔ ɔfa biara mu no.

Nnwinnade a efi afoforo a wɔde ma no nkyɛn no yɛ ɔfa a ɛto so mmiɛnsa de: kenkan nea adwinnade bi yɛ ansa na woama w'ananmusifo AI ayɛ ho adwuma, na nhyɛ "Ma kwan bere biara" mma nnwinnade a ɛyɛ nneyɛe ankasa anaa ɛsesa nneɛma.

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())

Nea wɔhwɛ kwan: Nnwinnade din 11 a search_capabilities ka ho, afei akontaa ne nea efi mu ba a ɛkɔ kosi 3.

OpenAI Agents SDK (openai-agents 0.25.0)

Wonhia OpenAI key na woaka abom na woakyerɛ nnwinnade no din; sɛ wobɛma model ayɛ adwuma a, ɛhia baako. Sɛ wɔde key ahyɛ mu a, tracing de data kɔma obi a ɔto so abiɛsa: hyɛ OPENAI_AGENTS_DISABLE_TRACING=1 sɛ wompɛ saa a.

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())

Sɛ wobɛma agent server no a: Agent(name="x", mcp_servers=[srv]). Sɔhwɛ no amma model biara anyɛ adwuma; ka bom, din krataa ne ɔfrɛ a ɛwɔ soro no ne nea wɔde adanse akyerɛ.

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())

Mmuae no wɔ nkyerɛwee nneɛma abien: JSON no di kan, afei status nkyerɛwee. Yɛ nea edi kan no nko ara parse.

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)

Wɔde adanse kyerɛe denam MCP adapter a CrewAI ankasa MCPServerAdapter kata so no so. Wɔantumi amfa crewai_tools ankasa angu sɔhwɛ kɔmputa no so, enti yɛnka hwee mfa class a ɛkata so no ho.

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))

Hwɛ sɛ nnwinnade din krataa no nyɛ hunu: server a ɛdi nkogu no, wɔtra so komm.

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}}}'

Nhyehyɛe a wɔde adanse akyerɛ: initialize, notifications/initialized, tools/list, afei ɔfrɛ a ɛwɔ soro no. Server no nkora session, enti ɛnhia Mcp-Session-Id header. Wogye ɔfrɛ no nko ara nso tom; fa -m 30 ka ho na woahyɛ twɛn no ano.

Claude Code (claude 2.1.330)

Kora yei sɛ fael, sɛ nhwɛso no asi-mcp.json:

{"mcpServers": {"asi": {"type": "http", "url": "https://asi.express/mcp"}}}

Afei fa claude --mcp-config asi-mcp.json hyɛ Claude Code ase. asi server no da adi sɛ aka abom, na ne nnwinnade pue sɛ mcp__asi__search_capabilities ne nea ɛkeka ho.

Wɔsɔɔ saa kwan yi hwɛe wɔ production so wɔ 2026-11-22.

Saa nkyerɛwee koro no wɔ project .mcp.json fael mu, anaa nea wɔde claude mcp add --transport http asi https://asi.express/mcp aka ho, ɛsɛ sɛ ɛno nso yɛ adwuma (Claude Code bisa wo sɛ wopene project server so). Yɛnnsɔɔ saa akwan yi nhwɛɛ wɔ production so.

Wɔde client afoforo ka ho wɔ ha bere a wɔatwam sɔhwɛ wɔ production so akyi nkutoo.