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
Method
test_initialize_config_function
Test initialize_config module function.
tests/config/test_config_manager.py:417
Function
test_initialize_config_invalid_json
Test configuration initialization with invalid JSON.
tests/utils/test_config.py:87
Function
test_initialize_config_success
Test successful configuration initialization.
tests/utils/test_config.py:19
Method
test_initialize_context_and_get_context
(self)
tests/context/test_context_manager.py:459
Method
test_initialize_context_with_kwargs
(self)
tests/context/test_context_manager.py:465
Method
test_initialize_empty_config_calls_setup_empty
Lines 164-166: empty config triggers warning and _setup_empty_toolset.
tests/tools/test_tool_manager_extended.py:810
Function
test_initialize_failure
Test initialize handles errors.
tests/chat/test_chat_context.py:519
Method
test_initialize_idempotent
(self)
tests/context/test_context_manager.py:429
Method
test_initialize_loads_servers_and_tools
(self)
tests/context/test_context_manager.py:108
Method
test_initialize_method_exception
Test initialize method handles exceptions.
tests/tools/test_tool_manager.py:1219
Method
test_initialize_no_auto_current_when_multiple_servers
(self)
tests/context/test_context_manager.py:122
Method
test_initialize_no_config
Test initialize with no config.
tests/tools/test_tool_manager.py:830
Method
test_initialize_no_tool_manager
(self)
tests/context/test_context_manager.py:133
Function
test_initialize_no_tools_warning
Test initialize prints warning when no tools available.
tests/chat/test_chat_context.py:710
Method
test_initialize_stream_manager_no_servers
Test _initialize_stream_manager with no servers.
tests/tools/test_tool_manager.py:851
Method
test_initialize_stream_manager_returns_false
Line 173: success is False when _initialize_stream_manager fails.
tests/tools/test_tool_manager_extended.py:117
Method
test_initialize_stream_manager_sse_servers
Test _initialize_stream_manager with SSE servers.
tests/tools/test_tool_manager.py:1081
Method
test_initialize_stream_manager_stdio_servers
Test _initialize_stream_manager with STDIO servers.
tests/tools/test_tool_manager.py:1113
Method
test_initialize_stream_manager_with_http_servers
Test _initialize_stream_manager with HTTP servers.
tests/tools/test_tool_manager.py:860
Method
test_initialize_success_no_registry_attr
Lines 175-178: stream_manager without registry/processor attributes.
tests/tools/test_tool_manager_extended.py:89
Method
test_initialize_success_with_registry_and_processor
Lines 168-182: Successful init sets registry and processor from stream_manager.
tests/tools/test_tool_manager_extended.py:62
Method
test_initialize_tools_with_namespace
Tools with a namespace are indexed under both simple and qualified names.
tests/chat/test_chat_context.py:1665
Method
test_initialize_tools_without_namespace
Tools without a namespace are only indexed under simple name (covers 569->567 branch).
tests/chat/test_chat_context.py:1714
Method
test_initialize_with_cwd_file_priority
Test that cwd config takes priority over bundled.
tests/config/test_config_manager.py:791
Method
test_initialize_with_http_and_stdio
Test _initialize_stream_manager with HTTP and STDIO servers (parallel).
tests/tools/test_tool_manager.py:1149
Method
test_initialize_with_partial_failure
Test _initialize_stream_manager continues when some transports fail.
tests/tools/test_tool_manager.py:1189
Method
test_initialize_with_tool_manager
(self)
tests/context/test_context_manager.py:442
Method
test_initialize_without_path_no_cwd_file
Test initialize without path when no server_config.json in cwd.
tests/config/test_config_manager.py:772
Method
test_initialized_notification
(self)
tests/apps/test_bridge.py:177
Method
test_inject_assistant_message
inject_assistant_message adds SYSTEM/MESSAGE event.
tests/chat/test_chat_context.py:1353
Method
test_inject_assistant_message_in_history
inject_assistant_message content shows up in conversation_history.
tests/chat/test_chat_context.py:1375
Function
test_inject_failure_is_caught_by_finally
When inject_tool_message fails, the finally block fills missing results.
tests/chat/test_tool_processor.py:527
Method
test_inject_logging_normal_mode
Test logging injection in normal mode.
tests/config/test_cli_options.py:607
Method
test_inject_logging_quiet_mode
Test logging injection in quiet mode.
tests/config/test_cli_options.py:590
Method
test_inject_preserves_existing_env_vars
Test that existing env vars are not overwritten.
tests/config/test_cli_options.py:624
Method
test_inject_skips_http_servers
Test that HTTP servers (no command) don't get env vars injected.
tests/config/test_cli_options.py:645
Method
test_inject_tool_message
inject_tool_message stores a TOOL_CALL event.
tests/chat/test_chat_context.py:1387
Method
test_inject_tool_message_in_history
inject_tool_message shows up in conversation_history.
tests/chat/test_chat_context.py:1412
Method
test_inject_with_empty_servers
Test injection with config that has no servers.
tests/config/test_cli_options.py:665
Method
test_inject_with_none_config
Test that inject handles None config gracefully.
tests/config/test_cli_options.py:660
Method
test_input_disabled_flag
Test disabled flag in input.
tests/config/test_config_server_models.py:388
Method
test_input_file_not_found
(self, cmd)
tests/commands/cmd/test_cmd_command.py:230
Method
test_input_file_read
(self, cmd, tmp_path)
tests/commands/cmd/test_cmd_command.py:241
Method
test_input_ignores_extra_fields
Test that extra fields are ignored.
tests/config/test_config_server_models.py:375
Method
test_input_with_dict_oauth
Test input with OAuth as dict.
tests/config/test_config_server_models.py:334
Method
test_input_with_env_and_headers
Test input with env vars and headers.
tests/config/test_config_server_models.py:365
Method
test_input_with_oauth_object
Test input with OAuth as OAuthConfig object.
tests/config/test_config_server_models.py:349
Method
test_inspection_error_disables_streaming
Test that inspection errors disable streaming gracefully.
tests/chat/test_conversation.py:784
Method
test_integer_preserved
Integer values are returned as-is.
tests/planning/test_backends.py:534
Method
test_integer_returns_integer
(self)
tests/chat/test_tool_processor.py:1974
Method
test_integer_string
(self)
tests/chat/test_tool_processor_extended.py:656
Method
test_integer_string_returns_float
(self)
tests/chat/test_tool_processor.py:2342
Method
test_integer_value
Test formatting of integer value.
tests/display/test_formatters.py:82
Method
test_interactive_adapter_preserves_quotes
Test that InteractiveCommandAdapter preserves quotes in commands.
tests/test_command_consistency.py:75
Method
test_interactive_command_basic
(self, mock_theme, mock_opts, mock_run, runner)
tests/cli/test_main_coverage.py:227
Method
test_interactive_help
(self, runner)
tests/cli/test_main_coverage.py:139
Method
test_interactive_mode_dispatch
When command name is 'app' and module contains 'interactive', _enter_interactive_mode is called.
tests/cli/test_run_command_extended.py:194
Method
test_interactive_mode_empty_input
Empty input should be skipped.
tests/interactive/test_shell_coverage.py:200
Method
test_interactive_mode_eof_error
EOFError causes clean exit.
tests/interactive/test_shell_coverage.py:348
Method
test_interactive_mode_exit_on_command
Test that InteractiveExitException causes clean exit.
tests/interactive/test_shell_coverage.py:175
Method
test_interactive_mode_general_exception
General exceptions are caught and printed.
tests/interactive/test_shell_coverage.py:364
Function
test_interactive_mode_is_callable
()
tests/interactive/test_interactive_shell.py:29
Method
test_interactive_mode_keyboard_interrupt
KeyboardInterrupt in the loop prints a message and continues.
tests/interactive/test_shell_coverage.py:318
Method
test_interactive_mode_keyboard_interrupt_in_handle_command
KeyboardInterrupt during handle_command causes exit.
tests/interactive/test_shell_coverage.py:392
Method
test_interactive_mode_normal_text_entry
Normal text (not starting with /) is dispatched as-is.
tests/interactive/test_shell_coverage.py:441
Method
test_interactive_mode_passes_kwargs
Extra kwargs are accepted (provider, model, etc).
tests/interactive/test_shell_coverage.py:415
Method
test_interactive_mode_slash_command
Slash commands strip the leading / before dispatch.
tests/interactive/test_shell_coverage.py:226
Method
test_interactive_mode_slash_only_shows_help
Typing just / should show help.
tests/interactive/test_shell_coverage.py:257
Method
test_interactive_mode_unknown_command
Unknown commands print an error message.
tests/interactive/test_shell_coverage.py:285
Method
test_interactive_mode_with_tool_manager
Tool manager is accepted as argument.
tests/interactive/test_shell_coverage.py:472
Method
test_interactive_model_only
(self, mock_theme, mock_opts, mock_run, runner)
tests/cli/test_main_coverage.py:288
Method
test_interactive_provider_only
(self, mock_theme, mock_opts, mock_run, runner)
tests/cli/test_main_coverage.py:270
Method
test_interactive_with_confirm_mode_always
( self, mock_theme, mock_opts, mock_run, runner )
tests/cli/test_main_coverage.py:324
Method
test_interactive_with_invalid_confirm_mode
( self, mock_theme, mock_opts, mock_run, runner )
tests/cli/test_main_coverage.py:344
Method
test_interactive_with_provider_and_model
( self, mock_theme, mock_opts, mock_run, runner )
tests/cli/test_main_coverage.py:248
Method
test_interactive_with_theme
(self, mock_theme, mock_opts, mock_run, runner)
tests/cli/test_main_coverage.py:306
Function
test_interrupt_command_properties
Test interrupt command properties.
tests/commands/definitions/test_interrupt_command.py:25
Function
test_interrupt_general_operation
Test general operation cancellation.
tests/commands/definitions/test_interrupt_command.py:72
Method
test_interrupt_nothing
No-op when nothing to interrupt.
tests/chat/test_chat_handler_coverage.py:766
Method
test_interrupt_nothing_running
Interrupt command when nothing is running shows info.
tests/chat/test_chat_handler_coverage.py:524
Function
test_interrupt_nothing_to_interrupt
Test interrupt when nothing is running.
tests/commands/definitions/test_interrupt_command.py:84
Method
test_interrupt_now
(self, ui_manager)
tests/chat/test_ui_manager_coverage.py:675
Function
test_interrupt_really_nothing_to_interrupt
Test interrupt when truly nothing is running and no methods exist.
tests/commands/definitions/test_interrupt_command.py:126
Function
test_interrupt_requested_before_processing
If interrupt_requested is True before any tool, processing halts.
tests/chat/test_tool_processor.py:1730
Method
test_interrupt_requested_skips_remaining
(self)
tests/chat/test_tool_processor_extended.py:1018
Function
test_interrupt_streaming
Test interrupting streaming response.
tests/commands/definitions/test_interrupt_command.py:46
Method
test_interrupt_streaming
Interrupt command when streaming interrupts streaming.
tests/chat/test_chat_handler_coverage.py:495
Method
test_interrupt_streaming
Interrupts streaming when active.
tests/chat/test_chat_handler_coverage.py:743
Method
test_interrupt_streaming
(self)
tests/chat/test_streaming_handler.py:396
Method
test_interrupt_streaming_no_handler
(self, ui_manager)
tests/chat/test_ui_manager_coverage.py:528
Function
test_interrupt_streaming_priority
Test that streaming interrupt has priority over tool execution.
tests/commands/definitions/test_interrupt_command.py:96
Method
test_interrupt_streaming_with_handler
(self, ui_manager)
tests/chat/test_ui_manager_coverage.py:521
Function
test_interrupt_tool_execution
Test interrupting tool execution.
tests/commands/definitions/test_interrupt_command.py:59
Method
test_interrupt_tools
Interrupts tools when running.
tests/chat/test_chat_handler_coverage.py:754
Method
test_interrupt_tools_running
Interrupt command when tools running calls _interrupt_now.
tests/chat/test_chat_handler_coverage.py:509
Function
test_interrupt_without_context
Test interrupt command without chat context.
tests/commands/definitions/test_interrupt_command.py:37
Function
test_interrupt_without_methods
Test interrupt with context that lacks interrupt methods.
tests/commands/definitions/test_interrupt_command.py:114
Method
test_interrupted_response
Test showing interrupted response.
tests/display/test_renderers.py:167
Method
test_interrupted_stream_handling
Test handling interrupted stream.
tests/display/test_manager.py:373
Method
test_invalid_domains
(self)
tests/apps/test_host.py:137
← previous
next →
4,501–4,600 of 6,849, ranked by callers