We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/lcfranca/frankfurter-forex-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
from __future__ import annotations
import pytest
from pydantic import ValidationError
from frankfurter_forex_mcp.models.schemas import BaseQuoteInput
def test_base_not_in_targets() -> None:
with pytest.raises(ValidationError):
BaseQuoteInput(base="USD", targets=["USD", "BRL"])
def test_targets_are_deduplicated() -> None:
payload = BaseQuoteInput(base="USD", targets=["BRL", "brl", "EUR"])
assert payload.targets == ["BRL", "EUR"]