Skip to main content
Glama

Multi-Agent Tools Platform

test_tools_server.py719 B
import pytest import subprocess import sys import os import requests # These tests assume the servers are running separately as per README. def test_math_tool(): resp = requests.post("http://127.0.0.1:8000/math", json={"query": "2+2"}) assert resp.status_code == 200 assert "4" in resp.json()["result"] def test_weather_tool(): resp = requests.post("http://127.0.0.1:8000/meteo", json={"query": "weather in Paris"}) assert resp.status_code == 200 assert "Paris" in resp.json()["result"] def test_research_tool(): resp = requests.post("http://127.0.0.1:8000/research", json={"query": "Who is Alan Turing?"}) assert resp.status_code == 200 assert "Turing" in resp.json()["result"]

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kingrishabdugar/MCP_Demo'

If you have feedback or need assistance with the MCP directory API, please join our Discord server