Skip to main content
Glama

mcp-server-code-assist

test_server.py505 B
import pytest from git import Repo from mcp_server_code_assist.server import process_instruction @pytest.fixture def test_repo(tmp_path): repo = tmp_path / "test_repo" repo.mkdir() Repo.init(repo) test_file = repo / "test.txt" test_file.write_text("test") return repo @pytest.mark.asyncio async def test_invalid_instruction(test_repo): response = await process_instruction({"type": "invalid"}, test_repo) assert response["error"] == "Unknown instruction type: invalid"

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/abhishekbhakat/mcp_server_code_assist'

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