MCPcopy Create free account

hub / github.com/IBM/mcp-cli / functions

Functions6,849 in github.com/IBM/mcp-cli

↓ 4 callersFunctionshow_server_status
Display current server status.
examples/servers/server_management_e2e.py:27
↓ 4 callersMethodspawn_agent
Spawn a new agent from *config*. Returns the agent_id.
src/mcp_cli/agents/manager.py:64
↓ 4 callersMethodstop_agent
Stop an agent. Returns True if it existed.
src/mcp_cli/agents/manager.py:170
↓ 4 callersMethodswitch_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 callersFunctionthemeToCSS
(t)
src/mcp_cli/dashboard/static/js/theme.js:23
↓ 4 callersMethodto_dict
Convert to dict for backwards compatibility using enums.
src/mcp_cli/chat/streaming_handler.py:72
↓ 4 callersFunctionupdatePanelHeader
(panel)
src/mcp_cli/dashboard/static/js/views.js:176
↓ 4 callersMethodupdate_reasoning
Update reasoning content during streaming. Args: reasoning: Reasoning/thinking content from model
src/mcp_cli/display/manager.py:143
↓ 4 callersMethodvalidate_transport
Validate transport type.
src/mcp_cli/commands/models/responses.py:40
↓ 3 callersMethod__init__
Initialize command error. Args: message: Error message command: Command name that failed (optional)
src/mcp_cli/commands/exceptions.py:10
↓ 3 callersMethod_build_server_tool_groups
Build server-to-tools grouping for the system prompt.
src/mcp_cli/chat/chat_context.py:543
↓ 3 callersMethod_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 callersMethod_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 callersMethod_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 callersFunction_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 callersFunction_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 callersMethod_get_tool_int
Get integer tool config from CLI/env (type-safe!).
src/mcp_cli/config/runtime.py:195
↓ 3 callersMethod_handle_non_streaming
Fallback for non-streaming clients.
src/mcp_cli/chat/streaming_handler.py:508
↓ 3 callersMethod_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 callersMethod_list_tools
List available tools.
src/mcp_cli/commands/tools/execute_tool.py:381
↓ 3 callersFunction_make_agent_manager
Create a mock AgentManager with the given agent configs.
tests/agents/test_group_store.py:24
↓ 3 callersFunction_make_context
Build a minimal mock context for ChatUIManager.
tests/chat/test_ui_manager_coverage.py:19
↓ 3 callersMethod_make_ctx_with_staging
()
tests/dashboard/test_bridge_extended.py:860
↓ 3 callersMethod_make_mock_tool_state
Create a mock tool state for soft block repair tests.
tests/chat/test_tool_processor_extended.py:1573
↓ 3 callersMethod_make_processor
(self)
tests/utils/test_trusted_domains.py:109
↓ 3 callersMethod_make_router_bridge
(self, agent_id: str = "routed-agent")
tests/dashboard/test_bridge_extended.py:811
↓ 3 callersMethod_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 callersMethod_proc
(self)
tests/chat/test_tool_processor.py:2427
↓ 3 callersMethod_proc_with_map
(self, tool_map, server_info_list)
tests/chat/test_tool_processor.py:1819
↓ 3 callersMethod_process_chunk
Process a single streaming chunk. Args: raw_chunk: Raw chunk from LLM provider
src/mcp_cli/chat/streaming_handler.py:470
↓ 3 callersMethod_render_streaming_status
Render current streaming status with debounced reasoning preview.
src/mcp_cli/display/manager.py:396
↓ 3 callersMethod_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 callersMethod_safe_json_dumps
Serialise *obj* to JSON, falling back to _to_serializable on error.
src/mcp_cli/apps/bridge.py:318
↓ 3 callersMethod_setup
(self)
tests/chat/test_tool_processor_extended.py:1566
↓ 3 callersFunction_setup_signal_handlers
Setup signal handlers for clean shutdown.
src/mcp_cli/main.py:1767
↓ 3 callersMethod_start_refresh_loop
Start background refresh loop.
src/mcp_cli/display/manager.py:336
↓ 3 callersMethod_stop_refresh_loop
Stop background refresh loop.
src/mcp_cli/display/manager.py:345
↓ 3 callersMethod_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 callersMethodadd_tool_message
Add a tool response message to conversation history.
src/mcp_cli/context/context_manager.py:233
↓ 3 callersMethodadd_trusted_domain
Add a trusted domain. Args: domain: Domain to trust (e.g. 'example.com')
src/mcp_cli/utils/preferences.py:402
↓ 3 callersFunctionapplyTheme
(t)
src/mcp_cli/dashboard/static/js/theme.js:35
↓ 3 callersMethodassistant_message
Create an assistant message.
src/mcp_cli/tools/models.py:558
↓ 3 callersMethodbroadcast
Send a JSON message to all connected WebSocket clients.
src/mcp_cli/dashboard/server.py:91
↓ 3 callersFunctionbroadcastToViews
(type, payload)
src/mcp_cli/dashboard/static/js/views.js:231
↓ 3 callersFunctionbuildOverflowMenu
()
src/mcp_cli/dashboard/static/js/toolbar.js:12
↓ 3 callersMethodcleanup
Cleanup UI manager resources.
src/mcp_cli/chat/ui_manager.py:415
↓ 3 callersMethodclear_cache
Clear the client cache.
src/mcp_cli/model_management/client_factory.py:163
↓ 3 callersFunctiondelete_user_layout
Delete a named user layout. Returns True if it existed.
src/mcp_cli/dashboard/config.py:148
↓ 3 callersMethoddiscover_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 callersMethoddrain
Return all pending attachments and clear the staging area.
src/mcp_cli/chat/attachments.py:111
↓ 3 callersFunctionensure_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 callersFunctionesc
(s)
src/mcp_cli/dashboard/static/js/utils.js:6
↓ 3 callersFunctionexportConversation
(format)
src/mcp_cli/dashboard/static/js/export.js:9
↓ 3 callersMethodformat_output
Format the command output for a specific mode. Can be overridden for mode-specific formatting.
src/mcp_cli/commands/base.py:138
↓ 3 callersMethodfrom_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 callersFunctiongetOrCreateView
(viewId)
src/mcp_cli/dashboard/static/js/views.js:80
↓ 3 callersFunctiongetOverlay
()
src/mcp_cli/dashboard/static/js/layout.js:22
↓ 3 callersMethodget_adapted_tools_for_llm
Get tools adapted for LLM with name mapping.
src/mcp_cli/tools/manager.py:1038
↓ 3 callersMethodget_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 callersMethodget_agent_status
Return status dict for a single agent, or None.
src/mcp_cli/agents/manager.py:285
↓ 3 callersMethodget_all_tools
(self)
tests/tools/test_dynamic_tools.py:25
↓ 3 callersMethodget_arguments_dict
Parse arguments JSON string to dict.
src/mcp_cli/chat/models.py:58
↓ 3 callersMethodget_config_file
Get default config file path.
src/mcp_cli/utils/preferences.py:500
↓ 3 callersMethodget_conversation_length
Get conversation length (excluding system prompt).
src/mcp_cli/chat/chat_context.py:780
↓ 3 callersMethodget_current_server
Get the currently active server.
src/mcp_cli/context/context_manager.py:115
↓ 3 callersMethodget_disabled_tools_by_reason
Get disabled tools by specific reason - accepts enum or string!
src/mcp_cli/tools/filter.py:106
↓ 3 callersMethodget_history_file
Get path to chat history file.
src/mcp_cli/utils/preferences.py:514
↓ 3 callersFunctionget_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 callersFunctionget_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 callersMethodget_server_for_tool
Get server for tool from stream_manager.
src/mcp_cli/chat/testing.py:117
↓ 3 callersMethodget_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 callersMethodget_unique_tools
(self)
tests/chat/test_chat_context.py:72
↓ 3 callersFunctionhandle_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 callersFunctionhandle_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 callersMethodis_runtime_provider
Check if a provider was added at runtime.
src/mcp_cli/model_management/model_manager.py:205
↓ 3 callersFunctionis_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 callersMethodis_tool_enabled
Check if a tool is enabled (not disabled).
src/mcp_cli/tools/filter.py:75
↓ 3 callersMethodis_tool_enabled
Check if a tool is enabled.
src/mcp_cli/tools/manager.py:1071
↓ 3 callersFunctionlabelForView
(viewId)
src/mcp_cli/dashboard/static/js/views.js:68
↓ 3 callersMethodload_async
Async load from file (future-proof for async I/O).
src/mcp_cli/config/models.py:172
↓ 3 callersMethodload_checkpoint
Load execution checkpoint for resume.
src/mcp_cli/planning/executor.py:800
↓ 3 callersFunctionmakeDraggable
(el, callbacks)
src/mcp_cli/dashboard/static/js/utils.js:20
↓ 3 callersFunctionmake_callbacks
Create progress callbacks that print step progress.
examples/planning/plan_execution_demo.py:172
↓ 3 callersMethodon_app_closed
Notify dashboard that an MCP App closed.
src/mcp_cli/dashboard/bridge.py:245
↓ 3 callersMethodpeek
Return pending attachments without clearing.
src/mcp_cli/chat/attachments.py:117
↓ 3 callersMethodprint_assistant_message
(self, content, elapsed)
tests/chat/test_conversation.py:32
↓ 3 callersMethodprint_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 callersFunctionprocess_url
Build an image_url content block from a URL (no download).
src/mcp_cli/chat/attachments.py:319
↓ 3 callersMethodpublish_artifact
Publish an artifact to the shared store.
src/mcp_cli/agents/manager.py:260
↓ 3 callersMethodpush_tool_input
Push tool input to the app (sent after initialization).
src/mcp_cli/apps/bridge.py:290
↓ 3 callersMethodread_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 callersMethodregenerate_system_prompt
Regenerate system prompt with current tools.
src/mcp_cli/chat/chat_context.py:795
↓ 3 callersMethodreload
Reload configuration from file.
src/mcp_cli/config/config_manager.py:401
↓ 3 callersMethodrestore_signal_handlers
Restore original signal handlers.
src/mcp_cli/chat/ui_manager.py:334
↓ 3 callersMethodrevalidate_tools
Revalidate all tools and return summary.
src/mcp_cli/tools/manager.py:1123
↓ 3 callersFunctionrun_and_time
Execute a plan and return (result, plan_start_time).
examples/planning/plan_parallel_demo.py:283
↓ 3 callersFunctionsave_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 callersMethodsend_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 callersFunctionsetPendingApprovalCallId
(val)
src/mcp_cli/dashboard/static/js/state.js:82
↓ 3 callersFunctionsetViewRegistry
(val)
src/mcp_cli/dashboard/static/js/state.js:68
← previousnext →601–700 of 6,849, ranked by callers