Skip to main content
Glama
firetix

MCP Vulnerability Checker Server

by firetix
test_stdio.py769 B
import asyncio import pytest from mcp.client.session import ClientSession from mcp.client.stdio import StdioServerParameters, stdio_client @pytest.mark.asyncio async def test_mcp_server_tools() -> None: """Test that we can connect to the server and list available tools.""" async with stdio_client( StdioServerParameters(command="uv", args=["run", "mcp-simple-tool"]) ) as (read, write): async with ClientSession(read, write) as session: await session.initialize() tools = await session.list_tools() assert tools is not None, "Tools list should not be None" assert tools.tools, "Server should provide at least one tool" if __name__ == "__main__": asyncio.run(test_mcp_server_tools())

Latest Blog Posts

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/firetix/vulnerability-intelligence-mcp-server'

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