Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/mcp-cli
/ types & classes
Types & classes
1,312 in github.com/IBM/mcp-cli
⨍
Functions
6,849
◇
Types & classes
1,312
↳
Endpoints
189
↓ 328 callers
Class
CommandResult
Result from command execution.
src/mcp_cli/commands/base.py:55
↓ 150 callers
Class
Message
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 callers
Class
ToolProcessor
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 callers
Class
ToolManager
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 callers
Class
ConversationProcessor
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 callers
Class
MockContext
Mock context for testing.
tests/chat/test_conversation.py:36
↓ 93 callers
Class
MockUIManager
Mock UI manager for testing.
tests/chat/test_conversation.py:18
↓ 85 callers
Class
CommandParameter
Definition of a command parameter.
src/mcp_cli/commands/base.py:29
↓ 77 callers
Class
PlanningContext
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 callers
Class
ToolCallResult
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 callers
Class
ToolInfo
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 callers
Class
ToolCall
Tool call made by the LLM.
src/mcp_cli/commands/models/cmd.py:28
↓ 71 callers
Class
UnifiedCommandRegistry
Central registry for all commands. This replaces the separate registries in chat, CLI, and interactive modes.
src/mcp_cli/commands/registry.py:17
↓ 69 callers
Class
PreferenceManager
Manages MCP CLI preferences with file persistence.
src/mcp_cli/utils/preferences.py:188
↓ 65 callers
Class
DummyToolManager
tests/chat/test_tool_processor_extended.py:152
↓ 64 callers
Class
DummyContext
tests/chat/test_tool_processor_extended.py:232
↓ 61 callers
Class
DummyUIManager
tests/chat/test_tool_processor_extended.py:60
↓ 57 callers
Class
DummyUIManager
tests/chat/test_tool_processor.py:46
↓ 56 callers
Class
RuntimeProviderConfig
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 callers
Class
MockChatCommand
Concrete mock command for chat-mode testing.
tests/adapters/test_chat_adapter.py:26
↓ 49 callers
Class
StreamingState
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 callers
Class
ConfigLoader
Loads and processes MCP configuration files with OAuth support.
src/mcp_cli/tools/config_loader.py:36
↓ 45 callers
Class
DiscoveryResult
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 callers
Class
PlanRunner
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 callers
Class
StreamingChunk
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 callers
Class
DummyToolManager
Mock tool manager with execute_tool and stream_execute_tools methods.
tests/chat/test_tool_processor.py:86
↓ 40 callers
Class
DummyContext
A dummy context object with conversation_history and managers.
tests/chat/test_tool_processor.py:173
↓ 38 callers
Class
AgentRouter
Routes dashboard messages between the server and one or more bridges.
src/mcp_cli/dashboard/router.py:67
↓ 38 callers
Class
ServerInfo
Information about a connected server instance.
src/mcp_cli/tools/models.py:190
↓ 36 callers
Class
AppHostServer
Local web server for hosting MCP Apps in the user's browser.
src/mcp_cli/apps/host.py:55
↓ 34 callers
Class
DashboardServer
Local HTTP + WebSocket server for the mcp-cli dashboard shell.
src/mcp_cli/dashboard/server.py:40
↓ 34 callers
Class
ToolExecutionState
State tracking for a tool currently being executed.
src/mcp_cli/chat/models.py:237
↓ 33 callers
Class
FakeToolManager
Stub for ToolManager — only needs read_resource for launch tests.
tests/apps/test_host.py:18
↓ 32 callers
Class
MCPConfig
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 callers
Class
DynamicToolProvider
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 callers
Class
RuntimeConfig
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 callers
Class
MockCLICommand
Concrete mock command for CLI-mode testing.
tests/adapters/test_cli_adapter_coverage.py:29
↓ 27 callers
Class
DummyCommand
Dummy command for testing.
tests/commands/test_registry.py:13
↓ 27 callers
Class
MockContext
Mock context for testing.
tests/chat/test_conversation_extended.py:44
↓ 27 callers
Class
MockUIManager
Mock UI manager for testing.
tests/chat/test_conversation_extended.py:26
↓ 26 callers
Class
ChatContext
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 callers
Class
ClientFactory
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 callers
Class
FakeToolManager
Minimal ToolManager stub.
tests/planning/test_executor.py:48
↓ 26 callers
Class
FakeToolManager
Minimal ToolManager stub for PlanningContext tests.
tests/planning/test_context.py:24
↓ 26 callers
Class
StreamingResponseHandler
Clean, async-native streaming handler. Uses unified display system - no fallbacks, no dual paths.
src/mcp_cli/chat/streaming_handler.py:222
↓ 26 callers
Class
ToolCallAccumulator
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 callers
Class
AppInfo
Runtime information about a running MCP App.
src/mcp_cli/apps/models.py:21
↓ 25 callers
Class
ToolFilter
Manages tool filtering and disabling based on various criteria.
src/mcp_cli/tools/filter.py:64
↓ 24 callers
Class
DiagnosticResult
Result of a diagnostic test.
diagnostics/model_manager_diagnostic.py:34
↓ 24 callers
Class
ModelManager
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 callers
Class
AppBridge
Bridges WebSocket messages from browser to MCP server tool calls.
src/mcp_cli/apps/bridge.py:30
↓ 22 callers
Class
ExtMockCommand
Configurable mock command for extended testing.
tests/adapters/test_interactive_adapter_extended.py:37
↓ 22 callers
Class
MockToolManager
Mock ToolManager for testing execution functions.
tests/tools/test_execution.py:15
↓ 21 callers
Class
ConfigManager
Manager for application configuration. This provides a singleton-like pattern for managing configuration.
src/mcp_cli/config/config_manager.py:332
↓ 19 callers
Class
CompletionResponse
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 callers
Class
ConfigOverride
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 callers
Class
ConfirmCommand
Toggle or set tool call confirmation mode.
src/mcp_cli/commands/core/confirm.py:19
↓ 18 callers
Class
MockCommand
Mock command for unit tests.
tests/commands/test_unified_registry.py:17
↓ 17 callers
Class
DummyToolManager
Mock tool manager for testing DynamicToolProvider.
tests/tools/test_dynamic_tools_extended.py:26
↓ 17 callers
Class
HistoryMessage
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 callers
Class
MockCommand
Mock command for testing.
tests/adapters/test_interactive_adapter.py:18
↓ 16 callers
Class
AgentManager
Manages spawning, stopping, and communicating with agents.
src/mcp_cli/agents/manager.py:44
↓ 16 callers
Class
HTTPServerConfig
HTTP/SSE server configuration.
src/mcp_cli/config/server_models.py:10
↓ 16 callers
Class
McpToolBackend
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 callers
Class
ServerConfig
Configuration for a single MCP server.
src/mcp_cli/config/config_manager.py:40
↓ 14 callers
Class
AgentConfig
Configuration for a spawned agent. Controls identity, model selection, tool access, and parent relationship.
src/mcp_cli/agents/config.py:9
↓ 14 callers
Class
MemoryScopeStore
Manages persistent workspace and global memories with file-based storage.
src/mcp_cli/memory/store.py:23
↓ 14 callers
Class
SessionData
Complete session data for persistence.
src/mcp_cli/chat/session_store.py:38
↓ 14 callers
Class
SessionMetadata
Metadata for a saved session.
src/mcp_cli/chat/session_store.py:21
↓ 13 callers
Class
DashboardBridge
Routes chat-engine events to connected browser dashboard clients.
src/mcp_cli/dashboard/bridge.py:50
↓ 13 callers
Class
DummyToolManager
Mock tool manager for testing DynamicToolProvider.
tests/tools/test_dynamic_tools.py:12
↓ 13 callers
Class
FakeWs
Minimal WebSocket stub.
tests/apps/test_bridge.py:51
↓ 13 callers
Class
ServerInfoResponse
Response model for server information. Example: >>> server = ServerInfoResponse( ... name="my-server", ... t
src/mcp_cli/commands/models/responses.py:12
↓ 13 callers
Class
TurnUsage
Token usage for a single conversation turn.
src/mcp_cli/chat/token_tracker.py:15
↓ 13 callers
Class
UnifiedServerConfig
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 callers
Class
ContextManager
Manager for application contexts. This provides a singleton-like pattern for managing the application context.
src/mcp_cli/context/context_manager.py:248
↓ 12 callers
Class
DummyCommand
Dummy command for testing.
tests/commands/test_base.py:121
↓ 12 callers
Class
DummyContextWithSession
Context that exposes a fake session.vm attribute.
tests/chat/test_tool_processor.py:719
↓ 12 callers
Class
DummyToolManager
Minimal stand-in that satisfies the methods ChatContext uses.
tests/chat/test_chat_context.py:21
↓ 12 callers
Class
FunctionCallData
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 callers
Class
ProviderCapabilities
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 callers
Class
ServerCapabilities
Server MCP capabilities. Example: >>> caps = ServerCapabilities( ... tools=True, ... prompts=True, .
src/mcp_cli/commands/models/server.py:94
↓ 12 callers
Class
SessionStore
File-based session persistence. Stores sessions as JSON files in a configurable directory.
src/mcp_cli/chat/session_store.py:46
↓ 11 callers
Class
FakePlanningContext
Minimal PlanningContext stub for tool tests.
tests/planning/test_tools.py:59
↓ 11 callers
Class
InteractiveExitException
Custom exception for exiting interactive mode without interfering with pytest.
src/mcp_cli/adapters/interactive.py:22
↓ 11 callers
Class
ServerToolGroup
Server-to-tools grouping for system prompt generation.
src/mcp_cli/chat/models.py:277
↓ 11 callers
Class
SlowMockToolManager
Mock ToolManager with configurable per-tool delays for batch timeout tests.
tests/tools/test_execution.py:503
↓ 10 callers
Class
DummyToolManager
Successful ToolManager that tracks lifecycle.
tests/cli/test_run_command_extended.py:40
↓ 10 callers
Class
FakeToolManager
Minimal ToolManager stub for testing McpToolBackend.
tests/planning/test_backends.py:38
↓ 10 callers
Class
TestChatContext
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 callers
Class
TokenTracker
Tracks token usage across conversation turns.
src/mcp_cli/chat/token_tracker.py:29
↓ 9 callers
Class
AttachmentStaging
Staging area for ``/attach`` command. Lives on ChatContext.
src/mcp_cli/chat/attachments.py:101
↓ 9 callers
Class
MockColorScheme
Mock color scheme for testing.
tests/display/test_color_converter.py:96
↓ 9 callers
Class
TimeoutConfig
Timeout configuration with proper defaults. All values in seconds. Immutable after creation. No more magic numbers!
src/mcp_cli/config/models.py:29
↓ 9 callers
Class
ToolCallMetadata
Metadata tracked per in-flight tool call during execution.
src/mcp_cli/chat/models.py:287
↓ 8 callers
Class
Attachment
A single processed attachment ready for content-block injection.
src/mcp_cli/chat/attachments.py:91
↓ 8 callers
Class
DummyCommand
Dummy command for testing.
tests/commands/definitions/test_help_coverage.py:16
↓ 8 callers
Class
FakeToolCallResult
tests/planning/test_executor.py:36
↓ 8 callers
Class
RecallScenario
A single recall test case.
examples/safety/vm_relaxed_mode_demo.py:173
↓ 8 callers
Class
STDIOServerConfig
STDIO server configuration.
src/mcp_cli/config/server_models.py:35
next →
1–100 of 1,312, ranked by callers