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
Method
_add_assistant_message_with_tool_calls
Add assistant message with all tool calls to history.
src/mcp_cli/chat/tool_processor.py:1452
↓ 4 callers
Method
_build_plan_from_dict
Build a UniversalPlan from a plan dict. Args: plan_dict: Dict with title, steps, tool_calls, dependencies. graph: Gra
src/mcp_cli/planning/context.py:319
↓ 4 callers
Function
_close_and_raise
Return a side_effect that closes the coroutine then raises *exc*.
tests/cli/test_main_coverage.py:1592
↓ 4 callers
Function
_close_file_handlers
Close and remove all file handlers from the root logger.
tests/config/test_logging_redaction.py:19
↓ 4 callers
Function
_create_tool_manager
Create a ToolManager instance using factory or default constructor. This pattern allows tests to inject mock ToolManagers without dynamic getattr
src/mcp_cli/run_command.py:54
↓ 4 callers
Method
_do_clear_display
Internal method to clear display (no lock, called with lock held). Clears the current status display. Should only be called when rend
src/mcp_cli/display/manager.py:258
↓ 4 callers
Function
_envelope
(msg_type: str, payload: dict[str, Any])
src/mcp_cli/dashboard/router.py:31
↓ 4 callers
Method
_execute_command
Execute a command with context. Args: command: The unified command to execute. kwargs: Parameters from Typer
src/mcp_cli/adapters/cli.py:124
↓ 4 callers
Method
_execute_tool_call_batch
Execute a batch of tool calls and append results to messages.
src/mcp_cli/commands/cmd/cmd.py:399
↓ 4 callers
Method
_extract_tool_name
Extract tool name from tool definition.
src/mcp_cli/tools/filter.py:221
↓ 4 callers
Method
_fetch_http_resource
Fetch HTML content directly from an HTTP/HTTPS URL.
src/mcp_cli/apps/host.py:423
↓ 4 callers
Method
_find_available_port
Find an available port starting from _next_port.
src/mcp_cli/apps/host.py:403
↓ 4 callers
Method
_find_port
(preferred: int)
src/mcp_cli/dashboard/server.py:269
↓ 4 callers
Method
_get_ollama_models
Get models from Ollama CLI.
src/mcp_cli/commands/providers/models.py:224
↓ 4 callers
Method
_get_planning_context
Get or create PlanningContext.
src/mcp_cli/commands/plan/plan.py:150
↓ 4 callers
Method
_get_store
Get the MemoryScopeStore from chat context.
src/mcp_cli/commands/memory/memory.py:398
↓ 4 callers
Method
_get_tool_bool
Get boolean tool config from CLI/env (type-safe!).
src/mcp_cli/config/runtime.py:181
↓ 4 callers
Method
_handle_focus_agent
Browser client changed which agent it's viewing.
src/mcp_cli/dashboard/router.py:211
↓ 4 callers
Method
_handle_request_sessions
Browser requested list of saved sessions.
src/mcp_cli/dashboard/bridge.py:589
↓ 4 callers
Method
_handle_sigint
Handle SIGINT (Ctrl+C) gracefully.
src/mcp_cli/chat/ui_manager.py:339
↓ 4 callers
Method
_initialize_tools
Test-specific tool initialization.
src/mcp_cli/chat/testing.py:77
↓ 4 callers
Method
_initialize_tools
Initialize tool discovery and adaptation.
src/mcp_cli/chat/chat_context.py:566
↓ 4 callers
Method
_invalidate_caches
Invalidate tool index and LLM tools cache, forcing rebuild on next access.
src/mcp_cli/tools/manager.py:513
↓ 4 callers
Function
_make_bridge
()
tests/apps/test_session.py:35
↓ 4 callers
Function
_make_chat_context
( save_path: str | None = "/tmp/sess.json", load_result: bool = True, has_save: bool = True, h
tests/commands/sessions/test_sessions_command.py:46
↓ 4 callers
Method
_make_cmd_with_choices
Create a command with a 'format' parameter that has choices.
tests/adapters/test_interactive_adapter_extended.py:332
↓ 4 callers
Function
_make_context
Build a mock chat_context with tool_memory.memory.tool_log.
tests/commands/definitions/test_tool_history_command.py:48
↓ 4 callers
Method
_make_ctx_with_history
Build a mock ChatContext with the given conversation_history.
tests/dashboard/test_bridge_extended.py:372
↓ 4 callers
Function
_make_entry
Build a fake ToolLogEntry-like object.
tests/commands/definitions/test_tool_history_command.py:29
↓ 4 callers
Function
_make_mock_tool_manager
Return a mock ToolManager with async helpers wired up.
tests/context/test_context_manager.py:60
↓ 4 callers
Method
_make_model_manager
(self, responses: list[dict])
tests/planning/test_executor.py:1369
↓ 4 callers
Method
_make_processor
(self)
tests/chat/test_tool_processor_extended.py:608
↓ 4 callers
Method
_make_processor
(self)
tests/chat/test_tool_processor_extended.py:1373
↓ 4 callers
Function
_make_running_app
( tool_name: str = "my_tool", url: str = "http://localhost:8080", state_value: str = "running",
tests/commands/apps/test_apps_command.py:40
↓ 4 callers
Function
_make_tool
Create a minimal ToolInfo for testing.
tests/context/test_context_manager.py:49
↓ 4 callers
Method
_on_client_disconnected
Notify all registered bridges and clean up per-client state.
src/mcp_cli/dashboard/router.py:312
↓ 4 callers
Method
_register_group
Register a command group with Typer.
src/mcp_cli/adapters/cli.py:108
↓ 4 callers
Function
_reset_registry
Clear the registry — for testing only.
src/mcp_cli/chat/agent_tool_state.py:39
↓ 4 callers
Method
_resolve_timeout
Resolve timeout from all sources with priority (type-safe!).
src/mcp_cli/config/runtime.py:80
↓ 4 callers
Method
_resolve_token_placeholders
Replace token placeholders with actual tokens. Supports two formats: - Legacy: {{token:provider}} - for OAuth tokens - New: $
src/mcp_cli/tools/config_loader.py:173
↓ 4 callers
Function
_resolve_value
Resolve a single value, recursing into dicts and lists.
src/mcp_cli/planning/executor.py:908
↓ 4 callers
Function
_run_provider_command
Shared function to run provider commands.
src/mcp_cli/main.py:887
↓ 4 callers
Method
_save
Save scope data to disk with file locking.
src/mcp_cli/memory/store.py:190
↓ 4 callers
Method
_session_path
Get the file path for a session.
src/mcp_cli/chat/session_store.py:66
↓ 4 callers
Method
_store_tool_result_as_vm_page
Store a tool result as a VM page so it survives eviction. Without this, tool results (weather forecasts, geocoding data, etc.) exist
src/mcp_cli/chat/tool_processor.py:964
↓ 4 callers
Function
_text_response
Build a mock LLM response with text only (step done). Uses the chuk_llm native format (top-level response key).
tests/planning/test_agentic_loop_integration.py:174
↓ 4 callers
Method
broadcast_from_agent
Broadcast a message from a specific agent. If no clients have subscriptions configured, broadcasts to all (backward compat). Otherwis
src/mcp_cli/dashboard/router.py:159
↓ 4 callers
Method
broadcast_global
Broadcast a message not scoped to any agent (e.g. AGENT_LIST).
src/mcp_cli/dashboard/router.py:180
↓ 4 callers
Function
closeDrawer
(el)
src/mcp_cli/dashboard/static/js/utils.js:62
↓ 4 callers
Function
delete_provider_token
Delete a provider API key from secure storage. Note: This only removes from storage. Environment variables are unaffected. Args:
src/mcp_cli/auth/provider_tokens.py:201
↓ 4 callers
Method
disable_tool
Disable a tool.
src/mcp_cli/tools/manager.py:1059
↓ 4 callers
Method
drain_context_notices
()
tests/chat/test_conversation.py:1915
↓ 4 callers
Method
enable_tool
Re-enable a previously disabled tool.
src/mcp_cli/tools/filter.py:90
↓ 4 callers
Method
estimate_tokens
Estimate token count from text using chars/4 heuristic.
src/mcp_cli/chat/token_tracker.py:55
↓ 4 callers
Method
execute
Execute a subcommand or the default action.
src/mcp_cli/commands/base.py:183
↓ 4 callers
Method
execute
Execute the health command.
src/mcp_cli/commands/servers/health.py:60
↓ 4 callers
Method
execute_tool
(self, tool_name, arguments, namespace=None, timeout=None)
examples/planning/plan_llm_demo.py:99
↓ 4 callers
Function
findPanelHostingView
(viewId)
src/mcp_cli/dashboard/static/js/views.js:135
↓ 4 callers
Method
find_server
Find a server by name.
src/mcp_cli/context/context_manager.py:123
↓ 4 callers
Method
forget
Remove a memory entry by key. Returns True if found and removed.
src/mcp_cli/memory/store.py:103
↓ 4 callers
Method
format_for_system_prompt
Format all memories as a markdown section for the system prompt. Returns empty string if no entries exist.
src/mcp_cli/memory/store.py:133
↓ 4 callers
Method
format_summary
Format a human-readable summary of token usage.
src/mcp_cli/chat/token_tracker.py:61
↓ 4 callers
Function
format_tool_for_display
Format a tool for display in UI.
src/mcp_cli/display/formatting.py:11
↓ 4 callers
Method
from_state
Create a display update from current streaming state.
src/mcp_cli/display/models.py:351
↓ 4 callers
Method
get_all_timeouts
Get all resolved timeouts as immutable config.
src/mcp_cli/config/runtime.py:122
↓ 4 callers
Method
get_available_models
Get available models for a provider. NO HARDCODED MODELS - All come from configuration or discovery. Args: prov
src/mcp_cli/model_management/model_manager.py:213
↓ 4 callers
Function
get_available_models_quick
Quick function to get available models after discovery. Args: provider: Provider name (uses DEFAULT_PROVIDER if None) Returns:
src/mcp_cli/config/discovery.py:173
↓ 4 callers
Method
get_available_providers
Get list of all available providers. Returns: List of provider names (sorted alphabetically)
src/mcp_cli/model_management/model_manager.py:104
↓ 4 callers
Method
get_bridge_by_uri
Get the bridge for a running app by its resource URI. Multiple tools can share the same resourceUri (e.g. show_video and play_video b
src/mcp_cli/apps/host.py:216
↓ 4 callers
Method
get_context
Get the current application context. Raises: RuntimeError: If context hasn't been initialized
src/mcp_cli/context/context_manager.py:279
↓ 4 callers
Function
get_env_int
Get environment variable as integer. Args: var: EnvVar enum member default: Default value if not set or invalid Returns:
src/mcp_cli/config/env_vars.py:134
↓ 4 callers
Method
get_last_servers
Get last used servers.
src/mcp_cli/utils/preferences.py:491
↓ 4 callers
Method
get_middleware_status
Get middleware status for diagnostics. Returns Pydantic model dict with retry, circuit breaker, and rate limiting status.
src/mcp_cli/tools/manager.py:926
↓ 4 callers
Method
get_recent_tool_history
Get recent tool call history from procedural memory.
src/mcp_cli/chat/chat_context.py:815
↓ 4 callers
Method
get_running_apps
Get list of currently running apps.
src/mcp_cli/apps/host.py:208
↓ 4 callers
Method
get_server_for_tool
(self, tool_name: str)
tests/chat/test_chat_context.py:87
↓ 4 callers
Method
get_tool_catalog
Get the available tool catalog for LLM plan generation. Args: provider: LLM provider format for tool adaptation. Returns
src/mcp_cli/planning/context.py:59
↓ 4 callers
Method
get_verbose
Get verbose setting.
src/mcp_cli/utils/preferences.py:245
↓ 4 callers
Function
header
(n: int, title: str)
examples/safety/vm_relaxed_mode_demo.py:319
↓ 4 callers
Function
isSidebarView
(viewId)
src/mcp_cli/dashboard/static/js/state.js:20
↓ 4 callers
Function
list_all_provider_tokens
List all provider tokens stored in secure storage. This function checks all known providers from chuk_llm and shows which ones have toke
src/mcp_cli/auth/provider_tokens.py:258
↓ 4 callers
Method
list_commands
List all registered commands. Args: mode: Optional mode filter to only list commands that support this mode. Re
src/mcp_cli/commands/registry.py:96
↓ 4 callers
Function
list_groups
List all saved groups. Returns ------- list[dict] List of ``{group_id, description, created_at, agent_count, path}``
src/mcp_cli/agents/group_store.py:124
↓ 4 callers
Function
load_runtime_config_async
Async load runtime configuration. Args: config_path: Path to config file (default: server_config.json) cli_overrides: CLI argumen
src/mcp_cli/config/__init__.py:278
↓ 4 callers
Method
log_debug
Log debug message.
diagnostics/chained_tools_diagnostic.py:543
↓ 4 callers
Method
on_client_disconnected
Called when a browser client disconnects. If no clients remain, cancel all pending approval futures so the tool processor doesn't han
src/mcp_cli/dashboard/bridge.py:119
↓ 4 callers
Method
on_shutdown
Cancel all pending approval futures. Call before stopping server.
src/mcp_cli/dashboard/bridge.py:94
↓ 4 callers
Function
on_tool_start
(tool_name: str, arguments: dict)
src/mcp_cli/planning/tools.py:287
↓ 4 callers
Function
openDrawer
(el)
src/mcp_cli/dashboard/static/js/utils.js:55
↓ 4 callers
Method
print_user_message
Display user message. Args: message: User message to display
src/mcp_cli/chat/ui_manager.py:174
↓ 4 callers
Function
remove_agent_tool_state
Remove tool state for an agent (call when the agent is stopped).
src/mcp_cli/chat/agent_tool_state.py:34
↓ 4 callers
Method
save
Save the current configuration to file.
src/mcp_cli/config/config_manager.py:396
↓ 4 callers
Method
save_to_file
Save configuration to JSON file.
src/mcp_cli/config/config_manager.py:246
↓ 4 callers
Function
section
(title: str)
examples/planning/plan_parallel_demo.py:250
↓ 4 callers
Function
sendToActivityStream
(type, payload)
src/mcp_cli/dashboard/static/js/views.js:240
↓ 4 callers
Function
setFocusedAgentId
(val)
src/mcp_cli/dashboard/static/js/state.js:73
↓ 4 callers
Method
set_models
Replace all models and update default. Args: models: New list of model IDs
src/mcp_cli/model_management/provider.py:57
↓ 4 callers
Method
set_risk_threshold
Set whether to confirm tools at a specific risk level. Args: risk_level: 'safe', 'moderate', or 'high' should_confirm
src/mcp_cli/utils/preferences.py:459
↓ 4 callers
Method
set_server_disabled
Set server disabled state in preferences. Args: server_name: Name of the server disabled: Whether server should be di
src/mcp_cli/utils/preferences.py:535
↓ 4 callers
Function
setup_chuk_llm_environment
Set up environment variables for ChukLLM discovery. MUST be called before any chuk_llm imports.
src/mcp_cli/config/discovery.py:156
← previous
next →
501–600 of 6,849, ranked by callers