ASI.EXPRESSFrom Enterprise.Systems

अपना एजेंट कनेक्ट करें

सर्वर का पता: https://asi.express/mcp। ट्रांसपोर्ट: Streamable HTTP (POST, JSON में जवाब)। न साइन-इन चाहिए, न कोई key।

पहली कॉल: {"query": "weather", "limit": 3} के साथ search_capabilities। यह results (अधिकतम 3 क्षमताओं की सूची), count (एक संख्या) और एक स्टेटस लाइन लौटाता है। आपको पहले बाकी टूल पढ़ने की ज़रूरत नहीं है।

2026-11-22 को प्रोडक्शन पर, हर सेक्शन में बताए गए लाइब्रेरी वर्ज़न के साथ टेस्ट किया गया।

अन्य प्रदाताओं के टूल तृतीय-पक्ष के हैं: अपने एजेंट को कोई टूल चलाने देने से पहले पढ़ें कि वह क्या करता है, और जो टूल कोई कार्रवाई करते हैं उनके लिए 'हमेशा अनुमति दें' सेट न करें।

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 key की ज़रूरत नहीं है; मॉडल चलाने के लिए ज़रूरत है। 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(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, फिर एक स्टेटस लाइन। केवल पहले वाले को पार्स करें।

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 एडेप्टर के ज़रिए प्रमाणित, जिसे CrewAI का अपना MCPServerAdapter रैप करता है। crewai_tools खुद टेस्ट कंप्यूटर पर लोड नहीं हो सका, इसलिए उस रैपर क्लास के बारे में कोई दावा नहीं किया गया है।

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 हेडर की ज़रूरत नहीं है। सिर्फ़ कॉल भी स्वीकार की जाती है; प्रतीक्षा सीमित करने के लिए -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 को प्रोडक्शन पर टेस्ट किया गया था।

यही एंट्री किसी प्रोजेक्ट की .mcp.json फ़ाइल में, या claude mcp add --transport http asi https://asi.express/mcp से जोड़ने पर भी काम करनी चाहिए (Claude Code आपसे प्रोजेक्ट सर्वर को मंज़ूरी देने के लिए कहता है)। हमने इन तरीकों को प्रोडक्शन पर टेस्ट नहीं किया है।

अन्य क्लाइंट यहाँ तभी जोड़े जाते हैं जब वे प्रोडक्शन पर टेस्ट पास कर लेते हैं।