ASI.EXPRESSFrom Enterprise.Systems

ເຊື່ອມຕໍ່ agent ຂອງທ່ານ

ທີ່ຢູ່ເຊີບເວີ: https://asi.express/mcp. Transport: Streamable HTTP (POST, ຄຳຕອບແບບ JSON). ບໍ່ຕ້ອງເຂົ້າສູ່ລະບົບ, ບໍ່ຕ້ອງໃຊ້ key.

ການເອີ້ນຄັ້ງທຳອິດ: search_capabilities ກັບ {"query": "weather", "limit": 3}. ມັນສົ່ງຄືນ results (ລາຍການຄວາມສາມາດສູງສຸດ 3 ລາຍການ), count (ຕົວເລກ) ແລະ ແຖວສະຖານະໜຶ່ງແຖວ. ທ່ານບໍ່ຈຳເປັນຕ້ອງອ່ານ tool ອື່ນກ່ອນ.

ທົດສອບເມື່ອ 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())

ຜົນທີ່ຄາດໄວ້: ຊື່ tool 11 ລາຍການ ລວມທັງ search_capabilities, ຈາກນັ້ນເປັນຈຳນວນ ແລະ ຜົນລັບສູງສຸດ 3 ລາຍການ.

OpenAI Agents SDK (openai-agents 0.25.0)

ບໍ່ຕ້ອງໃຊ້ OpenAI key ເພື່ອເຊື່ອມຕໍ່ ແລະ ສະແດງລາຍການ tool; ແຕ່ການແລ່ນ model ຕ້ອງໃຊ້. ເມື່ອຕັ້ງ key ແລ້ວ, 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: Agent(name="x", mcp_servers=[srv]). ການທົດສອບບໍ່ໄດ້ແລ່ນ model; ການເຊື່ອມຕໍ່, ການສະແດງລາຍການ ແລະ ການເອີ້ນຂ້າງເທິງ ຄືສິ່ງທີ່ໄດ້ພິສູດແລ້ວ.

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)

ພິສູດຜ່ານ MCP adapter ທີ່ MCPServerAdapter ຂອງ CrewAI ເອງຫໍ່ໄວ້. ບໍ່ສາມາດໂຫຼດ crewai_tools ເອງໃນຄອມພິວເຕີທົດສອບໄດ້, ດັ່ງນັ້ນຈຶ່ງບໍ່ມີການອ້າງກ່ຽວກັບ 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))

ກວດເບິ່ງວ່າລາຍການ tool ບໍ່ຫວ່າງເປົ່າ: ເຊີບເວີທີ່ລົ້ມເຫຼວຈະຖືກຂ້າມໄປຢ່າງງຽບໆ.

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, ຈາກນັ້ນການເອີ້ນຂ້າງເທິງ. ເຊີບເວີບໍ່ເກັບ session, ດັ່ງນັ້ນບໍ່ຕ້ອງໃຊ້ header Mcp-Session-Id. ການເອີ້ນຢ່າງດຽວກໍ່ຖືກຍອມຮັບເຊັ່ນກັນ; ເພີ່ມ -m 30 ເພື່ອຈຳກັດເວລາລໍຖ້າ.

Claude Code (claude 2.1.330)

ບັນທຶກອັນນີ້ເປັນໄຟລ໌, ຕົວຢ່າງ asi-mcp.json:

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

ຈາກນັ້ນເລີ່ມ Claude Code ດ້ວຍ claude --mcp-config asi-mcp.json. ເຊີບເວີ asi ຈະສະແດງວ່າເຊື່ອມຕໍ່ແລ້ວ, ແລະ tool ຂອງມັນຈະປາກົດເປັນ mcp__asi__search_capabilities ແລະ ອື່ນໆ.

ຮູບແບບນີ້ໄດ້ຖືກທົດສອບເທິງ production ເມື່ອ 2026-11-22.

ລາຍການດຽວກັນໃນໄຟລ໌ .mcp.json ຂອງໂປຣເຈັກ, ຫຼື ທີ່ເພີ່ມດ້ວຍ claude mcp add --transport http asi https://asi.express/mcp, ກໍ່ຄວນໃຊ້ໄດ້ເຊັ່ນກັນ (Claude Code ຈະຂໍໃຫ້ທ່ານອະນຸມັດເຊີບເວີຂອງໂປຣເຈັກ). ພວກເຮົາຍັງບໍ່ໄດ້ທົດສອບຮູບແບບເຫຼົ່ານີ້ເທິງ production.

client ອື່ນໆ ຈະຖືກເພີ່ມໃສ່ບ່ອນນີ້ ກໍ່ຕໍ່ເມື່ອຜ່ານການທົດສອບເທິງ production ແລ້ວເທົ່ານັ້ນ.