Skip to main content
Glama

dev-kit-mcp-server

stdio.py1.24 kB
import asyncio from pathlib import Path import pytest from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio_client @pytest.mark.asyncio async def test_stdio_server(): # Create a new ClientSession with the StdioServerParameters params = StdioServerParameters(command="uvx", args=["dev-kit-mcp-server --directory .."]) async with stdio_client(params) as (read, write): async with ClientSession(read, write): print("inside ClientSession") # await c.initialize() @pytest.mark.asyncio async def test_stdio(): root = Path(__file__).parent.parent process_get = await asyncio.create_subprocess_exec( *["make", "check"], cwd=root.as_posix(), # stdin=asyncio.subprocess.DEVNULL, stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE, # capture_output=True, # text=True, # check=True, # creationflags= asyncio.su.CREATE_NO_WINDOW, ) stdout, stderr = await process_get.communicate() { "command": ["make", "check"], "stdout": stdout.decode(errors="replace"), "stderr": stderr.decode(errors="replace"), "cwd": root.as_posix(), }

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/DanielAvdar/dev-kit-mcp-server'

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