We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/EricGrill/mcp-bitcoin-cli'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
base.py•388 B
"""Base protocol class for custom protocols."""
from abc import ABC, abstractmethod
class Protocol(ABC):
"""Base class for OP_RETURN protocols."""
@abstractmethod
def to_bytes(self) -> bytes:
"""Convert to raw bytes for embedding."""
pass
@abstractmethod
def to_envelope(self) -> bytes:
"""Convert to BTCD envelope format."""
pass