Skip to main content
Glama

R Econometrics MCP Server

MIT License
187
  • Linux
  • Apple
conftest.py1 kB
"""Shared pytest fixtures for RMCP tests.""" from __future__ import annotations from collections.abc import Callable from typing import Any import pytest from rmcp.core.context import Context from rmcp.core.server import create_server from rmcp.registries.tools import register_tool_functions @pytest.fixture def server_factory() -> Callable[..., Any]: """Return a factory that creates MCP servers with optional tool registration.""" def _factory(*tools: Any) -> Any: server = create_server() if tools: register_tool_functions(server.tools, *tools) return server return _factory @pytest.fixture def context_factory() -> Callable[..., Context]: """Return a factory that creates request contexts for a server.""" def _factory( server: Any, *, request_id: str = "test", method: str = "test", ) -> Context: return Context.create(request_id, method, server.lifespan_state) return _factory

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/finite-sample/rmcp'

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