Skip to main content
Glama
philschmid

Code Sandbox MCP Server

by philschmid
test_server.py492 B
from unittest.mock import MagicMock from code_sandbox_mcp.server import mcp, main import os import pytest from fastmcp import Client @pytest.mark.asyncio async def test_tools_added(): # Check if the tools from the tools module are added to the mcp instance async with Client(mcp) as client: tools = await client.list_tools() tool_names = [tool.name for tool in tools] assert "run_python_code" in tool_names assert "run_javascript_code" in tool_names

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/philschmid/code-sandbox-mcp'

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