ASI.EXPRESSFrom Enterprise.Systems

ඔබේ ඒජන්ට් සම්බන්ධ කරන්න

සර්වර් ලිපිනය: https://asi.express/mcp. ප්‍රවාහනය: Streamable HTTP (POST, JSON පිළිතුරු). පුරනය වීමක් නැත, යතුරක් නැත.

පළමු ඇමතුම: {"query": "weather", "limit": 3} සමඟ search_capabilities. එය results (උපරිම හැකියාවන් 3 ක ලැයිස්තුවක්), count (අංකයක්) සහ තත්ව පේළියක් ලබා දෙයි. ඔබට මුලින්ම අනෙක් මෙවලම් කියවීමට අවශ්‍ය නැත.

2026-11-22 දින, production පරිසරයේ, එක් එක් කොටසේ සඳහන් library සංස්කරණ සමඟ පරීක්ෂා කරන ලදී.

වෙනත් සැපයුම්කරුවන්ගේ මෙවලම් තෙවන පාර්ශ්වයේ ය: ඔබේ නියෝජිතයාට මෙවලමක් ධාවනය කිරීමට ඉඩ දීමට පෙර එම මෙවලම කරන්නේ කුමක්දැයි කියවන්න, සහ ක්‍රියා සිදු කරන මෙවලම් සඳහා 'සැමවිටම ඉඩ දෙන්න' සකසන්න එපා.

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

අපේක්ෂිත ප්‍රතිඵලය: search_capabilities ඇතුළු මෙවලම් නම් 11ක්, ඉන්පසු ගණනක් සහ උපරිම ප්‍රතිඵල 3ක්.

OpenAI Agents SDK (openai-agents 0.25.0)

සම්බන්ධ වීමට සහ මෙවලම් ලැයිස්තුගත කිරීමට OpenAI යතුරක් අවශ්‍ය නැත; මාදිලියක් ධාවනය කිරීමට එය අවශ්‍යයි. යතුරක් සකසා ඇති විට, tracing මගින් දත්ත තෙවන පාර්ශවයකට යවයි: ඔබට එය අවශ්‍ය නැත්නම් OPENAI_AGENTS_DISABLE_TRACING=1 සකසන්න.

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

සර්වරය ඒජන්ට් කෙනෙකුට ලබා දීමට: Agent(name="x", mcp_servers=[srv]). පරීක්ෂණයේදී මාදිලියක් ධාවනය නොකළේය; ඉහත සම්බන්ධ වීම, ලැයිස්තුව සහ ඇමතුම පමණක් සනාථ විය.

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

පිළිතුරේ පෙළ අයිතම දෙකක් ඇත: පළමුව JSON, ඉන්පසු තත්ව පේළියක්. පළමු එක පමණක් 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)

CrewAI හි ම MCPServerAdapter ආවරණය කරන MCP ඇඩැප්ටරය හරහා සනාථ කරන ලදී. crewai_tools ම පරීක්ෂණ පරිගණකයේ load කළ නොහැකි විය, එබැවින් එම wrapper class එක සම්බන්ධයෙන් කිසිදු ප්‍රකාශයක් නොකෙරේ.

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

මෙවලම් ලැයිස්තුව හිස් නොවන බව පරීක්ෂා කරන්න: අසාර්ථක වන සර්වරයක් නිහඬව මඟ හරිනු ලැබේ.

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

සනාථ කළ අනුපිළිවෙල: initialize, notifications/initialized, tools/list, ඉන්පසු ඉහත ඇමතුම. සර්වරය සැසියක් තබා නොගනී, එබැවින් Mcp-Session-Id header එකක් අවශ්‍ය නැත. ඇමතුම පමණක්ද පිළිගනු ලැබේ; රැඳී සිටීම සීමා කිරීමට -m 30 එක් කරන්න.

Claude Code (claude 2.1.330)

මෙය ගොනුවක් ලෙස සුරකින්න, උදාහරණයක් ලෙස asi-mcp.json:

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

ඉන්පසු claude --mcp-config asi-mcp.json සමඟ Claude Code ආරම්භ කරන්න. asi සර්වරය සම්බන්ධිත ලෙස පෙන්වයි, එහි මෙවලම් mcp__asi__search_capabilities ආදී ලෙස පෙනේ.

මෙම ආකෘතිය 2026-11-22 දින production පරිසරයේ පරීක්ෂා කරන ලදී.

මෙම ඇතුළත් කිරීමම ව්‍යාපෘතියක .mcp.json ගොනුවක, හෝ claude mcp add --transport http asi https://asi.express/mcp මගින් එක් කළ විට, ද ක්‍රියා කළ යුතුය (ව්‍යාපෘති සර්වරයක් අනුමත කරන ලෙස Claude Code ඔබෙන් ඉල්ලයි). අපි මෙම ආකෘති production පරිසරයේ පරීක්ෂා කර නැත.

වෙනත් client මෘදුකාංග මෙහි එක් කරනු ලබන්නේ production පරිසරයේ පරීක්ෂණයක් සමත් වූ පසුව පමණි.