Spaces:
Running
Running
File size: 1,180 Bytes
399b80c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | """
MCP Backend for OpenSpace Grounding.
This module provides the MCP (Model Context Protocol) backend implementation
for the grounding framework. It includes:
- MCPProvider: Manages multiple MCP server sessions
- MCPSession: Handles individual MCP server connections
- MCPClient: High-level client for MCP server configuration
- MCPInstallerManager: Manages automatic installation of MCP dependencies
- MCPToolCache: Caches tool metadata to avoid starting servers on list_tools
"""
from .provider import MCPProvider
from .session import MCPSession
from .client import MCPClient
from .installer import (
MCPInstallerManager,
get_global_installer,
set_global_installer,
MCPDependencyError,
MCPCommandNotFoundError,
MCPInstallationCancelledError,
MCPInstallationFailedError,
)
from .tool_cache import MCPToolCache, get_tool_cache
__all__ = [
"MCPProvider",
"MCPSession",
"MCPClient",
"MCPInstallerManager",
"get_global_installer",
"set_global_installer",
"MCPDependencyError",
"MCPCommandNotFoundError",
"MCPInstallationCancelledError",
"MCPInstallationFailedError",
"MCPToolCache",
"get_tool_cache",
] |