MCPcopy Create free account

hub / github.com/IBM/mcp-cli / types & classes

Types & classes1,312 in github.com/IBM/mcp-cli

↓ 328 callersClassCommandResult
Result from command execution.
src/mcp_cli/commands/base.py:55
↓ 150 callersClassMessage
A message in an LLM conversation. Use Pydantic native methods: - model_dump(exclude_none=True, mode="json") to serialize to dict - Messag
src/mcp_cli/commands/models/cmd.py:51
↓ 135 callersClassToolProcessor
Handle execution of tool calls returned by the LLM. Delegates parallel execution to ToolManager.stream_execute_tools(), handling only CL
src/mcp_cli/chat/tool_processor.py:55
↓ 128 callersClassToolManager
Facade over chuk-tool-processor with mcp-cli specific features. Responsibilities: 1. Parse MCP config files and detect server types (HTT
src/mcp_cli/tools/manager.py:79
↓ 127 callersClassConversationProcessor
Class to handle LLM conversation processing with streaming support. Updated to work with universal tool compatibility system. ENHANCED:
src/mcp_cli/chat/conversation.py:32
↓ 94 callersClassMockContext
Mock context for testing.
tests/chat/test_conversation.py:36
↓ 93 callersClassMockUIManager
Mock UI manager for testing.
tests/chat/test_conversation.py:18
↓ 85 callersClassCommandParameter
Definition of a command parameter.
src/mcp_cli/commands/base.py:29
↓ 77 callersClassPlanningContext
State container for plan operations. Centralizes access to the graph store, plan registry, and tool manager. Passed to the PlanRunner and Pla
src/mcp_cli/planning/context.py:30
↓ 77 callersClassToolCallResult
Outcome of a tool execution. ENHANCED: Now wraps chuk_tool_processor.models.tool_result.ToolResult for full tracking (start_time, end_ti
src/mcp_cli/tools/models.py:245
↓ 75 callersClassToolInfo
Information about a tool. Lightweight adapter over chuk-tool-processor's ToolMetadata for MCP-CLI UI/display purposes.
src/mcp_cli/tools/models.py:119
↓ 72 callersClassToolCall
Tool call made by the LLM.
src/mcp_cli/commands/models/cmd.py:28
↓ 71 callersClassUnifiedCommandRegistry
Central registry for all commands. This replaces the separate registries in chat, CLI, and interactive modes.
src/mcp_cli/commands/registry.py:17
↓ 69 callersClassPreferenceManager
Manages MCP CLI preferences with file persistence.
src/mcp_cli/utils/preferences.py:188
↓ 65 callersClassDummyToolManager
tests/chat/test_tool_processor_extended.py:152
↓ 64 callersClassDummyContext
tests/chat/test_tool_processor_extended.py:232
↓ 61 callersClassDummyUIManager
tests/chat/test_tool_processor_extended.py:60
↓ 57 callersClassDummyUIManager
tests/chat/test_tool_processor.py:46
↓ 56 callersClassRuntimeProviderConfig
Configuration for a runtime provider (OpenAI-compatible API). This model represents a provider that can be added at runtime or loaded fr
src/mcp_cli/model_management/provider.py:13
↓ 51 callersClassMockChatCommand
Concrete mock command for chat-mode testing.
tests/adapters/test_chat_adapter.py:26
↓ 49 callersClassStreamingState
Complete state of an active streaming operation. This replaces scattered state variables with a single, type-safe model.
src/mcp_cli/display/models.py:137
↓ 47 callersClassConfigLoader
Loads and processes MCP configuration files with OAuth support.
src/mcp_cli/tools/config_loader.py:36
↓ 45 callersClassDiscoveryResult
Result of model discovery from an API. This model represents the outcome of attempting to discover available models from a provider's AP
src/mcp_cli/model_management/discovery.py:13
↓ 44 callersClassPlanRunner
Orchestrates LLM-driven plan execution with mcp-cli integration. Each step is executed by the LLM: given the step description and tool schema
src/mcp_cli/planning/executor.py:97
↓ 44 callersClassStreamingChunk
A single chunk received from the streaming LLM response. This normalizes various chunk formats from different providers into a consistent str
src/mcp_cli/display/models.py:56
↓ 41 callersClassDummyToolManager
Mock tool manager with execute_tool and stream_execute_tools methods.
tests/chat/test_tool_processor.py:86
↓ 40 callersClassDummyContext
A dummy context object with conversation_history and managers.
tests/chat/test_tool_processor.py:173
↓ 38 callersClassAgentRouter
Routes dashboard messages between the server and one or more bridges.
src/mcp_cli/dashboard/router.py:67
↓ 38 callersClassServerInfo
Information about a connected server instance.
src/mcp_cli/tools/models.py:190
↓ 36 callersClassAppHostServer
Local web server for hosting MCP Apps in the user's browser.
src/mcp_cli/apps/host.py:55
↓ 34 callersClassDashboardServer
Local HTTP + WebSocket server for the mcp-cli dashboard shell.
src/mcp_cli/dashboard/server.py:40
↓ 34 callersClassToolExecutionState
State tracking for a tool currently being executed.
src/mcp_cli/chat/models.py:237
↓ 33 callersClassFakeToolManager
Stub for ToolManager — only needs read_resource for launch tests.
tests/apps/test_host.py:18
↓ 32 callersClassMCPConfig
Complete MCP configuration - clean, immutable, type-safe. This is the source of truth loaded from config files. RuntimeConfig wraps this with
src/mcp_cli/config/models.py:145
↓ 31 callersClassDynamicToolProvider
MCP-CLI specific dynamic tool provider. Extends BaseDynamicToolProvider with: - ToolManager integration for MCP tool execution - State-aw
src/mcp_cli/tools/dynamic_tools.py:53
↓ 31 callersClassRuntimeConfig
Runtime configuration resolver with 4-tier priority. Priority (highest to lowest): 1. CLI overrides (ConfigOverride) 2. Environment varia
src/mcp_cli/config/runtime.py:34
↓ 28 callersClassMockCLICommand
Concrete mock command for CLI-mode testing.
tests/adapters/test_cli_adapter_coverage.py:29
↓ 27 callersClassDummyCommand
Dummy command for testing.
tests/commands/test_registry.py:13
↓ 27 callersClassMockContext
Mock context for testing.
tests/chat/test_conversation_extended.py:44
↓ 27 callersClassMockUIManager
Mock UI manager for testing.
tests/chat/test_conversation_extended.py:26
↓ 26 callersClassChatContext
Chat context with SessionManager as the native conversation backend. SessionManager is required - no fallback to local state. All conver
src/mcp_cli/chat/chat_context.py:38
↓ 26 callersClassClientFactory
Factory for creating and caching LLM clients. This class manages the creation and caching of LLM clients for different providers and mod
src/mcp_cli/model_management/client_factory.py:23
↓ 26 callersClassFakeToolManager
Minimal ToolManager stub.
tests/planning/test_executor.py:48
↓ 26 callersClassFakeToolManager
Minimal ToolManager stub for PlanningContext tests.
tests/planning/test_context.py:24
↓ 26 callersClassStreamingResponseHandler
Clean, async-native streaming handler. Uses unified display system - no fallbacks, no dual paths.
src/mcp_cli/chat/streaming_handler.py:222
↓ 26 callersClassToolCallAccumulator
Manages accumulation of tool calls across streaming chunks. Uses Pydantic models for type-safe state management. Handles fragmented JSON and
src/mcp_cli/chat/streaming_handler.py:86
↓ 25 callersClassAppInfo
Runtime information about a running MCP App.
src/mcp_cli/apps/models.py:21
↓ 25 callersClassToolFilter
Manages tool filtering and disabling based on various criteria.
src/mcp_cli/tools/filter.py:64
↓ 24 callersClassDiagnosticResult
Result of a diagnostic test.
diagnostics/model_manager_diagnostic.py:34
↓ 24 callersClassModelManager
Manages LLM providers, models, and client creation. This is a clean, refactored implementation that: - Uses Pydantic models for type saf
src/mcp_cli/model_management/model_manager.py:32
↓ 22 callersClassAppBridge
Bridges WebSocket messages from browser to MCP server tool calls.
src/mcp_cli/apps/bridge.py:30
↓ 22 callersClassExtMockCommand
Configurable mock command for extended testing.
tests/adapters/test_interactive_adapter_extended.py:37
↓ 22 callersClassMockToolManager
Mock ToolManager for testing execution functions.
tests/tools/test_execution.py:15
↓ 21 callersClassConfigManager
Manager for application configuration. This provides a singleton-like pattern for managing configuration.
src/mcp_cli/config/config_manager.py:332
↓ 19 callersClassCompletionResponse
LLM completion response with streaming metadata - type-safe! This extends the basic chuk_llm CompletionResponse with MCP-CLI-specific streami
src/mcp_cli/chat/response_models.py:47
↓ 19 callersClassConfigOverride
Type-safe configuration override from CLI/env. Use this instead of dict[str, Any] for CLI arguments.
src/mcp_cli/config/models.py:204
↓ 19 callersClassConfirmCommand
Toggle or set tool call confirmation mode.
src/mcp_cli/commands/core/confirm.py:19
↓ 18 callersClassMockCommand
Mock command for unit tests.
tests/commands/test_unified_registry.py:17
↓ 17 callersClassDummyToolManager
Mock tool manager for testing DynamicToolProvider.
tests/tools/test_dynamic_tools_extended.py:26
↓ 17 callersClassHistoryMessage
A message in the conversation history (dict-based tool_calls for SessionManager compat). This is the LOCAL message model used by ChatContext/Sess
src/mcp_cli/chat/models.py:123
↓ 17 callersClassMockCommand
Mock command for testing.
tests/adapters/test_interactive_adapter.py:18
↓ 16 callersClassAgentManager
Manages spawning, stopping, and communicating with agents.
src/mcp_cli/agents/manager.py:44
↓ 16 callersClassHTTPServerConfig
HTTP/SSE server configuration.
src/mcp_cli/config/server_models.py:10
↓ 16 callersClassMcpToolBackend
Planner → mcp-cli ToolManager adapter with guard integration. Implements the ToolExecutionBackend protocol so that chuk-ai-planner's Universa
src/mcp_cli/planning/backends.py:37
↓ 16 callersClassServerConfig
Configuration for a single MCP server.
src/mcp_cli/config/config_manager.py:40
↓ 14 callersClassAgentConfig
Configuration for a spawned agent. Controls identity, model selection, tool access, and parent relationship.
src/mcp_cli/agents/config.py:9
↓ 14 callersClassMemoryScopeStore
Manages persistent workspace and global memories with file-based storage.
src/mcp_cli/memory/store.py:23
↓ 14 callersClassSessionData
Complete session data for persistence.
src/mcp_cli/chat/session_store.py:38
↓ 14 callersClassSessionMetadata
Metadata for a saved session.
src/mcp_cli/chat/session_store.py:21
↓ 13 callersClassDashboardBridge
Routes chat-engine events to connected browser dashboard clients.
src/mcp_cli/dashboard/bridge.py:50
↓ 13 callersClassDummyToolManager
Mock tool manager for testing DynamicToolProvider.
tests/tools/test_dynamic_tools.py:12
↓ 13 callersClassFakeWs
Minimal WebSocket stub.
tests/apps/test_bridge.py:51
↓ 13 callersClassServerInfoResponse
Response model for server information. Example: >>> server = ServerInfoResponse( ... name="my-server", ... t
src/mcp_cli/commands/models/responses.py:12
↓ 13 callersClassTurnUsage
Token usage for a single conversation turn.
src/mcp_cli/chat/token_tracker.py:15
↓ 13 callersClassUnifiedServerConfig
Unified server configuration supporting both HTTP and STDIO transports. Exactly one of (url, command) must be provided.
src/mcp_cli/config/server_models.py:74
↓ 12 callersClassContextManager
Manager for application contexts. This provides a singleton-like pattern for managing the application context.
src/mcp_cli/context/context_manager.py:248
↓ 12 callersClassDummyCommand
Dummy command for testing.
tests/commands/test_base.py:121
↓ 12 callersClassDummyContextWithSession
Context that exposes a fake session.vm attribute.
tests/chat/test_tool_processor.py:719
↓ 12 callersClassDummyToolManager
Minimal stand-in that satisfies the methods ChatContext uses.
tests/chat/test_chat_context.py:21
↓ 12 callersClassFunctionCallData
Function call within a tool call (OpenAI format). Mutable counterpart to chuk_llm.core.models.FunctionCall (frozen). Must remain mutable beca
src/mcp_cli/chat/models.py:45
↓ 12 callersClassProviderCapabilities
Capabilities and features supported by a provider/model. This model describes what features a specific provider or model supports, such
src/mcp_cli/model_management/provider.py:71
↓ 12 callersClassServerCapabilities
Server MCP capabilities. Example: >>> caps = ServerCapabilities( ... tools=True, ... prompts=True, .
src/mcp_cli/commands/models/server.py:94
↓ 12 callersClassSessionStore
File-based session persistence. Stores sessions as JSON files in a configurable directory.
src/mcp_cli/chat/session_store.py:46
↓ 11 callersClassFakePlanningContext
Minimal PlanningContext stub for tool tests.
tests/planning/test_tools.py:59
↓ 11 callersClassInteractiveExitException
Custom exception for exiting interactive mode without interfering with pytest.
src/mcp_cli/adapters/interactive.py:22
↓ 11 callersClassServerToolGroup
Server-to-tools grouping for system prompt generation.
src/mcp_cli/chat/models.py:277
↓ 11 callersClassSlowMockToolManager
Mock ToolManager with configurable per-tool delays for batch timeout tests.
tests/tools/test_execution.py:503
↓ 10 callersClassDummyToolManager
Successful ToolManager that tracks lifecycle.
tests/cli/test_run_command_extended.py:40
↓ 10 callersClassFakeToolManager
Minimal ToolManager stub for testing McpToolBackend.
tests/planning/test_backends.py:38
↓ 10 callersClassTestChatContext
Test-specific ChatContext that works with stream_manager instead of ToolManager. This is used for: 1. The --test-mode flag in chat handl
src/mcp_cli/chat/testing.py:20
↓ 10 callersClassTokenTracker
Tracks token usage across conversation turns.
src/mcp_cli/chat/token_tracker.py:29
↓ 9 callersClassAttachmentStaging
Staging area for ``/attach`` command. Lives on ChatContext.
src/mcp_cli/chat/attachments.py:101
↓ 9 callersClassMockColorScheme
Mock color scheme for testing.
tests/display/test_color_converter.py:96
↓ 9 callersClassTimeoutConfig
Timeout configuration with proper defaults. All values in seconds. Immutable after creation. No more magic numbers!
src/mcp_cli/config/models.py:29
↓ 9 callersClassToolCallMetadata
Metadata tracked per in-flight tool call during execution.
src/mcp_cli/chat/models.py:287
↓ 8 callersClassAttachment
A single processed attachment ready for content-block injection.
src/mcp_cli/chat/attachments.py:91
↓ 8 callersClassDummyCommand
Dummy command for testing.
tests/commands/definitions/test_help_coverage.py:16
↓ 8 callersClassFakeToolCallResult
tests/planning/test_executor.py:36
↓ 8 callersClassRecallScenario
A single recall test case.
examples/safety/vm_relaxed_mode_demo.py:173
↓ 8 callersClassSTDIOServerConfig
STDIO server configuration.
src/mcp_cli/config/server_models.py:35
next →1–100 of 1,312, ranked by callers