MCPcopy Create free account

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

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

↓ 913 callersMethodget
Get timeout by enum (type-safe).
src/mcp_cli/config/models.py:74
↓ 595 callersMethodexecute
(self, **kwargs)
tests/commands/definitions/test_help_coverage.py:52
↓ 215 callersMethodget
Get a command by name. Args: name: Command name (can include subcommand like 'tools list'). mode: Optional m
src/mcp_cli/commands/registry.py:62
↓ 175 callersMethodregister
Register a command. Args: command: The command to register. group: Deprecated, ignored. Groups register as r
src/mcp_cli/commands/registry.py:40
↓ 92 callersMethodsuccess
Create a successful validation result.
src/mcp_cli/tools/models.py:407
↓ 89 callersMethodcheck
(self, condition: bool, description: str)
examples/safety/health_vm_multimodal_demo.py:66
↓ 82 callersFunctiondemonstrate_command
Run a command and show the result.
examples/commands/command_system_demo.py:165
↓ 72 callersFunction_make_command
()
tests/commands/memory/test_memory_command.py:20
↓ 67 callersMethodprocess_conversation
Process the conversation loop, handling tool calls and responses with streaming. Args: max_turns: Maximum number of conversation
src/mcp_cli/chat/conversation.py:157
↓ 66 callersMethodhandle_command
Handle slash command. Args: user_input: User input string Returns: True if handled as command, False otherwi
src/mcp_cli/chat/ui_manager.py:430
↓ 65 callersFunction_make_chat_context
Build a minimal mock chat_context.
tests/commands/memory/test_memory_command.py:24
↓ 62 callersMethodcreate
Factory method for convenient creation. Args: tool_manager: Tool management interface provider: Provider to
src/mcp_cli/chat/chat_context.py:165
↓ 62 callersMethodmodel_dump
(self)
tests/apps/test_bridge.py:539
↓ 62 callersMethodrun
Run the demo application.
examples/commands/slash_commands_demo.py:328
↓ 61 callersMethodadd_chunk
Process a new chunk and update state.
src/mcp_cli/display/models.py:221
↓ 59 callersFunction_make_model_manager
Create a mock ModelManager with standard methods.
tests/cli/test_main_coverage.py:63
↓ 51 callersFunction_make_bridge
(agent_id: str = "test-agent")
tests/dashboard/test_bridge_extended.py:27
↓ 50 callersMethodprocess_tool_calls
Execute tool_calls in parallel using ToolManager.stream_execute_tools(). Args: tool_calls: List of tool call objects fro
src/mcp_cli/chat/tool_processor.py:97
↓ 43 callersMethod_extract_result_value
Extract the actual value from MCP response structures. MCP responses can be nested in various ways: 1. Direct value (number, string)
src/mcp_cli/chat/tool_processor.py:1265
↓ 43 callersFunctionrich_to_prompt_toolkit
Convert Rich color names to prompt_toolkit format. Args: color_str: Rich color string (e.g., "bright_white", "dim", "bold yellow")
src/mcp_cli/display/color_converter.py:11
↓ 42 callersFunction_make_initialized_ctx
Sync helper — returns a ChatContext that has had _system_prompt set.
tests/chat/test_chat_context.py:1205
↓ 42 callersMethodload
Load session data from disk. If the file isn't found in the agent-namespaced directory, checks the flat root directory for backward c
src/mcp_cli/chat/session_store.py:89
↓ 41 callersMethod_initialize_session
Initialize the session with system prompt and context management.
src/mcp_cli/chat/chat_context.py:483
↓ 40 callersMethodexecute_plan
Execute a plan with parallel batch execution. Steps are grouped into topological batches. Steps within a batch have no dependencies o
src/mcp_cli/planning/executor.py:164
↓ 38 callersMethodclose
(self)
tests/cli/test_run_command.py:50
↓ 38 callersMethodfrom_dict
Create from dict.
src/mcp_cli/chat/models.py:94
↓ 37 callersMethodregister_agent
Register a bridge for the given agent_id.
src/mcp_cli/dashboard/router.py:104
↓ 37 callersMethodremember
Store or update a memory entry (upsert by key).
src/mcp_cli/memory/store.py:49
↓ 35 callersFunction_envelope
(msg_type: str, payload: dict[str, Any])
src/mcp_cli/dashboard/bridge.py:37
↓ 35 callersFunction_make_bridge
Return a mock DashboardBridge.
tests/dashboard/test_router.py:33
↓ 35 callersFunction_make_server
Return a mock DashboardServer.
tests/dashboard/test_router.py:19
↓ 35 callersMethodclear
Clear all entries in a scope. Returns count of removed entries.
src/mcp_cli/memory/store.py:120
↓ 34 callersMethodadd_subcommand
Add a subcommand to this group.
src/mcp_cli/commands/base.py:177
↓ 33 callersMethodexecute_tool
Execute tool and return ToolCallResult. When middleware is enabled (default), CTP handles: - Retry with exponential backoff for trans
src/mcp_cli/tools/manager.py:709
↓ 33 callersMethodstart_streaming
Start a new streaming operation.
src/mcp_cli/display/manager.py:110
↓ 32 callersMethodinitialize
(self, namespace: str = "stdio")
tests/cli/test_run_command.py:46
↓ 31 callersMethod_parse_arguments
Parse command line arguments into kwargs. Simple argument parser that handles: - Flags: --flag or -f - Options: --op
src/mcp_cli/adapters/chat.py:194
↓ 31 callersFunctionget_context
Convenience function to get the current application context. Returns: The current ApplicationContext Raises: RuntimeErr
src/mcp_cli/context/context_manager.py:295
↓ 31 callersMethodload
Load and parse MCP config file with token resolution (sync). For async contexts, prefer load_async() to avoid blocking the event loop.
src/mcp_cli/tools/config_loader.py:77
↓ 30 callersMethod_is_polling_tool
Check if a tool is a polling/status tool that should be exempt from loop detection. Polling tools (like render_status, check_progress, etc.)
src/mcp_cli/chat/conversation.py:116
↓ 30 callersFunction_make_ui
Build a mock ChatUIManager.
tests/chat/test_chat_handler_coverage.py:14
↓ 30 callersMethod_on_browser_message
Route an inbound browser message to the appropriate bridge.
src/mcp_cli/dashboard/router.py:253
↓ 30 callersMethodget_completions
Get command completions for partial input. Args: partial_text: The partially typed command. Returns:
src/mcp_cli/adapters/chat.py:245
↓ 29 callersMethoddetect_server_types
Detect HTTP/SSE/STDIO servers from config and populate server lists.
src/mcp_cli/tools/config_loader.py:254
↓ 28 callersFunction_make_bridge
()
tests/apps/test_bridge.py:68
↓ 28 callersMethodclose
Close StreamManager and cleanup.
src/mcp_cli/tools/manager.py:373
↓ 28 callersMethodlog_finding
Log a finding at a specific layer.
diagnostics/deep_timeout_diagnostic.py:43
↓ 28 callersFunctionsetup_logging
Configure centralized logging for MCP CLI and all dependencies. Args: level: Base logging level (DEBUG, INFO, WARNING, ERROR, CRITIC
src/mcp_cli/config/logging.py:73
↓ 28 callersFunctionshow_tool_execution_result
Show final tool execution result. Args: tool: Tool execution state
src/mcp_cli/display/renderers.py:133
↓ 28 callersMethodstop_streaming
Stop streaming and return final content. Args: interrupted: Whether streaming was interrupted by user Returns:
src/mcp_cli/display/manager.py:155
↓ 27 callersMethod_broadcast
Dispatch a broadcast through the router or directly to the server.
src/mcp_cli/dashboard/bridge.py:108
↓ 27 callersMethod_register_discovered_tools
Register tools found by discovery operations. Extracts tool names from search_tools, list_tools, or get_tool_schema results and regis
src/mcp_cli/chat/tool_processor.py:1610
↓ 27 callersMethodget_active_provider
Get active provider.
src/mcp_cli/utils/preferences.py:473
↓ 27 callersMethodload_from_file
Alias for load_sync for backward compatibility.
src/mcp_cli/config/models.py:199
↓ 26 callersMethodupdate
Update context with keyword arguments. This method provides a simple way to update multiple context attributes.
src/mcp_cli/context/context_manager.py:199
↓ 25 callersFunction_make_bridge
Return a (bridge, mock_server) pair.
tests/dashboard/test_bridge.py:21
↓ 25 callersFunction_make_ctx
Build a mock ChatContext.
tests/chat/test_chat_handler_coverage.py:37
↓ 25 callersMethodhandle_message
Handle a JSON-RPC message from the browser. Returns a JSON-RPC response string, or *None* for notifications.
src/mcp_cli/apps/bridge.py:73
↓ 25 callersFunctionmake_tool_call
(name="echo", args='{"msg": "hi"}', call_id="call_0")
tests/chat/test_tool_processor_extended.py:245
↓ 24 callersFunction_make_display
Build a mock StreamingDisplayManager.
tests/chat/test_streaming_handler.py:347
↓ 24 callersMethod_make_processor
(self)
tests/chat/test_tool_processor_extended.py:467
↓ 24 callersFunctioncli_execute
Convenience function to execute a unified command from CLI. This is a simplified interface for main.py to use when migrating from legacy
src/mcp_cli/adapters/cli.py:164
↓ 24 callersMethodinitialize
Initialize by parsing config, setting up OAuth, and creating StreamManager. Args: namespace: Default namespace for tools
src/mcp_cli/tools/manager.py:168
↓ 24 callersMethodsave_preferences
Save preferences to file.
src/mcp_cli/utils/preferences.py:216
↓ 24 callersFunctionsendToBridge
(msg)
src/mcp_cli/dashboard/static/js/websocket.js:66
↓ 23 callersFunction_make_convo
Build a mock ConversationProcessor.
tests/chat/test_chat_handler_coverage.py:51
↓ 23 callersFunctionget_preference_manager
Get or create the global preference manager instance.
src/mcp_cli/utils/preferences.py:743
↓ 22 callersFunction_extract_result
Extract a clean result value from ToolCallResult.result. MCP tool results come in several forms depending on the execution path: 1. CTP midd
src/mcp_cli/planning/backends.py:306
↓ 22 callersMethod_try_parse_number
Try to parse a string as a number, return original if not possible.
src/mcp_cli/chat/tool_processor.py:1383
↓ 21 callersMethodadd_user_message
Add user message to conversation. Accepts plain text (str) or multi-modal content blocks (list[dict]). Multi-modal content is injecte
src/mcp_cli/chat/chat_context.py:662
↓ 21 callersMethodget_all_tools
Get all tools, converted to mcp-cli ToolInfo model.
src/mcp_cli/tools/manager.py:391
↓ 21 callersMethodget_plan
Load a plan by ID (or unique prefix), returned as a dict. Reads from the saved JSON file directly to preserve depends_on fields that
src/mcp_cli/planning/context.py:174
↓ 20 callersMethod_add_tool_result_to_history
Add tool result to conversation history.
src/mcp_cli/chat/tool_processor.py:1470
↓ 20 callersFunctiongenerate_system_prompt
Generate a concise system prompt for the assistant. Note: Tool definitions are passed via the API's tools parameter, so we don't duplicate th
src/mcp_cli/chat/system_prompt.py:51
↓ 20 callersMethodset
Set a value in context (for compatibility with dict-based code).
src/mcp_cli/context/context_manager.py:150
↓ 19 callersFunction_make_store
(sessions=None, delete_result: bool = True)
tests/commands/sessions/test_sessions_command.py:39
↓ 19 callersMethodadd_custom_provider
Add a custom OpenAI-compatible provider. API keys should be set via environment variables. Default env var pattern: {PROVIDER_NAME}_A
src/mcp_cli/utils/preferences.py:603
↓ 19 callersMethodfilter
(self, record: logging.LogRecord)
src/mcp_cli/config/logging.py:52
↓ 19 callersMethodget_server_info
Get information about connected servers.
src/mcp_cli/tools/manager.py:1159
↓ 19 callersMethodget_timeout
Get timeout with priority resolution (sync).
src/mcp_cli/config/runtime.py:67
↓ 19 callersMethodget_tool_by_name
Get a tool by name, optionally filtering by namespace. Uses O(1) index lookup instead of scanning all tools.
src/mcp_cli/tools/manager.py:463
↓ 19 callersMethodhandle_command
Handle a slash command. Returns True if should continue.
examples/commands/slash_commands_demo.py:186
↓ 19 callersFunctioninfo
(msg: str)
examples/safety/vm_relaxed_mode_demo.py:333
↓ 19 callersFunctioninfo
(msg: str)
examples/safety/health_vm_multimodal_demo.py:54
↓ 19 callersMethodis_server_disabled
Check if a server is disabled in preferences. Args: server_name: Name of the server to check Returns: True i
src/mcp_cli/utils/preferences.py:524
↓ 19 callersMethodprocess_chunk_tool_calls
Process tool calls from a chunk and accumulate them. Args: chunk_tool_calls: Tool calls extracted from current chunk
src/mcp_cli/chat/streaming_handler.py:96
↓ 19 callersFunctionprocess_local_file
Read a local file and build content blocks. Raises ------ FileNotFoundError If the file does not exist. ValueError If
src/mcp_cli/chat/attachments.py:145
↓ 19 callersFunctionprocess_options
Process CLI options. Sets up environment, triggers discovery, and parses config. ENHANCED: Now validates server configuration and provides be
src/mcp_cli/config/cli_options.py:104
↓ 19 callersMethodsave_plan_from_dict
Build a UniversalPlan from a dict and save it. Saves the plan with dependency information preserved. The upstream PlanRegistry's to_d
src/mcp_cli/planning/context.py:237
↓ 19 callersFunctionset_tool_manager_factory
Set a custom ToolManager factory for testing. Args: factory: A callable that creates ToolManager instances, or None to reset.
src/mcp_cli/run_command.py:44
↓ 19 callersFunctionstream_execute_tools
Execute multiple tool calls in parallel, yielding results as they complete. This is the streaming version of execute_tools_parallel - result
src/mcp_cli/tools/execution.py:146
↓ 19 callersFunctionsyncViewPositions
()
src/mcp_cli/dashboard/static/js/layout.js:347
↓ 19 callersMethodtest_command
Test a single command and report results.
examples/commands/command_system_e2e_demo.py:86
↓ 18 callersMethod_build_page_content_blocks
Build tool result content, using multi-block for multimodal pages. Returns a JSON string for text/structured, or a list of content blocks
src/mcp_cli/chat/tool_processor.py:614
↓ 18 callersFunction_make_context
(tool_manager=None)
tests/commands/apps/test_apps_command.py:68
↓ 18 callersFunction_make_mock_tool_state
Build a standard mock tool state.
tests/chat/test_conversation_extended.py:68
↓ 18 callersFunction_run_enhanced_chat_loop
Run the main chat loop with enhanced streaming support. Args: ui: UI manager with streaming coordination ctx: Chat context
src/mcp_cli/chat/chat_handler.py:416
↓ 18 callersMethod_serialise
Convert a value to a JSON-safe representation.
src/mcp_cli/dashboard/bridge.py:1114
↓ 18 callersMethod_start_server
Start a websockets server for this app.
src/mcp_cli/apps/host.py:250
↓ 18 callersMethod_track_transport_failures
Track transport failures for recovery detection.
src/mcp_cli/chat/tool_processor.py:1157
next →1–100 of 6,849, ranked by callers