Skip to content

channel_tools

channel_tools

Channel MCP tools — expose channel operations as BaseTool instances.

These tools wrap the BaseChannel ABC so that channel operations (send, list, status) are discoverable and callable via MCP.

Classes

ChannelSendTool

ChannelSendTool(channel: BaseChannel | None = None)

Bases: BaseTool

MCP-exposed tool: send a message via a channel backend.

Source code in src/openjarvis/tools/channel_tools.py
def __init__(self, channel: BaseChannel | None = None) -> None:
    self._channel = channel

ChannelListTool

ChannelListTool(channel: BaseChannel | None = None)

Bases: BaseTool

MCP-exposed tool: list available channels.

Source code in src/openjarvis/tools/channel_tools.py
def __init__(self, channel: BaseChannel | None = None) -> None:
    self._channel = channel

ChannelStatusTool

ChannelStatusTool(channel: BaseChannel | None = None)

Bases: BaseTool

MCP-exposed tool: check channel connection status.

Source code in src/openjarvis/tools/channel_tools.py
def __init__(self, channel: BaseChannel | None = None) -> None:
    self._channel = channel