mirror of
https://github.com/HKUDS/OpenSpace.git
synced 2026-08-28 05:15:00 +00:00
41 lines
No EOL
1.2 KiB
Python
41 lines
No EOL
1.2 KiB
Python
"""
|
|
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",
|
|
] |