MCPcopy Create free account

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

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

↓ 6 callersFunctionget_memory_tools_as_dicts
Return OpenAI-format tool definitions for memory scope tools.
src/mcp_cli/memory/tools.py:15
↓ 6 callersFunctionget_provider_token_with_hierarchy
Get provider API key using hierarchical resolution. Hierarchy: 1. Environment variable (highest priority) 2. Token storage (via Toke
src/mcp_cli/auth/provider_tokens.py:59
↓ 6 callersMethodget_runtime_server
Get a specific runtime server configuration.
src/mcp_cli/utils/preferences.py:595
↓ 6 callersMethodget_runtime_servers
Get all runtime servers.
src/mcp_cli/utils/preferences.py:591
↓ 6 callersMethodget_server_for_tool
Get the server name for a given tool.
src/mcp_cli/tools/manager.py:1234
↓ 6 callersMethodget_streams
Get active streams from StreamManager.
src/mcp_cli/tools/manager.py:1248
↓ 6 callersMethodget_tool_config_value
Get tool configuration value with priority resolution. Args: key: Configuration key (e.g., "include_tools", "confirm_too
src/mcp_cli/config/config_manager.py:642
↓ 6 callersMethodget_tool_confirmation_mode
Get the global tool confirmation mode.
src/mcp_cli/utils/preferences.py:266
↓ 6 callersMethodget_tool_risk_level
Determine the risk level of a tool based on patterns. Args: tool_name: Name of the tool Returns: Risk level
src/mcp_cli/utils/preferences.py:319
↓ 6 callersMethodinitialize
Initialize or get the application context.
src/mcp_cli/context/context_manager.py:264
↓ 6 callersMethodinitialize
Initialize tools, session, and procedural memory. Args: on_progress: Optional callback for progress updates during startup
src/mcp_cli/chat/chat_context.py:449
↓ 6 callersFunctioninject_logging_env_vars
Stub for removed inject_logging_env_vars function.
tests/config/test_cli_options.py:19
↓ 6 callersMethodinject_tool_message
Inject a tool-related message into conversation history. Tool messages (assistant with tool_calls, tool results) have special struct
src/mcp_cli/chat/chat_context.py:707
↓ 6 callersMethodis_runtime_server
Check if a server is a runtime server.
src/mcp_cli/utils/preferences.py:599
↓ 6 callersMethodlist_plans
List all saved plans as dicts. Returns: List of plan summaries with id, title, step count.
src/mcp_cli/planning/context.py:119
↓ 6 callersMethodlist_prompts
List available prompts from servers.
src/mcp_cli/tools/manager.py:1303
↓ 6 callersMethodlist_resources
List available resources from servers.
src/mcp_cli/tools/manager.py:1261
↓ 6 callersMethodlist_sessions
List all saved sessions. Returns: List of session metadata, sorted by updated_at (newest first)
src/mcp_cli/chat/session_store.py:138
↓ 6 callersMethodload_sync
Synchronous load (for backward compat during transition).
src/mcp_cli/config/models.py:188
↓ 6 callersMethodlog_error
Error logging with rich formatting if available.
diagnostics/cli_tools_diagnostic.py:97
↓ 6 callersMethodon_plan_update
Broadcast a plan update to the dashboard.
src/mcp_cli/dashboard/bridge.py:803
↓ 6 callersFunctionregister_all_commands
Register all built-in commands with the unified registry. This should be called once during application startup.
src/mcp_cli/commands/__init__.py:66
↓ 6 callersMethodresult
(self)
tests/chat/test_tool_processor.py:1461
↓ 6 callersFunctionrun_command
Initialise the ToolManager and context, then call *async_command(...)*. The *async_command* may itself be `async` **or** synchronous – both
src/mcp_cli/run_command.py:151
↓ 6 callersFunctionsection
(title: str)
examples/planning/plan_execution_demo.py:166
↓ 6 callersFunctionsection
(title: str)
examples/planning/plan_guard_demo.py:60
↓ 6 callersMethodset_tool_call_callback
Register a callback to execute a browser-requested tool call. The callback receives (tool_name, arguments) and should execute the too
src/mcp_cli/dashboard/bridge.py:342
↓ 6 callersMethodstop_all
Stop all managed agents.
src/mcp_cli/agents/manager.py:318
↓ 5 callersMethod_add_cancelled_tool_to_history
Add cancelled tool call to conversation history.
src/mcp_cli/chat/tool_processor.py:1525
↓ 5 callersMethod_assistant_msg
(self, content)
tests/chat/test_chat_context.py:2187
↓ 5 callersFunction_build_plan_system_prompt
Build the system prompt for LLM plan generation. Reuses the same logic as plan.py's _build_plan_system_prompt.
src/mcp_cli/planning/tools.py:346
↓ 5 callersMethod_check_array_schemas
Recursively check for array schemas missing 'items' property.
src/mcp_cli/tools/validation.py:83
↓ 5 callersFunction_check_guards
Run mcp-cli's guard checks before tool execution. Returns an error message if blocked, None if allowed.
src/mcp_cli/planning/backends.py:183
↓ 5 callersMethod_diagnose_server
Run health check on a server and return a diagnostic string.
src/mcp_cli/tools/manager.py:850
↓ 5 callersFunction_display_plan
Display a plan in the terminal with DAG visualization.
src/mcp_cli/commands/plan/plan.py:465
↓ 5 callersFunction_extract_error_message
Extract a human-readable error message from an MCP error result.
src/mcp_cli/planning/backends.py:285
↓ 5 callersMethod_extract_raw_result
Unwrap middleware/ToolCallResult wrappers to get the raw MCP result.
src/mcp_cli/apps/bridge.py:326
↓ 5 callersMethod_fetch_models_from_api
Fetch models from provider's /models API endpoint. Works for OpenAI-compatible APIs (deepseek, openai, etc.)
src/mcp_cli/commands/providers/models.py:293
↓ 5 callersMethod_get_server_timeout
Resolve tool timeout for a server: per-server → global → default. Args: server_name: Server namespace/name, or None for global de
src/mcp_cli/tools/manager.py:592
↓ 5 callersMethod_get_tool_list
Get tool list from CLI/env (type-safe!).
src/mcp_cli/config/runtime.py:167
↓ 5 callersMethod_handle_tool_approval_response
Handle approval/denial response from the dashboard.
src/mcp_cli/dashboard/bridge.py:791
↓ 5 callersMethod_interrupt_now
Immediate interrupt (compatibility method).
src/mcp_cli/chat/ui_manager.py:422
↓ 5 callersMethod_is_connection_error
Check if an error message indicates a connection problem.
src/mcp_cli/tools/manager.py:845
↓ 5 callersMethod_make_att
(self, name: str = "test.png")
tests/chat/test_attachments.py:151
↓ 5 callersFunction_make_context
(provider="openai", model="gpt-4")
tests/commands/cmd/test_cmd_command.py:39
↓ 5 callersMethod_make_context_with_tools
Create a minimal ChatContext-like object with _tool_index populated.
tests/tools/test_tool_index.py:148
↓ 5 callersMethod_make_ctx_with_history
(self, messages)
tests/dashboard/test_bridge_extended.py:457
↓ 5 callersMethod_make_model_manager
Create a mock ModelManager with a sequence of LLM responses. Each response can have 'tool_calls' (LLM wants to call a tool) or just '
tests/planning/test_executor.py:793
↓ 5 callersMethod_make_rc
Build a RuntimeConfig mock with distinct timeout values.
tests/chat/test_streaming_handler.py:772
↓ 5 callersFunction_make_session_meta
( session_id: str = "sess-001", updated_at: str = "2024-01-01T00:00:00+00:00", provider: str = "op
tests/commands/sessions/test_sessions_command.py:23
↓ 5 callersFunction_make_tool
Create a fake ToolInfo-like object.
tests/chat/test_testing.py:14
↓ 5 callersFunction_now
()
src/mcp_cli/dashboard/bridge.py:46
↓ 5 callersMethod_parse_content_repr
Parse a string like "content=[{'type': 'text', 'text': '4.2426'}]".
src/mcp_cli/chat/tool_processor.py:1365
↓ 5 callersFunction_parse_tool_call
Extract (tool_name, arguments_str, call_id) from a tool_call.
src/mcp_cli/commands/cmd/cmd.py:457
↓ 5 callersMethod_proc
(self)
tests/chat/test_tool_processor.py:1475
↓ 5 callersFunction_serialize_variables
Make variables JSON-serializable. Truncates large values to prevent bloated checkpoint files.
src/mcp_cli/planning/executor.py:1129
↓ 5 callersMethod_show_command_menu
Show available slash commands when just '/' is typed.
src/mcp_cli/adapters/chat.py:31
↓ 5 callersFunction_spawn_mock_agent
Spawn a mock agent, returns the manager.
tests/agents/test_manager.py:209
↓ 5 callersMethod_stop_health_polling
Stop background health polling.
src/mcp_cli/chat/conversation.py:110
↓ 5 callersFunction_summarize_variables
Build a compact summary of current variables for the LLM.
src/mcp_cli/planning/executor.py:1042
↓ 5 callersMethod_text_response
(self, text: str = "Step complete.")
tests/planning/test_executor.py:1392
↓ 5 callersMethod_tool_call_response
(self, name: str, args: dict)
tests/planning/test_executor.py:1376
↓ 5 callersMethod_ws_handler
(self, ws: ServerConnection)
src/mcp_cli/dashboard/server.py:120
↓ 5 callersMethodadd_chunk
Process and display a new chunk. Args: raw_chunk: Raw chunk data from LLM provider
src/mcp_cli/display/manager.py:122
↓ 5 callersMethodadd_models
Add models to the provider and update default if needed. Args: models: List of model IDs to add
src/mcp_cli/model_management/provider.py:46
↓ 5 callersMethodauto_save_check
Increment auto-save counter and save when threshold is reached.
src/mcp_cli/chat/chat_context.py:948
↓ 5 callersFunctioncli_entry
Thin wrapper so `uv run mcp-cli chat` (or `interactive`) is minimal.
src/mcp_cli/run_command.py:303
↓ 5 callersMethodclose_app
Close a specific app and its server.
src/mcp_cli/apps/host.py:181
↓ 5 callersMethodcreate_for_testing
Factory for test contexts.
src/mcp_cli/chat/testing.py:57
↓ 5 callersMethoddelete_plan
Delete a plan by ID (or unique prefix). Args: plan_id: The plan's UUID or a unique prefix. Returns: True if
src/mcp_cli/planning/context.py:300
↓ 5 callersFunctionfail
(msg: str)
examples/safety/vm_relaxed_mode_demo.py:329
↓ 5 callersMethodfilter_search_results
Filter search results based on state. Parameterized tools (normal_cdf, etc.) are blocked/downranked until computed values exist in st
src/mcp_cli/tools/dynamic_tools.py:156
↓ 5 callersMethodfind_tool
Find a tool by name.
src/mcp_cli/context/context_manager.py:130
↓ 5 callersMethodfix_openai_compatibility
Fix OpenAI compatibility issues by removing unsupported properties. Returns: Fixed tool definition
src/mcp_cli/tools/validation.py:165
↓ 5 callersMethodget_adapted_tools_for_llm
(self, provider: str)
tests/planning/test_tools.py:38
↓ 5 callersFunctionget_agent_tools_as_dicts
Return OpenAI-format tool definitions for agent orchestration.
src/mcp_cli/agents/tools.py:40
↓ 5 callersMethodget_any_ready_bridge
Get a bridge for any running app (preferring READY state). Used to route ui_patch results from tools that don't carry a resourceUri t
src/mcp_cli/apps/host.py:228
↓ 5 callersMethodget_confirm_tools
Get tool confirmation setting (legacy compatibility).
src/mcp_cli/utils/preferences.py:254
↓ 5 callersMethodget_tool_config
Get resolved tool configuration.
src/mcp_cli/config/runtime.py:142
↓ 5 callersMethodget_trusted_domains
Get the list of trusted domains.
src/mcp_cli/utils/preferences.py:398
↓ 5 callersMethodget_user_input
Get user input with async prompt. Args: prompt: Prompt text to display Returns: User input string
src/mcp_cli/chat/ui_manager.py:150
↓ 5 callersFunctionisFocusedAgent
(msg)
src/mcp_cli/dashboard/static/js/websocket.js:140
↓ 5 callersMethodlist_agents
Return status dicts for all managed agents.
src/mcp_cli/agents/manager.py:300
↓ 5 callersMethodlog_success
Log success message.
diagnostics/chained_tools_diagnostic.py:519
↓ 5 callersMethodon_token
Called for each streamed LLM token (high-volume — only used by agent terminal).
src/mcp_cli/dashboard/bridge.py:208
↓ 5 callersFunctionprocess_browser_file
Build an ``Attachment`` from browser-uploaded file data. Parameters ---------- filename: Original filename from the browser ``Fil
src/mcp_cli/chat/attachments.py:249
↓ 5 callersMethodregister_with_typer
Register all CLI-compatible commands with a Typer app. Args: app: The Typer application to register commands with.
src/mcp_cli/adapters/cli.py:35
↓ 5 callersFunctionrenderAgentTabs
()
src/mcp_cli/dashboard/static/js/websocket.js:80
↓ 5 callersFunctionrender_tool_execution_status
Render tool execution status with argument preview. Args: tool: Tool execution state spinner: Current spinner frame elaps
src/mcp_cli/display/renderers.py:54
↓ 5 callersMethodset_auto_fix_enabled
Enable or disable auto-fixing.
src/mcp_cli/tools/filter.py:248
↓ 5 callersMethodshow_user_message
Display a user message. Args: message: User message content
src/mcp_cli/display/manager.py:318
↓ 5 callersFunctiontest_mcp_cli_command
Test an mcp-cli command and return success status and output.
diagnostics/cli_command_diagnostic.py:12
↓ 5 callersMethodto_dict
Convert to dict for LLM API calls. Handles provider-specific requirements: - OpenAI: Requires 'content' field in assistant messages w
src/mcp_cli/chat/models.py:152
↓ 5 callersMethodto_display_string
Format capabilities as readable string.
src/mcp_cli/commands/models/server.py:126
↓ 5 callersFunctiontrigger_discovery_after_setup
Trigger discovery after environment setup. Returns: Number of new functions discovered
src/mcp_cli/config/discovery.py:164
↓ 5 callersMethoduser_message
Create a user message.
src/mcp_cli/tools/models.py:553
↓ 5 callersMethodvalidate_and_fix_tool
Comprehensive tool validation and fixing. Returns: Tuple of (is_valid, fixed_tool_def, error_message)
src/mcp_cli/tools/validation.py:228
↓ 5 callersMethodvalidate_model
Validate if a model exists for a provider. Args: model: Model name to validate provider: Provider name (uses
src/mcp_cli/core/model_resolver.py:80
↓ 5 callersMethodvalidate_provider
Validate if a provider exists. Args: provider: Provider name to validate Returns: True if provider
src/mcp_cli/core/model_resolver.py:68
↓ 4 callersMethod__init__
(self, stream_manager=None, tool_manager=None)
tests/chat/test_tool_processor.py:176
← previousnext →401–500 of 6,849, ranked by callers