Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/IBM/mcp-cli
/ functions
Functions
6,849 in github.com/IBM/mcp-cli
⨍
Functions
6,849
◇
Types & classes
1,312
↳
Endpoints
189
↓ 4 callers
Function
show_server_status
Display current server status.
examples/servers/server_management_e2e.py:27
↓ 4 callers
Method
spawn_agent
Spawn a new agent from *config*. Returns the agent_id.
src/mcp_cli/agents/manager.py:64
↓ 4 callers
Method
stop_agent
Stop an agent. Returns True if it existed.
src/mcp_cli/agents/manager.py:170
↓ 4 callers
Method
switch_to
Switch to a provider/model combination and return the result. Args: provider: Provider to switch to (optional)
src/mcp_cli/core/model_resolver.py:123
↓ 4 callers
Function
themeToCSS
(t)
src/mcp_cli/dashboard/static/js/theme.js:23
↓ 4 callers
Method
to_dict
Convert to dict for backwards compatibility using enums.
src/mcp_cli/chat/streaming_handler.py:72
↓ 4 callers
Function
updatePanelHeader
(panel)
src/mcp_cli/dashboard/static/js/views.js:176
↓ 4 callers
Method
update_reasoning
Update reasoning content during streaming. Args: reasoning: Reasoning/thinking content from model
src/mcp_cli/display/manager.py:143
↓ 4 callers
Method
validate_transport
Validate transport type.
src/mcp_cli/commands/models/responses.py:40
↓ 3 callers
Method
__init__
Initialize command error. Args: message: Error message command: Command name that failed (optional)
src/mcp_cli/commands/exceptions.py:10
↓ 3 callers
Method
_build_server_tool_groups
Build server-to-tools grouping for the system prompt.
src/mcp_cli/chat/chat_context.py:543
↓ 3 callers
Method
_clear_current_display
Clear the current status display without resetting state (sync version). This is used when transitioning between display modes (e.g., streami
src/mcp_cli/display/manager.py:554
↓ 3 callers
Method
_clear_previous_lines
Clear previous status lines from terminal. Assumes cursor is at the start of the first line.
src/mcp_cli/display/manager.py:500
↓ 3 callers
Method
_ensure_all_tool_results
Ensure every tool_call_id in the assistant message has a matching result. This is a safety net that prevents OpenAI 400 errors caused by orph
src/mcp_cli/chat/tool_processor.py:1178
↓ 3 callers
Function
_enter_interactive_mode
Start the interactive-shell UI. We pass in the *StreamManager* plus the ToolManager for parity with production code.
src/mcp_cli/run_command.py:273
↓ 3 callers
Function
_generate_dynamic_tools_prompt
Generate system prompt for dynamic tools mode. In dynamic tools mode, the LLM has access to a tool discovery system instead of individual too
src/mcp_cli/chat/system_prompt.py:137
↓ 3 callers
Method
_get_tool_int
Get integer tool config from CLI/env (type-safe!).
src/mcp_cli/config/runtime.py:195
↓ 3 callers
Method
_handle_non_streaming
Fallback for non-streaming clients.
src/mcp_cli/chat/streaming_handler.py:508
↓ 3 callers
Method
_is_plan_id
Check if a registry key is a real plan ID (not a checkpoint/state).
src/mcp_cli/planning/context.py:92
↓ 3 callers
Method
_list_tools
List available tools.
src/mcp_cli/commands/tools/execute_tool.py:381
↓ 3 callers
Function
_make_agent_manager
Create a mock AgentManager with the given agent configs.
tests/agents/test_group_store.py:24
↓ 3 callers
Function
_make_context
Build a minimal mock context for ChatUIManager.
tests/chat/test_ui_manager_coverage.py:19
↓ 3 callers
Method
_make_ctx_with_staging
()
tests/dashboard/test_bridge_extended.py:860
↓ 3 callers
Method
_make_mock_tool_state
Create a mock tool state for soft block repair tests.
tests/chat/test_tool_processor_extended.py:1573
↓ 3 callers
Method
_make_processor
(self)
tests/utils/test_trusted_domains.py:109
↓ 3 callers
Method
_make_router_bridge
(self, agent_id: str = "routed-agent")
tests/dashboard/test_bridge_extended.py:811
↓ 3 callers
Method
_plan_ids
Get all known plan IDs from both in-memory registry and disk. Excludes checkpoint/state files. Combines both sources because in-memor
src/mcp_cli/planning/context.py:96
↓ 3 callers
Method
_proc
(self)
tests/chat/test_tool_processor.py:2427
↓ 3 callers
Method
_proc_with_map
(self, tool_map, server_info_list)
tests/chat/test_tool_processor.py:1819
↓ 3 callers
Method
_process_chunk
Process a single streaming chunk. Args: raw_chunk: Raw chunk from LLM provider
src/mcp_cli/chat/streaming_handler.py:470
↓ 3 callers
Method
_render_streaming_status
Render current streaming status with debounced reasoning preview.
src/mcp_cli/display/manager.py:396
↓ 3 callers
Method
_resolve_plan_id
Resolve a full or prefix plan ID to the full UUID. Supports prefix matching: if the given ID is a prefix of exactly one plan's UUID,
src/mcp_cli/planning/context.py:142
↓ 3 callers
Method
_safe_json_dumps
Serialise *obj* to JSON, falling back to _to_serializable on error.
src/mcp_cli/apps/bridge.py:318
↓ 3 callers
Method
_setup
(self)
tests/chat/test_tool_processor_extended.py:1566
↓ 3 callers
Function
_setup_signal_handlers
Setup signal handlers for clean shutdown.
src/mcp_cli/main.py:1767
↓ 3 callers
Method
_start_refresh_loop
Start background refresh loop.
src/mcp_cli/display/manager.py:336
↓ 3 callers
Method
_stop_refresh_loop
Stop background refresh loop.
src/mcp_cli/display/manager.py:345
↓ 3 callers
Method
_text_response
Build a mock LLM response with text only (no tool call). Uses the chuk_llm native format (top-level response key).
tests/planning/test_executor.py:826
↓ 3 callers
Method
add_tool_message
Add a tool response message to conversation history.
src/mcp_cli/context/context_manager.py:233
↓ 3 callers
Method
add_trusted_domain
Add a trusted domain. Args: domain: Domain to trust (e.g. 'example.com')
src/mcp_cli/utils/preferences.py:402
↓ 3 callers
Function
applyTheme
(t)
src/mcp_cli/dashboard/static/js/theme.js:35
↓ 3 callers
Method
assistant_message
Create an assistant message.
src/mcp_cli/tools/models.py:558
↓ 3 callers
Method
broadcast
Send a JSON message to all connected WebSocket clients.
src/mcp_cli/dashboard/server.py:91
↓ 3 callers
Function
broadcastToViews
(type, payload)
src/mcp_cli/dashboard/static/js/views.js:231
↓ 3 callers
Function
buildOverflowMenu
()
src/mcp_cli/dashboard/static/js/toolbar.js:12
↓ 3 callers
Method
cleanup
Cleanup UI manager resources.
src/mcp_cli/chat/ui_manager.py:415
↓ 3 callers
Method
clear_cache
Clear the client cache.
src/mcp_cli/model_management/client_factory.py:163
↓ 3 callers
Function
delete_user_layout
Delete a named user layout. Returns True if it existed.
src/mcp_cli/dashboard/config.py:148
↓ 3 callers
Method
discover_runtime_provider
Add a runtime provider, discovering models from the API if needed. Args: name: Provider name api_base: API b
src/mcp_cli/model_management/model_manager.py:164
↓ 3 callers
Method
drain
Return all pending attachments and clear the staging area.
src/mcp_cli/chat/attachments.py:111
↓ 3 callers
Function
ensure_async
If *tool_obj* exposes a synchronous ._execute / .run / .execute / .__call__, replace that method with an async wrapper so the executor can aw
examples/tools/tool_round_trip.py:48
↓ 3 callers
Function
esc
(s)
src/mcp_cli/dashboard/static/js/utils.js:6
↓ 3 callers
Function
exportConversation
(format)
src/mcp_cli/dashboard/static/js/export.js:9
↓ 3 callers
Method
format_output
Format the command output for a specific mode. Can be overridden for mode-specific formatting.
src/mcp_cli/commands/base.py:138
↓ 3 callers
Method
from_chuk_result
Create ToolCallResult from chuk's ToolResult. Args: tool_result: chuk_tool_processor.models.tool_result.ToolResult
src/mcp_cli/tools/models.py:268
↓ 3 callers
Function
getOrCreateView
(viewId)
src/mcp_cli/dashboard/static/js/views.js:80
↓ 3 callers
Function
getOverlay
()
src/mcp_cli/dashboard/static/js/layout.js:22
↓ 3 callers
Method
get_adapted_tools_for_llm
Get tools adapted for LLM with name mapping.
src/mcp_cli/tools/manager.py:1038
↓ 3 callers
Method
get_agent_snapshot
Return config and context for an agent (used by group_store). Returns ``{config: AgentConfig, context: ChatContext}`` or None.
src/mcp_cli/agents/manager.py:304
↓ 3 callers
Method
get_agent_status
Return status dict for a single agent, or None.
src/mcp_cli/agents/manager.py:285
↓ 3 callers
Method
get_all_tools
(self)
tests/tools/test_dynamic_tools.py:25
↓ 3 callers
Method
get_arguments_dict
Parse arguments JSON string to dict.
src/mcp_cli/chat/models.py:58
↓ 3 callers
Method
get_config_file
Get default config file path.
src/mcp_cli/utils/preferences.py:500
↓ 3 callers
Method
get_conversation_length
Get conversation length (excluding system prompt).
src/mcp_cli/chat/chat_context.py:780
↓ 3 callers
Method
get_current_server
Get the currently active server.
src/mcp_cli/context/context_manager.py:115
↓ 3 callers
Method
get_disabled_tools_by_reason
Get disabled tools by specific reason - accepts enum or string!
src/mcp_cli/tools/filter.py:106
↓ 3 callers
Method
get_history_file
Get path to chat history file.
src/mcp_cli/utils/preferences.py:514
↓ 3 callers
Function
get_provider_token_display_status
Get a human-readable status indicator for a provider's token. Args: provider_name: Provider name token_manager: TokenManager
src/mcp_cli/auth/provider_tokens.py:234
↓ 3 callers
Function
get_runtime_config
Convenience function to create a RuntimeConfig instance. Args: mcp_config: The loaded MCPConfig (defaults to getting from ConfigMana
src/mcp_cli/config/config_manager.py:704
↓ 3 callers
Method
get_server_for_tool
Get server for tool from stream_manager.
src/mcp_cli/chat/testing.py:117
↓ 3 callers
Method
get_tool_names
Get list of available tool names for plan validation. Returns: List of tool name strings.
src/mcp_cli/planning/context.py:79
↓ 3 callers
Method
get_unique_tools
(self)
tests/chat/test_chat_context.py:72
↓ 3 callers
Function
handle_chat_mode_for_testing
Launch chat mode for testing with stream_manager. Separated from main function to keep it clean. Args: stream_manager: Test str
src/mcp_cli/chat/chat_handler.py:302
↓ 3 callers
Function
handle_interrupt_command
Handle the /interrupt command with streaming awareness. Args: ui: UI manager instance Returns: True if command was hand
src/mcp_cli/chat/chat_handler.py:640
↓ 3 callers
Method
is_runtime_provider
Check if a provider was added at runtime.
src/mcp_cli/model_management/model_manager.py:205
↓ 3 callers
Function
is_set
Check if environment variable is set. Args: var: EnvVar enum member Returns: True if variable is set (even if empty string)
src/mcp_cli/config/env_vars.py:118
↓ 3 callers
Method
is_tool_enabled
Check if a tool is enabled (not disabled).
src/mcp_cli/tools/filter.py:75
↓ 3 callers
Method
is_tool_enabled
Check if a tool is enabled.
src/mcp_cli/tools/manager.py:1071
↓ 3 callers
Function
labelForView
(viewId)
src/mcp_cli/dashboard/static/js/views.js:68
↓ 3 callers
Method
load_async
Async load from file (future-proof for async I/O).
src/mcp_cli/config/models.py:172
↓ 3 callers
Method
load_checkpoint
Load execution checkpoint for resume.
src/mcp_cli/planning/executor.py:800
↓ 3 callers
Function
makeDraggable
(el, callbacks)
src/mcp_cli/dashboard/static/js/utils.js:20
↓ 3 callers
Function
make_callbacks
Create progress callbacks that print step progress.
examples/planning/plan_execution_demo.py:172
↓ 3 callers
Method
on_app_closed
Notify dashboard that an MCP App closed.
src/mcp_cli/dashboard/bridge.py:245
↓ 3 callers
Method
peek
Return pending attachments without clearing.
src/mcp_cli/chat/attachments.py:117
↓ 3 callers
Method
print_assistant_message
(self, content, elapsed)
tests/chat/test_conversation.py:32
↓ 3 callers
Method
print_tool_call
Print tool call notification before execution. Note: This is called but the output is immediately cleared by streaming display. The a
src/mcp_cli/chat/ui_manager.py:219
↓ 3 callers
Function
process_url
Build an image_url content block from a URL (no download).
src/mcp_cli/chat/attachments.py:319
↓ 3 callers
Method
publish_artifact
Publish an artifact to the shared store.
src/mcp_cli/agents/manager.py:260
↓ 3 callers
Method
push_tool_input
Push tool input to the app (sent after initialization).
src/mcp_cli/apps/bridge.py:290
↓ 3 callers
Method
read_resource
Read a resource by URI. Args: uri: Resource URI to read (e.g. ui://tool-demo/chart) server_name: Optional server name
src/mcp_cli/tools/manager.py:1274
↓ 3 callers
Method
regenerate_system_prompt
Regenerate system prompt with current tools.
src/mcp_cli/chat/chat_context.py:795
↓ 3 callers
Method
reload
Reload configuration from file.
src/mcp_cli/config/config_manager.py:401
↓ 3 callers
Method
restore_signal_handlers
Restore original signal handlers.
src/mcp_cli/chat/ui_manager.py:334
↓ 3 callers
Method
revalidate_tools
Revalidate all tools and return summary.
src/mcp_cli/tools/manager.py:1123
↓ 3 callers
Function
run_and_time
Execute a plan and return (result, plan_start_time).
examples/planning/plan_parallel_demo.py:283
↓ 3 callers
Function
save_group
Save all agents' configs and sessions to disk. Parameters ---------- agent_manager: The AgentManager whose agents to save. de
src/mcp_cli/agents/group_store.py:30
↓ 3 callers
Method
send_message
Send a message from one agent to another. The message is injected into the target agent's input queue as a system-annotated prompt.
src/mcp_cli/agents/manager.py:225
↓ 3 callers
Function
setPendingApprovalCallId
(val)
src/mcp_cli/dashboard/static/js/state.js:82
↓ 3 callers
Function
setViewRegistry
(val)
src/mcp_cli/dashboard/static/js/state.js:68
← previous
next →
601–700 of 6,849, ranked by callers