from urllib.parse import urlparse
from server import ALL_SERVICES
def test_service_get():
"""Tests that each service get method returns what is is supposed to.
There are two edgecases in assert related to hybridanalysis URL pattern
and urlscan URL generation when transforms to a domain format
"""
for observable, services in ALL_SERVICES.items():
for service in services:
sample = observable.get_sample_value()
request = service().get(sample)
assert (
sample in request.url or
"search/terms" in request.url or
urlparse(sample).netloc in request.url
)
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/synackpwn/enrichment-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server