We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/noah-vh/mcp-server-clickup'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
"""Parser for int types"""
from __future__ import annotations
from typing import TYPE_CHECKING
from ..exceptions import BrokenSchemaError
from .atomic_type_parser import AtomicParser
if TYPE_CHECKING:
from ..json_type import JsonType
class IntParser(AtomicParser[int]):
"""Parser for int types"""
_type = int
schema_type_name: str = "integer"
def parse_value(self, value: JsonType) -> int:
if isinstance(value, bool):
# This has to happen for historical reasons
# bool is a subclass of int, so isinstance(value, int) is True
raise BrokenSchemaError(value, self.argument_schema)
return super().parse_value(value)