Skip to main content

LangChain ને aicharged.io સાથે કનેક્ટ કરો

215 ટૂલ્સ, એક એન્ડપોઇન્ટ: https://aicharged.io/api/v1/mcp

LangChain

LangChain: langchain[mcp], MCPAdapter દ્વારા aicharged.io ટૂલ્સને LangChain ટૂલ્સમાં ફેરવે છે.

  • API કી (Bearer)

ક્લાયન્ટ કોડ

ભલામણ કરેલ
import asyncio, os
from fastmcp import Client
from langchain.mcp import MCPAdapter

async def main():
    client = Client("https://aicharged.io/api/v1/mcp", auth=os.environ["AICHARGED_API_KEY"])
    async with MCPAdapter(client) as adapter:
        tools = await adapter.list_tools()
        print([tool.name for tool in tools])

asyncio.run(main())

જૂનું langchain-mcp-adapters પેકેજ જાળવાતું નથી; langchain[mcp] FastMCP ક્લાયન્ટ પર બનેલું છે.

પેકેજ ઇન્સ્ટોલ કરો

pip install "langchain[mcp]"

અથવા CLI ને તેને સેટ અપ કરવા દો

aicharged setup આ મશીન પર AI ક્લાયન્ટ્સ શોધે છે, બ્રાઉઝર દ્વારા તમને સાઇન ઇન કરે છે અને તેમનું કન્ફિગરેશન લખે છે.

એક લાઇનમાં કનેક્ટ કરો

CLI ઇન્સ્ટોલ કરો · macOS / Linux
curl -fsSL https://aicharged.io/install.sh | sh && aicharged setup
CLI ઇન્સ્ટોલ કરો · Windows
irm https://aicharged.io/install.ps1 | iex; aicharged setup
MCP એન્ડપોઇન્ટ
https://aicharged.io/api/v1/mcp

સ્ટ્રીમેબલ HTTP. હેડર Authorization: Bearer <API_KEY> મોકલો, અથવા જ્યાં તમારો ક્લાયન્ટ સપોર્ટ કરતો હોય ત્યાં OAuth સાથે સાઇન ઇન કરો.

અથવા તમારા એજન્ટને કહો
https://aicharged.io/agent.md વાંચો અને aicharged.io સાથે મને સેટ અપ કરો

આ પ્રોમ્પ્ટ સાથે આમાં ખોલો Claude (નવા ટેબમાં ખુલે છે) ChatGPT (નવા ટેબમાં ખુલે છે) Perplexity (નવા ટેબમાં ખુલે છે)