MCPcopy Create free account

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

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

↓ 11 callersMethodon_app_launched
Notify dashboard that an MCP App launched — embed as panel.
src/mcp_cli/dashboard/bridge.py:223
↓ 11 callersFunctionrun_agent_loop
Run a headless chat loop for a spawned agent. Similar to ``_run_enhanced_chat_loop`` in ``chat_handler.py`` but: * No terminal I/O — reads p
src/mcp_cli/agents/loop.py:17
↓ 11 callersMethodsave_session
Save current session to disk. Returns: Path to saved file, or None on failure.
src/mcp_cli/chat/chat_context.py:850
↓ 11 callersMethodshould_confirm_tool
Determine if a tool should be confirmed based on preferences. Args: tool_name: Name of the tool Returns: Tru
src/mcp_cli/utils/preferences.py:340
↓ 11 callersMethodswitch_model
Switch to a specific provider and model.
src/mcp_cli/model_management/model_manager.py:360
↓ 11 callersFunctionvalidate_server_config
Validate server configuration and return status and errors. Args: cfg: MCPConfig instance servers: List of server names to v
src/mcp_cli/config/config_manager.py:497
↓ 10 callersMethod_build_activity_history
Build activity stream events from conversation history. Pairs assistant ``tool_calls`` with their corresponding ``tool``-role result
src/mcp_cli/dashboard/bridge.py:994
↓ 10 callersFunction_extract_tool_call
Extract a tool call from an LLM completion response. Handles three response formats: 1. chuk_llm native: {"response": ..., "tool_calls": [...
src/mcp_cli/planning/executor.py:967
↓ 10 callersMethod_get_chuk_llm_client
Get a client from chuk_llm for standard providers. Args: provider: Provider name model: Model name (optional
src/mcp_cli/model_management/client_factory.py:134
↓ 10 callersMethod_initialize_stream_manager
Initialize StreamManager with detected transport type. ENHANCED: Initializes different transport types in parallel for faster startup.
src/mcp_cli/tools/manager.py:218
↓ 10 callersMethod_make_app_info
()
tests/dashboard/test_bridge_extended.py:952
↓ 10 callersFunction_make_context
Return a mock ChatContext.
tests/agents/test_loop.py:19
↓ 10 callersFunction_make_tool_manager
( execute_result=None, tools_for_llm=None )
tests/commands/cmd/test_cmd_command.py:24
↓ 10 callersFunction_make_ui
(agent_id: str = "test-agent")
tests/agents/test_loop.py:30
↓ 10 callersFunction_maybe_await
Await a result if it's a coroutine, otherwise return it directly. Allows callbacks to be either sync or async functions.
src/mcp_cli/planning/executor.py:954
↓ 10 callersFunction_resolve_variables
Resolve ${var} references in tool arguments. Supports: - ${variable} — direct replacement - ${variable.field} — nested dict access -
src/mcp_cli/planning/executor.py:885
↓ 10 callersFunction_safe_close
Close the ToolManager, swallowing any exception during shutdown.
src/mcp_cli/run_command.py:140
↓ 10 callersFunctionbroadcastToViewType
(viewType, type, payload)
src/mcp_cli/dashboard/static/js/views.js:254
↓ 10 callersMethodfinish_tool_execution
Finish tool execution display. Args: result: Tool execution result success: Whether execution succeeded
src/mcp_cli/chat/ui_manager.py:286
↓ 10 callersMethodformat_tool_response
(self, response)
tests/tools/test_dynamic_tools.py:28
↓ 10 callersMethodget_available_providers
Get list of available providers.
src/mcp_cli/core/model_resolver.py:115
↓ 10 callersFunctionget_env
Get environment variable value (type-safe). Args: var: EnvVar enum member default: Default value if not set Returns:
src/mcp_cli/config/env_vars.py:77
↓ 10 callersFunctionget_env_bool
Get environment variable as boolean. Args: var: EnvVar enum member default: Default value if not set Returns: Boolea
src/mcp_cli/config/env_vars.py:180
↓ 10 callersFunctionget_server_icon
Determine server icon based on MCP capabilities. Args: capabilities: Server capabilities dictionary tool_count: Number of to
src/mcp_cli/commands/utils.py:73
↓ 10 callersMethodget_theme
Get current theme.
src/mcp_cli/utils/preferences.py:221
↓ 10 callersFunctionhandle_memory_tool
Execute a memory tool and return the result as a string.
src/mcp_cli/memory/tools.py:103
↓ 10 callersFunctionheader
(n: int, title: str)
examples/safety/health_vm_multimodal_demo.py:40
↓ 10 callersMethodinitialize
Initialize or get the configuration. Priority order: 1. Explicit config_path if provided 2. server_config.json in cu
src/mcp_cli/config/config_manager.py:349
↓ 10 callersFunctioninitialize_config
Convenience function to initialize the configuration. Args: config_path: Path to configuration file Returns: The initia
src/mcp_cli/config/config_manager.py:428
↓ 10 callersMethodinterrupt_streaming
Interrupt current streaming operation.
src/mcp_cli/chat/ui_manager.py:319
↓ 10 callersMethodis_trusted_domain
Check if a server URL belongs to a trusted domain. Args: server_url: The server URL to check (may be None for STDIO servers)
src/mcp_cli/utils/preferences.py:372
↓ 10 callersMethodload_session
Load a saved session into the current context. Args: session_id: Session ID to load Returns: True if loaded
src/mcp_cli/chat/chat_context.py:887
↓ 10 callersMethodlog_error
Log error message.
diagnostics/chained_tools_diagnostic.py:527
↓ 10 callersFunctionrun_command_sync
Synchronous convenience wrapper (used by `mcp-cli` entry-point and tests). Spins up its own event-loop when necessary.
src/mcp_cli/run_command.py:226
↓ 10 callersMethodset_tool_confirmation
Set confirmation for a specific tool. Args: tool_name: Name of the tool setting: 'always', 'never', 'ask', or None (r
src/mcp_cli/utils/preferences.py:295
↓ 10 callersMethodstart_tool_execution
Start tool execution display. Args: tool_name: Name of tool being executed arguments: Tool arguments
src/mcp_cli/chat/ui_manager.py:200
↓ 10 callersMethodto_dict
Convert to dict.
src/mcp_cli/chat/models.py:272
↓ 10 callersMethodupdate_custom_provider
Update an existing custom provider. Args: name: Provider name to update api_base: New API base URL (optional)
src/mcp_cli/utils/preferences.py:664
↓ 10 callersMethodvalidate_parameters
Validate parameters before execution. Returns: Error message if validation fails, None if valid.
src/mcp_cli/commands/base.py:150
↓ 9 callersFunction_build_server_section
Build the server/tool categorization section for the system prompt. Args: server_tool_groups: Typed list of server-to-tools groupings.
src/mcp_cli/chat/system_prompt.py:13
↓ 9 callersFunction_classify_kind
Map MIME type to a UI kind: image, text, audio, or unknown.
src/mcp_cli/chat/attachments.py:425
↓ 9 callersMethod_extract_tool_call_info
Extract tool name, arguments, and call ID from a tool call.
src/mcp_cli/chat/tool_processor.py:1214
↓ 9 callersMethod_handle_streaming_completion
Handle streaming completion with UI integration. Args: tools: Tool definitions to pass to the LLM, or None to disable tools
src/mcp_cli/chat/conversation.py:703
↓ 9 callersMethod_handle_vm_tool
Execute a VM tool (page_fault or search_pages) via MemoryManager. VM tools are internal memory operations that bypass the MCP ToolManager
src/mcp_cli/chat/tool_processor.py:843
↓ 9 callersFunction_healthy_result
(name: str = "srv")
tests/commands/servers/test_health_command.py:27
↓ 9 callersFunction_is_oauth_error
Check if an error message indicates OAuth authorization is needed.
src/mcp_cli/tools/manager.py:71
↓ 9 callersMethod_page
( self, page_id="pg1", modality_value=None, compression_name=None, con
tests/chat/test_tool_processor.py:748
↓ 9 callersMethod_parse_arguments
Parse raw arguments into a dictionary.
src/mcp_cli/chat/tool_processor.py:1248
↓ 9 callersMethod_proc
(self)
tests/chat/test_tool_processor.py:745
↓ 9 callersMethod_process_request
( self, connection: ServerConnection, request: Request )
src/mcp_cli/dashboard/server.py:184
↓ 9 callersMethod_record_token_usage
Record token usage from a completion into the tracker.
src/mcp_cli/chat/conversation.py:129
↓ 9 callersFunction_req
(path: str)
tests/dashboard/test_server_extra.py:22
↓ 9 callersMethod_should_confirm_tool
Check if tool requires user confirmation.
src/mcp_cli/chat/tool_processor.py:1596
↓ 9 callersMethod_to_serializable
Convert an object to a JSON-serializable form.
src/mcp_cli/apps/bridge.py:339
↓ 9 callersFunction_validate_step
Validate a plan step against available tools.
src/mcp_cli/planning/tools.py:401
↓ 9 callersMethod_vm_filter_events
Filter events to fit within VM token budget. Groups events into logical turns (starting at each user message), estimates token cost p
src/mcp_cli/chat/chat_context.py:343
↓ 9 callersMethodbroadcast
Public broadcast method for external callers (e.g. commands).
src/mcp_cli/dashboard/bridge.py:115
↓ 9 callersMethodclear
Clear the staging area.
src/mcp_cli/chat/attachments.py:121
↓ 9 callersMethodcreate_oauth_refresh_callback
Create OAuth token refresh callback for StreamManager. Args: http_servers: List of HTTP server configs sse_servers: L
src/mcp_cli/tools/config_loader.py:299
↓ 9 callersMethoddelete
Delete a saved session. Args: session_id: Session ID to delete Returns: True if deleted, False if not found
src/mcp_cli/chat/session_store.py:156
↓ 9 callersFunctiondetect_server_types
Detect which servers are HTTP vs STDIO based on configuration. Args: cfg: MCPConfig instance servers: List of server names t
src/mcp_cli/config/config_manager.py:442
↓ 9 callersMethodfind_tool_by_name
Find a tool by its name (handles both simple and namespaced names). Uses O(1) dict lookup instead of linear scanning.
src/mcp_cli/chat/chat_context.py:594
↓ 9 callersFunctionformat_capabilities
Format server capabilities as readable string. Args: capabilities: Capabilities dictionary from server Returns: Formatt
src/mcp_cli/commands/utils.py:9
↓ 9 callersFunctionformat_content_preview
Format content for inline preview. Args: content: Full content max_len: Maximum length to show Returns: Formatted pr
src/mcp_cli/display/formatters.py:173
↓ 9 callersFunctionget_config
Convenience function to get the current configuration. Returns: The current MCPConfig Raises: RuntimeError: If config h
src/mcp_cli/config/config_manager.py:414
↓ 9 callersMethodget_config
Get the current configuration. Raises: RuntimeError: If config hasn't been initialized
src/mcp_cli/config/config_manager.py:385
↓ 9 callersFunctionrebuildAddPanelMenu
()
src/mcp_cli/dashboard/static/js/layout.js:446
↓ 9 callersMethodrecord_turn
Record a turn's token usage.
src/mcp_cli/chat/token_tracker.py:50
↓ 9 callersMethodremove_custom_provider
Remove a custom provider. Args: name: Provider name to remove Returns: True if provider was removed, False i
src/mcp_cli/utils/preferences.py:637
↓ 9 callersMethodresolve
Resolve effective provider and model from user input. Args: provider: User-specified provider (optional) mod
src/mcp_cli/core/model_resolver.py:25
↓ 9 callersFunctionsave_user_layout
Save a named layout to disk, replacing any existing layout with the same name.
src/mcp_cli/dashboard/config.py:140
↓ 9 callersFunctionsection
(title: str)
examples/planning/plan_basics_demo.py:146
↓ 9 callersMethodset_input_queue
Register the asyncio.Queue that the chat loop reads from. Browser messages (USER_MESSAGE / USER_COMMAND) are put on this queue so the
src/mcp_cli/dashboard/bridge.py:334
↓ 9 callersMethodstart
Find an available port and start the server. Returns the bound port.
src/mcp_cli/dashboard/server.py:66
↓ 9 callersMethodstart_tool_execution
(self, tool_name, arguments)
tests/chat/test_tool_processor.py:62
↓ 9 callersMethodstop_streaming_response
Stop streaming response.
src/mcp_cli/chat/ui_manager.py:309
↓ 9 callersMethodswitch_provider
Switch to a different provider and its default model.
src/mcp_cli/model_management/model_manager.py:354
↓ 9 callersMethodvalidate_single_tool
Validate a single tool for LLM compatibility.
src/mcp_cli/tools/manager.py:1095
↓ 8 callersMethod__new__
(cls)
src/mcp_cli/config/discovery.py:30
↓ 8 callersMethod_build_config_state
Build CONFIG_STATE payload from current ChatContext.
src/mcp_cli/dashboard/bridge.py:829
↓ 8 callersMethod_build_conversation_history
Build conversation history payload from ChatContext. Returns only user/assistant messages — tool-role messages are excluded from the
src/mcp_cli/dashboard/bridge.py:941
↓ 8 callersMethod_check_and_launch_app
Check if a tool has an MCP Apps UI and launch/update it. Handles two cases per the MCP Apps spec: 1. Tool has resourceUri — reuse an
src/mcp_cli/chat/tool_processor.py:993
↓ 8 callersMethod_finish_tool_calls
Signal UI that all tool calls are complete.
src/mcp_cli/chat/tool_processor.py:1199
↓ 8 callersMethod_get_provider_models
Get models from chuk_llm for a provider. Tries multiple strategies: 1. Get from chuk_llm's cached provider info 2. If only "*
src/mcp_cli/commands/providers/models.py:251
↓ 8 callersMethod_get_server_url_for_tool
Look up the server URL for a tool using cached context data.
src/mcp_cli/chat/tool_processor.py:1574
↓ 8 callersMethod_handle_browser_message
( self, raw: str, ws: ServerConnection | None = None )
src/mcp_cli/dashboard/server.py:152
↓ 8 callersMethod_make_processor
(self)
tests/chat/test_tool_processor_extended.py:650
↓ 8 callersMethod_make_processor
(self)
tests/chat/test_tool_processor.py:621
↓ 8 callersMethod_make_record
(self, msg: str)
tests/config/test_logging_redaction.py:31
↓ 8 callersMethod_on_tool_result
Callback when a tool completes. ENHANCED: Now includes value binding system for dataflow tracking. - Binds numeric results to $vN ide
src/mcp_cli/chat/tool_processor.py:459
↓ 8 callersMethod_parse_action
Extract the action string from kwargs/args.
src/mcp_cli/commands/memory/memory.py:139
↓ 8 callersFunction_parse_tool_call_entry
Parse a single tool call entry from either dict or object format. Args: tc: A tool call entry (dict or object with function attribute).
src/mcp_cli/planning/executor.py:1014
↓ 8 callersMethod_proc
(self)
tests/chat/test_tool_processor.py:2336
↓ 8 callersFunction_recv
Receive one message with a timeout.
tests/dashboard/test_integration.py:34
↓ 8 callersMethod_start_health_polling
Start background health polling if configured.
src/mcp_cli/chat/conversation.py:105
↓ 8 callersMethod_strip_old_reasoning_content
Keep reasoning_content only on the most recent assistant message. Thinking models (DeepSeek, Kimi) produce 100K+ chars of reasoning per
src/mcp_cli/chat/conversation.py:983
↓ 8 callersFunction_try_parse_json
Try to parse a string as JSON. Returns parsed value or original string.
src/mcp_cli/planning/backends.py:379
↓ 8 callersFunctionattachment_descriptor
Build a dashboard-safe descriptor for an Attachment. Keeps payloads small by applying thresholds: - Images < *inline_threshold* bytes: includ
src/mcp_cli/chat/attachments.py:436
↓ 8 callersFunctiondetect_image_urls
Find image URLs in message text.
src/mcp_cli/chat/attachments.py:369
↓ 8 callersFunctiondetect_mime_type
Detect MIME type from file extension.
src/mcp_cli/chat/attachments.py:135
← previousnext →201–300 of 6,849, ranked by callers