Skip to main content
Glama

IaC Memory MCP Server

by AgentWong
base_utils.py925 B
"""Base test utilities shared between database and MCP client testing. This module provides common functionality used by both database-direct and MCP client testing approaches. It includes: - BaseTestContext: Common context functionality - Error capture utilities """ from contextlib import asynccontextmanager from typing import AsyncGenerator from iac_memory_mcp_server.context import BaseContext from iac_memory_mcp_server.utils.errors import DatabaseError class BaseTestContext(BaseContext): """Base class for test contexts with common functionality.""" pass @asynccontextmanager async def capture_taskgroup_errors() -> AsyncGenerator[None, None]: """Context manager for error handling.""" try: yield except Exception as e: # Let DatabaseError pass through unchanged if isinstance(e, DatabaseError): raise # Re-raise other exceptions raise

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/AgentWong/iac-memory-mcp-server-project'

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