The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.
This report summarizes scanner evidence for mcp-use/mcp-use, a TypeScript project with 10,742 GitHub stars. SynthScan examined 312,494 lines of code across 1665 source files, recording 1259 pattern matches distributed across 22 syntactic categories. The legacy adjusted pattern signal is 6.0 (Moderate pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 721 finding(s).
Are imports declared and package/API names verified? 221 finding(s).
Are wrappers, guards, and repeated structures necessary? 822 finding(s).
Which changes need focused human review? 1259 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1259 distinct pattern matches across 22 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 30 | def test_list_roots_callback_always_provided(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 64 | async def test_set_roots_updates_cache(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 80 | async def test_set_roots_sends_notification_when_connected(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 97 | async def test_set_roots_no_notification_when_disconnected(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 114 | async def test_internal_list_roots_callback_returns_roots(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 133 | async def test_custom_list_roots_callback_takes_precedence(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 156 | def test_get_roots_returns_copy(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 176 | async def test_stdio_passes_list_roots_callback(self, mock_client_session, mock_connection_manager): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 214 | async def test_http_passes_list_roots_callback(self, mock_client_session, mock_cm_class): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 246 | def test_sampling_callback_stored(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 255 | def test_elicitation_callback_stored(self): | CODE |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 267 | async def test_all_callbacks_passed_to_client_session(self, mock_client_session, mock_connection_manager): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_sandbox_connector.py | 85 | def test_init_with_env_api_key(self, mock_sandbox_modules, mock_os_environ): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_sandbox_connector.py | 95 | def test_init_missing_api_key(self, mock_sandbox_modules): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_sandbox_connector.py | 101 | def test_init_with_custom_options(self, mock_sandbox_modules): | CODE |
| LOW | libraries/python/tests/unit/test_sandbox_connector.py | 166 | async def test_connect_already_connected(self, mock_sandbox_modules): | CODE |
| LOW | libraries/python/tests/unit/test_sandbox_connector.py | 269 | async def test_cleanup_resources_with_exceptions(self, mock_logger, mock_sandbox_modules): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 25 | def test_init_with_llm_and_client(self): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_agent.py | 39 | def test_init_requires_llm_for_local(self): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_agent.py | 45 | def test_init_requires_client_or_connectors(self): | CODE |
| LOW⚡ | libraries/python/tests/unit/test_agent.py | 52 | def test_init_with_connectors_only(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 63 | def test_server_manager_requires_client(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 70 | def test_init_remote_mode_with_agent_id(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 91 | async def test_run_remote_delegates(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 110 | async def test_run_local_calls_stream_and_consume(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 149 | async def test_stream_remote_delegates(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 170 | async def test_stream_initializes_and_finishes(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 200 | async def test_stream_uses_external_history_and_sets_max_steps(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 238 | async def test_stream_persists_tool_messages_in_history(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 282 | async def test_stream_handles_block_tool_results_without_losing_history(self): | CODE |
| LOW | libraries/python/tests/unit/test_agent.py | 346 | async def test_stream_events_persists_block_tool_results_in_history(self): | CODE |
| LOW | libraries/python/tests/unit/test_code_executor.py | 64 | async def test_execute_with_variables(self, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 94 | async def test_execute_with_list_comprehension(self, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 162 | async def test_safe_builtins_available(self, code_executor): | CODE |
| LOW | libraries/python/tests/unit/test_code_executor.py | 214 | async def test_search_tools_function(self, mock_client, code_executor): | CODE |
| LOW | libraries/python/tests/unit/test_code_executor.py | 239 | async def test_search_tools_with_query(self, mock_client, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 281 | async def test_tool_namespaces_available(self, mock_client, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 304 | async def test_tool_wrapper_creation(self, mock_client, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 22 | def test_fix_schema_with_enum(self): | CODE |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 34 | def test_fix_schema_preserves_existing_type(self): | CODE |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 48 | def test_enum_validation_works_after_fix(self): | CODE |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 71 | def test_enum_validation_accepts_valid_values(self): | CODE |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 93 | def test_recursive_schema_fixing(self): | CODE |
| LOW | libraries/python/tests/unit/test_session.py | 24 | def test_init_with_auto_connect_false(self): | CODE |
| LOW | libraries/python/tests/unit/test_session.py | 58 | async def test_async_context_manager(self): | CODE |
| LOW | libraries/python/tests/unit/test_session.py | 66 | async def test_is_connected_property(self): | CODE |
| LOW | libraries/python/tests/unit/test_session.py | 104 | async def test_initialize_already_connected(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 43 | async def test_stop_with_normal_cleanup(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 52 | async def test_stop_with_default_timeout(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 60 | async def test_stop_with_custom_timeout(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 68 | async def test_stop_with_slow_cleanup_exceeding_timeout(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 77 | async def test_stop_with_hanging_cleanup(self): | CODE |
| LOW | …s/python/tests/unit/test_connection_manager_timeout.py | 107 | async def test_stop_when_task_not_started(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 120 | async def test_stop_timeout_with_zero_timeout(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 128 | async def test_timeout_during_task_execution(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 136 | async def test_stop_without_hanging_task(self): | CODE |
| LOW⚡ | …s/python/tests/unit/test_connection_manager_timeout.py | 145 | async def test_timeout_with_close_exception(self): | CODE |
| LOW | …s/python/tests/unit/test_connection_manager_timeout.py | 160 | async def test_close_exception_without_timeout(self): | CODE |
| LOW | …s/python/tests/unit/test_connection_manager_timeout.py | 174 | async def test_stop_respects_total_timeout_timing(self): | CODE |
| LOW | …s/python/tests/unit/test_connection_manager_timeout.py | 192 | async def test_stop_with_negative_timeout_waits_indefinitely(self): | CODE |
| 427 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 11 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 13 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 76 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 78 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 110 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 112 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libraries/python/tests/unit/server/test_json_schema.py | 160 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | libraries/python/tests/unit/server/test_json_schema.py | 162 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 179 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | libraries/python/tests/unit/server/test_json_schema.py | 181 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 143 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 153 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 155 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 174 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 176 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 189 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 191 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 221 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/test_list_tool_format.py | 223 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 22 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 24 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 52 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 54 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 128 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/test_list_tool_format.py | 130 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | …/python/tests/unit/server/auth/test_auth_middleware.py | 60 | # ============================================================================ | COMMENT |
| MEDIUM | …/python/tests/unit/server/auth/test_auth_middleware.py | 62 | # ============================================================================ | COMMENT |
| MEDIUM | …/python/tests/unit/server/auth/test_auth_middleware.py | 86 | # ============================================================================ | COMMENT |
| MEDIUM | …/python/tests/unit/server/auth/test_auth_middleware.py | 88 | # ============================================================================ | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/auth/test_bearer_auth.py | 14 | # ============================================================================ | COMMENT |
| MEDIUM | …ries/python/tests/unit/server/auth/test_bearer_auth.py | 16 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/auth/test_bearer_auth.py | 33 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | …ries/python/tests/unit/server/auth/test_bearer_auth.py | 35 | # ============================================================================ | COMMENT |
| MEDIUM⚡ | libraries/python/tests/integration/test_conformance.py | 69 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | libraries/python/tests/integration/test_conformance.py | 71 | # ============================================================================= | COMMENT |
| MEDIUM | libraries/python/tests/integration/test_conformance.py | 141 | # ============================================================================= | COMMENT |
| MEDIUM | libraries/python/tests/integration/test_conformance.py | 143 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 38 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 41 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 63 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 65 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 351 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 353 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | …/integration/servers_for_testing/conformance_server.py | 404 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | …/integration/servers_for_testing/conformance_server.py | 406 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 452 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/servers_for_testing/conformance_server.py | 454 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 74 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 76 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 196 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 198 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 217 | # ============================================================================= | COMMENT |
| MEDIUM | …/integration/clients_for_testing/conformance_client.py | 219 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | …/integration/clients_for_testing/conformance_client.py | 269 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | …/integration/clients_for_testing/conformance_client.py | 271 | # ============================================================================= | COMMENT |
| MEDIUM | libraries/python/examples/server/context_example.py | 28 | # ============================================================================= | COMMENT |
| MEDIUM | libraries/python/examples/server/context_example.py | 30 | # ============================================================================= | COMMENT |
| 59 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 8 | CODE | |
| LOW | libraries/python/tests/unit/test_client_capabilities.py | 13 | CODE | |
| LOW | libraries/python/tests/unit/test_sandbox_connector.py | 6 | CODE | |
| LOW | libraries/python/tests/unit/test_agent.py | 8 | CODE | |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 6 | CODE | |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 7 | CODE | |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 10 | CODE | |
| LOW | libraries/python/tests/unit/test_enum_handling.py | 10 | CODE | |
| LOW | libraries/python/tests/unit/test_session.py | 7 | CODE | |
| LOW | …aries/python/tests/unit/test_search_tools_issue_138.py | 14 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 14 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 15 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 16 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 17 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 18 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 19 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 20 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 21 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 23 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 24 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 25 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 28 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 29 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 32 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 33 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 34 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 35 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 36 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 37 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 40 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 41 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 42 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 43 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 44 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 45 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 48 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 49 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 50 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 51 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 52 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 55 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 56 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 57 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 58 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 59 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 60 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 61 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 62 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 63 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 64 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 65 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 66 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 67 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 68 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 69 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 72 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 73 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 74 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 75 | CODE | |
| LOW | libraries/python/tests/unit/backward_compatibility.py | 76 | CODE | |
| 138 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …integration/servers_for_testing/timeout_test_server.py | 113 | except Exception as e: | CODE |
| MEDIUM | …integration/servers_for_testing/timeout_test_server.py | 114 | print(f"Error in SSE connection {connection_id}: {e}") | CODE |
| MEDIUM | …integration/servers_for_testing/timeout_test_server.py | 85 | def event_generator(): | CODE |
| LOW | …/integration/clients_for_testing/conformance_client.py | 152 | except Exception as e: | CODE |
| LOW | …/integration/clients_for_testing/conformance_client.py | 249 | except Exception: | CODE |
| LOW⚡ | …/integration/clients_for_testing/conformance_client.py | 265 | except Exception: | CODE |
| LOW | …/integration/clients_for_testing/conformance_client.py | 328 | except Exception: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 318 | except Exception: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 552 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 623 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 1104 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 606 | except Exception as e: | STRING |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 909 | except Exception as e: | STRING |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 918 | except Exception as e: | STRING |
| LOW | libraries/python/mcp_use/agents/remote.py | 137 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/remote.py | 149 | except Exception as fallback_e: | CODE |
| LOW | libraries/python/mcp_use/agents/remote.py | 196 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/remote.py | 255 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/remote.py | 359 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/display.py | 120 | except Exception: | CODE |
| LOW | …hon/mcp_use/agents/middleware/tool_error_middleware.py | 58 | except Exception as e: | CODE |
| LOW | …aries/python/mcp_use/agents/managers/server_manager.py | 58 | except Exception: | CODE |
| LOW | …aries/python/mcp_use/agents/managers/server_manager.py | 80 | except Exception as e: | CODE |
| LOW | …s/python/mcp_use/agents/managers/tools/search_tools.py | 111 | except Exception as e: | CODE |
| LOW | …s/python/mcp_use/agents/managers/tools/search_tools.py | 173 | except Exception: | CODE |
| LOW | …s/python/mcp_use/agents/managers/tools/search_tools.py | 202 | except Exception: | CODE |
| LOW | …python/mcp_use/agents/managers/tools/connect_server.py | 71 | except Exception as e: | CODE |
| LOW | …hon/mcp_use/agents/managers/tools/list_servers_tool.py | 45 | except Exception as e: | CODE |
| LOW | …hon/mcp_use/agents/managers/tools/disconnect_server.py | 37 | except Exception as e: | CODE |
| LOW | …braries/python/mcp_use/agents/observability/laminar.py | 41 | except Exception as e: | CODE |
| LOW | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 194 | except Exception as e: | CODE |
| LOW | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 203 | except Exception as e: | CODE |
| LOW | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 244 | except Exception as e: | CODE |
| LOW | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 301 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/adapters/base.py | 111 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/adapters/base.py | 116 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/agents/adapters/base.py | 340 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/server.py | 431 | except Exception: | CODE |
| LOW | libraries/python/mcp_use/server/middleware/telemetry.py | 21 | except Exception as exc: | CODE |
| LOW | libraries/python/mcp_use/server/middleware/telemetry.py | 43 | except Exception as exc: | CODE |
| LOW | libraries/python/mcp_use/server/middleware/telemetry.py | 62 | except Exception as exc: | CODE |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 108 | except Exception: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 80 | except Exception as e: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 87 | except Exception as e: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 94 | except Exception as e: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 101 | except Exception as e: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 108 | except Exception as e: | CODE |
| LOW⚡ | libraries/python/mcp_use/server/utils/openmcp.py | 116 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/utils/openmcp.py | 131 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/utils/openmcp.py | 147 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/utils/openmcp.py | 161 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/utils/inspector.py | 51 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/utils/inspector.py | 84 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/server/templates/cli.py | 206 | except Exception: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 70 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 162 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 179 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 211 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 240 | except Exception as e: | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 254 | except Exception as e: | CODE |
| 78 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libraries/python/tests/unit/test_client_capabilities.py | 122 | # Create a mock context | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_client_capabilities.py | 145 | # Create a mock context | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_code_executor.py | 306 | # Create a mock session with a tool | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_enum_handling.py | 50 | # Create a schema that would cause the original issue | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_enum_handling.py | 73 | # Create a schema with enum | COMMENT |
| MEDIUM | …aries/python/tests/unit/test_search_tools_issue_138.py | 107 | # Create a ToolSearchEngine instance with mocked server_tools | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_config.py | 24 | # Create a temporary file with test config | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_stdio_connector.py | 336 | # Define the nested structure | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_client.py | 50 | # Create a temporary file with test config | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_client.py | 70 | # Create a temporary file with test config | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_client.py | 181 | # Create a temporary file path | COMMENT |
| MEDIUM | libraries/python/tests/unit/test_http_connector.py | 419 | # Define the detailed structure that the connector's read_resource method | COMMENT |
| MEDIUM | …/python/tests/integration/agent/test_server_manager.py | 50 | # Create the get_greeting_tool dynamically inside the manager | COMMENT |
| MEDIUM⚡ | …thon/tests/integration/client/others/test_code_mode.py | 71 | # Create a temporary config file | COMMENT |
| MEDIUM | libraries/python/mcp_use/agents/mcpagent.py | 160 | # Create the adapter for tool conversion | COMMENT |
| MEDIUM | libraries/python/mcp_use/agents/mcpagent.py | 191 | # Create the system message based on available tools | COMMENT |
| MEDIUM | libraries/python/mcp_use/agents/mcpagent.py | 243 | # Create the system message based on available tools | COMMENT |
| MEDIUM | libraries/python/mcp_use/agents/mcpagent.py | 246 | # Create the agent | COMMENT |
| MEDIUM | …s/python/mcp_use/agents/managers/tools/search_tools.py | 277 | # Create a new results list with marked active server | COMMENT |
| MEDIUM | …raries/python/mcp_use/agents/observability/langfuse.py | 25 | # Create a custom CallbackHandler wrapper to add logging | COMMENT |
| MEDIUM | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 282 | # Create an empty Pydantic model if there are no arguments | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/client.py | 251 | # Create a session for it | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/client.py | 320 | # Create the session | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/sandbox.py | 255 | # Create the SSE connection URL | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/sandbox.py | 262 | # Create the client session | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/http.py | 141 | # Create a temporary client for OAuth metadata discovery | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/http.py | 286 | # Create the client session for SSE | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/stdio.py | 87 | # Create the client session | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/websocket.py | 186 | # Create a request ID | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/connectors/websocket.py | 189 | # Create a future to receive the response | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/auth/oauth_callback.py | 46 | # Create the server | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/auth/oauth.py | 141 | # Create a safe filename from the URL | COMMENT |
| MEDIUM⚡ | libraries/python/mcp_use/client/auth/oauth.py | 717 | # Create a safe filename from the server URL | COMMENT |
| MEDIUM⚡ | libraries/python/mcp_use/client/auth/oauth.py | 732 | # Create a safe filename from the server URL | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/task_managers/sse.py | 63 | # Create the context manager | COMMENT |
| MEDIUM | …python/mcp_use/client/task_managers/streamable_http.py | 68 | # Create the httpx client with auth, headers, and timeouts | COMMENT |
| MEDIUM | …python/mcp_use/client/task_managers/streamable_http.py | 79 | # Create the streamable HTTP context manager | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/task_managers/stdio.py | 51 | # Create the context manager | COMMENT |
| MEDIUM | libraries/python/mcp_use/client/task_managers/base.py | 75 | # Create a task to establish and maintain the connection | COMMENT |
| MEDIUM | …aries/python/mcp_use/client/task_managers/websocket.py | 47 | # Create the context manager | COMMENT |
| MEDIUM | libraries/python/examples/simple_server_manager_use.py | 84 | # Create an MCPAgent with the custom server manager | COMMENT |
| MEDIUM | libraries/python/examples/multi_server_example.py | 23 | # Create a configuration with multiple servers | COMMENT |
| MEDIUM | …aries/python/examples/langchain_integration_example.py | 51 | # Create the LangChain agent | COMMENT |
| MEDIUM | docs/generate_docs.py | 804 | # Create a mock parameter object for the annotation | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …integration/servers_for_testing/timeout_test_server.py | 96 | # Check if we should timeout | COMMENT |
| LOW | libraries/python/mcp_use/logging.py | 83 | # Set propagate to True to ensure child loggers inherit settings | COMMENT |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 868 | # Check if we should restart or if execution completed | STRING |
| LOW | libraries/python/mcp_use/agents/remote.py | 113 | # Check if this is a nested result structure (agent execution response) | COMMENT |
| LOW | …aries/python/mcp_use/agents/managers/server_manager.py | 70 | # Check if this server's tools have changed | COMMENT |
| LOW | …python/mcp_use/agents/managers/tools/connect_server.py | 28 | # Check if server exists | COMMENT |
| LOW | …braries/python/mcp_use/agents/observability/laminar.py | 12 | # Check if Laminar is disabled via environment variable | COMMENT |
| LOW | …raries/python/mcp_use/agents/observability/langfuse.py | 6 | # Check if Langfuse is disabled via environment variable | COMMENT |
| LOW | libraries/python/mcp_use/agents/adapters/base.py | 187 | # Check if we already have tools for this connector | COMMENT |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 71 | # Check if path should be excluded from auth | COMMENT |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 78 | # Check if this is a protected path | COMMENT |
| LOW | libraries/python/mcp_use/server/utils/inspector.py | 28 | # Check if server or autoConnect parameter is already present | COMMENT |
| LOW | libraries/python/mcp_use/server/logging/config.py | 16 | # Check if args contain a path that starts with inspector_path | COMMENT |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 58 | # Check if telemetry is disabled on this instance | COMMENT |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 296 | # Check if version file exists | COMMENT |
| LOW | libraries/python/mcp_use/client/client.py | 417 | # Check if the session exists | COMMENT |
| LOW | libraries/python/mcp_use/client/connectors/http.py | 102 | # Check if this is an OAuth provider configuration | COMMENT |
| LOW⚡ | libraries/python/mcp_use/client/connectors/base.py | 376 | # Check if we have a client session | COMMENT |
| LOW⚡ | libraries/python/mcp_use/client/connectors/base.py | 386 | # Check if we have a connection manager and if its task is still running | COMMENT |
| LOW⚡ | libraries/python/mcp_use/client/connectors/base.py | 389 | # Check if the connection manager task is done (indicates disconnection) | COMMENT |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 257 | # Check if already initialized | COMMENT |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 403 | # Check if streams are closed using getattr with default value | COMMENT |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 473 | # Check if the error might be due to connection loss | COMMENT |
| LOW | libraries/python/mcp_use/client/connectors/websocket.py | 101 | # Check if this is a response to a pending request | COMMENT |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 298 | # Check if code challenge exists with S256 | COMMENT |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 305 | # Check if it supports CIMD | COMMENT |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 644 | # Check if token expires in more than 60 seconds | COMMENT |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 744 | # Check if registration is still valid (if expiry info provided) | COMMENT |
| LOW | docs/generate_docs.py | 361 | # Check if this line starts a new section (not indented) | COMMENT |
| LOW | docs/generate_docs.py | 600 | # Check if this line starts a new section (like "Example:") | COMMENT |
| LOW | docs/generate_docs.py | 884 | # Check if this property is defined in a parent class | COMMENT |
| LOW | docs/generate_docs.py | 892 | # Check if this method is defined in a parent class | COMMENT |
| LOW | docs/generate_docs.py | 1153 | # Check if module only contains deprecated items | COMMENT |
| LOW | docs/generate_docs.py | 1155 | # Check if all classes and functions are deprecated | COMMENT |
| LOW | docs/generate_docs.py | 1243 | # Write the file | COMMENT |
| LOW | docs/generate_docs.py | 1278 | # Check if module matches any exclusion pattern | COMMENT |
| LOW | docs/generate_docs.py | 1408 | # Check if this is a compound name we need to preserve | COMMENT |
| LOW | docs/generate_docs.py | 1589 | # Check if this package has subpackages | COMMENT |
| LOW | .github/workflows/python-release.yml | 139 | # Check if draft release exists | COMMENT |
| LOW | .github/workflows/python-release.yml | 179 | # Check if a published release with this version already exists | COMMENT |
| LOW | .github/workflows/python-release.yml | 228 | # Check if this version exists on PyPI | COMMENT |
| LOW | .github/workflows/python-release.yml | 264 | # Check if the tag exists on the remote before attempting to delete | COMMENT |
| LOW | .github/workflows/ci.yml | 264 | # Check if tests passed | COMMENT |
| LOW | .github/workflows/ci.yml | 429 | # Check if tests passed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/integration/clients_for_testing/conformance_client.py | 249 | except Exception: | CODE |
| HIGH | …/integration/clients_for_testing/conformance_client.py | 265 | except Exception: | CODE |
| HIGH | …/integration/clients_for_testing/conformance_client.py | 328 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/agents/display.py | 35 | except json.JSONDecodeError: | CODE |
| HIGH | libraries/python/mcp_use/agents/display.py | 164 | except json.JSONDecodeError: | CODE |
| HIGH | libraries/python/mcp_use/agents/display.py | 172 | except (TypeError, ValueError): | CODE |
| HIGH | libraries/python/mcp_use/server/server.py | 431 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/server/templates/cli.py | 206 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/client/connectors/http.py | 241 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/client/connectors/http.py | 250 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/client/connectors/http.py | 263 | except Exception: | CODE |
| HIGH | libraries/python/mcp_use/client/auth/oauth_callback.py | 112 | except asyncio.QueueFull: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libraries/python/tests/unit/server/test_runner.py | 48 | CODE | |
| LOW | …/integration/clients_for_testing/conformance_client.py | 227 | CODE | |
| LOW | …/integration/clients_for_testing/conformance_client.py | 274 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 180 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 259 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 283 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 573 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 641 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 1072 | CODE | |
| LOW | libraries/python/mcp_use/agents/remote.py | 259 | CODE | |
| LOW | libraries/python/mcp_use/agents/display.py | 41 | CODE | |
| LOW | libraries/python/mcp_use/agents/display.py | 195 | CODE | |
| LOW | libraries/python/mcp_use/agents/display.py | 359 | CODE | |
| LOW | …aries/python/mcp_use/agents/managers/server_manager.py | 44 | CODE | |
| LOW | libraries/python/mcp_use/agents/adapters/base.py | 50 | CODE | |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 64 | CODE | |
| LOW | libraries/python/mcp_use/server/utils/utils.py | 26 | CODE | |
| LOW | libraries/python/mcp_use/server/logging/middleware.py | 100 | CODE | |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 288 | CODE | |
| LOW | libraries/python/mcp_use/telemetry/utils.py | 53 | CODE | |
| LOW | libraries/python/mcp_use/client/code_executor.py | 129 | CODE | |
| LOW | libraries/python/mcp_use/client/code_executor.py | 231 | CODE | |
| LOW | libraries/python/mcp_use/client/code_executor.py | 275 | CODE | |
| LOW | libraries/python/mcp_use/client/code_executor.py | 243 | CODE | |
| LOW | libraries/python/mcp_use/client/code_executor.py | 282 | CODE | |
| LOW | libraries/python/mcp_use/client/config.py | 38 | CODE | |
| LOW | libraries/python/mcp_use/client/client.py | 518 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/sandbox.py | 158 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/http.py | 88 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 167 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 366 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/websocket.py | 91 | CODE | |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 276 | CODE | |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 727 | CODE | |
| LOW | libraries/python/examples/openai_integration_example.py | 16 | CODE | |
| LOW | …aries/python/examples/anthropic_integration_example.py | 16 | CODE | |
| LOW | libraries/python/examples/google_integration_example.py | 17 | CODE | |
| LOW | docs/generate_docs.py | 16 | CODE | |
| LOW | docs/generate_docs.py | 62 | CODE | |
| LOW | docs/generate_docs.py | 234 | CODE | |
| LOW | docs/generate_docs.py | 295 | CODE | |
| LOW | docs/generate_docs.py | 384 | CODE | |
| LOW | docs/generate_docs.py | 406 | CODE | |
| LOW | docs/generate_docs.py | 520 | CODE | |
| LOW | docs/generate_docs.py | 573 | CODE | |
| LOW | docs/generate_docs.py | 623 | CODE | |
| LOW | docs/generate_docs.py | 667 | CODE | |
| LOW | docs/generate_docs.py | 748 | CODE | |
| LOW | docs/generate_docs.py | 1022 | CODE | |
| LOW | docs/generate_docs.py | 1250 | CODE | |
| LOW | docs/generate_docs.py | 1368 | CODE | |
| LOW | docs/generate_docs.py | 1578 | CODE | |
| LOW | docs/generate_docs.py | 1689 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 0 | initialize a new adapter. args: disallowed_tools: list of tool names that should not be available. | STRING |
| HIGH | libraries/python/mcp_use/agents/adapters/google.py | 0 | initialize a new adapter. args: disallowed_tools: list of tool names that should not be available. | STRING |
| HIGH | libraries/python/mcp_use/agents/adapters/openai.py | 0 | initialize a new adapter. args: disallowed_tools: list of tool names that should not be available. | STRING |
| HIGH | libraries/python/mcp_use/agents/adapters/anthropic.py | 0 | initialize a new adapter. args: disallowed_tools: list of tool names that should not be available. | STRING |
| HIGH | libraries/python/mcp_use/agents/adapters/base.py | 0 | initialize a new adapter. args: disallowed_tools: list of tool names that should not be available. | STRING |
| HIGH | libraries/python/examples/filesystem_use.py | 0 | basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any | STRING |
| HIGH | libraries/python/examples/stream_example.py | 0 | basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any | STRING |
| HIGH | libraries/python/examples/browser_use.py | 0 | basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | libraries/python/tests/integration/conftest.py | 8 | logger = logging.getLogger(__name__) | CODE |
| LOW | …thon/tests/integration/client/primitives/test_roots.py | 15 | logger = logging.getLogger(__name__) | CODE |
| LOW | …n/tests/integration/client/primitives/test_sampling.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/logging.py | 113 | def set_debug(cls, debug_level: int = 2) -> None: | CODE |
| LOW | libraries/python/mcp_use/__init__.py | 26 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 423 | def set_system_message(self, message: str) -> None: | CODE |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 436 | def set_disallowed_tools(self, disallowed_tools: list[str]) -> None: | CODE |
| LOW | libraries/python/mcp_use/agents/__init__.py | 11 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/agents/display.py | 13 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/agents/middleware/__init__.py | 5 | __all__ = ["tool_error_handler"] | CODE |
| LOW | libraries/python/mcp_use/agents/managers/__init__.py | 11 | __all__ = [ | CODE |
| LOW | …aries/python/mcp_use/agents/managers/tools/__init__.py | 8 | __all__ = [ | CODE |
| LOW | …braries/python/mcp_use/agents/observability/laminar.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | …raries/python/mcp_use/agents/observability/langfuse.py | 4 | logger = logging.getLogger(__name__) | CODE |
| LOW | …raries/python/mcp_use/agents/observability/__init__.py | 9 | __all__ = ["laminar", "langfuse", "ObservabilityManager", "get_default_manager", "create_manager"] | CODE |
| LOW | …thon/mcp_use/agents/observability/callbacks_manager.py | 10 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/runner.py | 21 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/server.py | 60 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/__init__.py | 9 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/server/types.py | 9 | __all__ = ["TransportType"] | CODE |
| LOW | libraries/python/mcp_use/server/__fastmcp.py | 5 | __all__ = ["FastMCP"] | CODE |
| LOW | libraries/python/mcp_use/server/middleware/__init__.py | 10 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/server/auth/__init__.py | 33 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 19 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/auth/dependencies.py | 36 | def set_access_token(token: AccessToken | None) -> None: | CODE |
| LOW | libraries/python/mcp_use/server/utils/inspector.py | 9 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/utils/utils.py | 6 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/server/logging/__init__.py | 37 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/server/logging/state.py | 9 | def set_method_info(info: dict | None) -> None: | CODE |
| LOW | libraries/python/mcp_use/telemetry/events.py | 270 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/telemetry/__init__.py | 6 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 37 | logger = logging.getLogger(__name__) | CODE |
| LOW | libraries/python/mcp_use/client/client.py | 240 | def _setup_code_mode_connector(self) -> None: | CODE |
| LOW | libraries/python/mcp_use/client/connectors/__init__.py | 17 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/client/connectors/http.py | 88 | def _set_auth(self, auth: str | dict[str, Any] | httpx.Auth) -> None: | CODE |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 146 | async def set_roots(self, roots: list[Root]) -> None: | CODE |
| LOW | libraries/python/mcp_use/client/middleware/__init__.py | 34 | __all__ = [ | CODE |
| LOW | libraries/python/mcp_use/client/auth/__init__.py | 6 | __all__ = ["BearerAuth", "OAuth"] | CODE |
| LOW | …raries/python/mcp_use/client/task_managers/__init__.py | 14 | __all__ = [ | CODE |
| LOW | docs/generate_docs.py | 1689 | def update_docs_json(docs_json_path: str, api_reference_dir: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ts/integration/servers_for_testing/primitive_server.py | 81 | # """Disable the logging_tool.""" | COMMENT |
| LOW | …/tests/integration/client/primitives/test_discovery.py | 1 | # import asyncio | COMMENT |
| LOW | …/tests/integration/client/primitives/test_discovery.py | 21 | # await session.call_tool(name="change_tools", arguments={}) | COMMENT |
| LOW | …/tests/integration/client/primitives/test_discovery.py | 41 | COMMENT | |
| LOW | …/tests/integration/client/primitives/test_discovery.py | 61 | # prompts = await session.list_prompts() | COMMENT |
| LOW | libraries/python/mcp_use/client/auth/oauth.py | 521 | self._resource_metadata = ProtectedResourceMetadata(**prm) | COMMENT |
| LOW | …packages/inspector/src/server/rate-limiter-flexible.ts | 1 | // Keep Inspector's published server bundle limited to the in-memory adapter. | COMMENT |
| LOW | …cript/packages/inspector/src/server/proxy/mcp-proxy.ts | 341 | } catch (error) { | COMMENT |
| LOW | …pector/src/client/components/ui/ask-user-questions.tsx | 301 | // Remeasure on row count change, question change, shape change | COMMENT |
| LOW | …pector/src/client/components/ui/ask-user-questions.tsx | 341 | setIsOtherMultiline(el.scrollHeight > lineHeight * 1.5); | COMMENT |
| LOW | …pector/src/client/components/ui/ask-user-questions.tsx | 741 | const activeRect = activeIndex !== null ? itemRects[activeIndex] : null; | COMMENT |
| LOW | …pector/src/client/components/ui/ask-user-questions.tsx | 841 | // (Radio.Group for single-select, Checkbox.Group for multi-select — see | COMMENT |
| LOW | …pector/src/client/components/ui/ask-user-questions.tsx | 1301 | {isFreeText ? ( | COMMENT |
| LOW | …ckages/inspector/src/client/components/ui/dropdown.tsx | 21 | } from "@/client/components/ui/menu-item"; | COMMENT |
| LOW | …ckages/inspector/src/client/components/ui/dropdown.tsx | 41 | // --------------------------------------------------------------------------- | COMMENT |
| LOW | …ckages/inspector/src/client/components/ui/dropdown.tsx | 321 | // the `render` prop, so any element can be the trigger: | COMMENT |
| LOW | …/inspector/src/client/components/ui/file-thumbnail.tsx | 41 | const isImage = file.type.startsWith("image/"); | COMMENT |
| LOW | …ckages/server/examples/nextjs-standalone/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | …pescript/packages/server/examples/nextjs/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | libraries/typescript/packages/server/src/server.ts | 401 | #httpServer: NodeHttpListener | undefined; | COMMENT |
| LOW | …ckages/server/src/react/runtime/model-context-store.ts | 181 | * contains the complete merged snapshot because `ui/update-model-context` has | COMMENT |
| LOW | …ckages/server/src/react/runtime/model-context-store.ts | 201 | this.#cancelInitialization = reject; | COMMENT |
| LOW | …ckages/server/src/react/runtime/model-context-store.ts | 221 | #flushScheduled = false; | COMMENT |
| LOW | libraries/typescript/packages/cli/src/cli/dev.ts | 361 | COMMENT | |
| LOW | libraries/typescript/packages/cli/src/cli/dev.ts | 481 | ...(!localhostBind && { allowedHosts: true }), | COMMENT |
| LOW | libraries/typescript/packages/cli/src/cli/dev.ts | 841 | const tunnelUrl = tunnelManager.status().url; | COMMENT |
| LOW | libraries/typescript/packages/cli/src/cli/dev.ts | 861 | // attacker's page same-origin with this server, and the Host header is | COMMENT |
| LOW | libraries/typescript/packages/client/src/auth/popup.ts | 1 | // popup-runner.ts | COMMENT |
| LOW | …script/packages/client/src/react/McpClientProvider.tsx | 661 | // (specifically `removeServer` / `updateServer`). Reading the latest | COMMENT |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 2241 | isMountedRef.current = false; | COMMENT |
| LOW | .github/workflows/inspector-e2e.yml | 1 | name: Inspector E2E Tests | COMMENT |
| LOW | .github/workflows/inspector-e2e-sequential.yml | 1 | name: Inspector E2E Tests (Sequential) | COMMENT |
| LOW | .github/workflows/claude.yml | 41 | # This is an optional setting that allows Claude to read CI results on PRs | COMMENT |
| LOW | .github/workflows/ci.yml | 1 | name: CI | COMMENT |
| LOW | .github/workflows/ci.yml | 21 | # ├─ python-unit-tests: Matrix [Python 3.11, 3.12] | COMMENT |
| LOW | .github/workflows/ci.yml | 181 | # defaults: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | CONTRIBUTING.md | 163 | Short description of what the function does. Args: param1: Description of param1 param2: Descriptio | STRING |
| HIGH | …es/python/mcp_use/agents/adapters/langchain_adapter.py | 168 | Asynchronously execute the tool with given arguments. Args: kwargs: The arguments t | STRING |
| HIGH | libraries/python/mcp_use/client/client.py | 282 | Create a session for the specified server. Args: server_name: The name of the server to create a se | STRING |
| HIGH | libraries/python/mcp_use/client/client.py | 373 | Get an existing session. Args: server_name: The name of the server to get the session for. | STRING |
| HIGH | libraries/python/mcp_use/client/client.py | 464 | Execute Python code with access to MCP tools (code mode). This method allows agents to interact with MCP tools | STRING |
| HIGH | libraries/python/mcp_use/client/session.py | 99 | Call an MCP tool. Args: name: The name of the tool to call. arguments: The arguments to | STRING |
| HIGH | libraries/python/mcp_use/client/connectors/base.py | 450 | Call an MCP tool with automatic reconnection handling. Args: name: The name of the tool to call. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …cript/packages/agent/tests/integration/agent/README.md | 108 | export OPENAI_API_KEY="your-api-key" | CODE |
| HIGH | …braries/typescript/packages/client/src/react/useMcp.ts | 116 | * headers: { Authorization: 'Bearer YOUR_API_KEY' } | COMMENT |
| HIGH | …braries/typescript/packages/client/src/react/useMcp.ts | 1397 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | CODE |
| HIGH | …braries/typescript/packages/client/src/react/useMcp.ts | 1411 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | CODE |
| HIGH | …braries/typescript/packages/client/src/react/useMcp.ts | 1523 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | libraries/python/mcp_use/server/utils/json_schema.py | 26 | """Return the non-null branch if *any_of* is exactly ``[<type>, null]``. | STRING |
| HIGH | libraries/python/mcp_use/server/utils/json_schema.py | 53 | If *prop* contains a nullable ``anyOf`` of the form ``[<type>, null]``, | STRING |
| HIGH | libraries/python/examples/server/server_example.py | 69 | # mcp-use simplifies these to {"type": "string", "default": null} instead of | COMMENT |
| HIGH | libraries/python/examples/server/server_example.py | 70 | # Pydantic's {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null} | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CONTRIBUTING.md | 200 | │ └── create-mcp-use-app/ # Project scaffolding CLI | CODE |
| MEDIUM | libraries/typescript/README.md | 58 | | **[create-mcp-use-app](#create-mcp-use-app)** | Project scaffolding tool | [, like the scaffold e2e check. | COMMENT |
| MEDIUM | skills/openapi-to-mcp/references/code-templates.md | 30 | // mcp-use and zod are already in the scaffold | COMMENT |
| MEDIUM | skills/openapi-to-mcp/references/code-templates.md | 33 | // keep dev, build, start, deploy from the scaffold; just add this one: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 84 | // Step 1: Normalize anyOf unions (handles FastMCP optional fields with $ref) | COMMENT |
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 87 | // Step 2: Resolve any remaining $refs at top level | COMMENT |
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 90 | // Step 3: Extract enum values | COMMENT |
| LOW⚡ | …braries/typescript/packages/agent/src/agents/remote.ts | 262 | // Step 1: Create a chat session for this agent (only if we don't have one) | COMMENT |
| LOW⚡ | …braries/typescript/packages/agent/src/agents/remote.ts | 269 | // Step 2: Execute the agent within the chat context | COMMENT |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 1465 | // Step 2: Get the authorization response captured during | COMMENT |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 1480 | // Step 3: Complete the OAuth flow by exchanging code for tokens | COMMENT |
| LOW⚡ | docs/generate_docs.py | 1828 | # Step 2: Update docs.json | COMMENT |
| LOW | docs/generate_docs.py | 1780 | # Step 1: Generate all API docs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 84 | // Step 1: Normalize anyOf unions (handles FastMCP optional fields with $ref) | COMMENT |
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 87 | // Step 2: Resolve any remaining $refs at top level | COMMENT |
| LOW⚡ | …ector/src/client/components/shared/SchemaFormField.tsx | 90 | // Step 3: Extract enum values | COMMENT |
| LOW⚡ | …braries/typescript/packages/agent/src/agents/remote.ts | 262 | // Step 1: Create a chat session for this agent (only if we don't have one) | COMMENT |
| LOW⚡ | …braries/typescript/packages/agent/src/agents/remote.ts | 269 | // Step 2: Execute the agent within the chat context | COMMENT |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 1465 | // Step 2: Get the authorization response captured during | COMMENT |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 1480 | // Step 3: Complete the OAuth flow by exchanging code for tokens | COMMENT |
| LOW⚡ | docs/generate_docs.py | 1828 | # Step 2: Update docs.json | COMMENT |
| LOW | docs/generate_docs.py | 1780 | # Step 1: Generate all API docs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ries/python/tests/unit/server/test_list_tool_format.py | 30 | CODE | |
| LOW | libraries/python/mcp_use/agents/mcpagent.py | 69 | CODE | |
| LOW | libraries/python/mcp_use/server/server.py | 78 | CODE | |
| LOW | libraries/python/mcp_use/server/context.py | 113 | CODE | |
| LOW | libraries/python/mcp_use/server/context.py | 71 | CODE | |
| LOW | libraries/python/mcp_use/server/auth/middleware.py | 137 | CODE | |
| LOW | libraries/python/mcp_use/telemetry/telemetry.py | 390 | CODE | |
| LOW | libraries/python/mcp_use/client/config.py | 38 | CODE | |
| LOW | libraries/python/mcp_use/client/client.py | 35 | CODE | |
| LOW | libraries/python/mcp_use/client/client.py | 113 | CODE | |
| LOW | libraries/python/mcp_use/client/client.py | 154 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/sandbox.py | 66 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/http.py | 31 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/stdio.py | 29 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 527 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/base.py | 555 | CODE | |
| LOW | libraries/python/mcp_use/client/connectors/websocket.py | 241 | CODE | |
| LOW | libraries/python/examples/server/server_example.py | 50 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …python/mcp_use/agents/managers/tools/connect_server.py | 34 | # If we're already connected to this server, just return | COMMENT |
| MEDIUM | libraries/python/mcp_use/telemetry/telemetry.py | 360 | """Track comprehensive agent execution""" | STRING |
| MEDIUM | libraries/python/mcp_use/client/middleware/metrics.py | 308 | """Get all analytics data in one comprehensive report.""" | STRING |
| MEDIUM | libraries/typescript/packages/client/src/auth/popup.ts | 17 | // 3. A `storage` event for this flow's tokens key. This is the most robust | COMMENT |
| MEDIUM | .github/workflows/inspector-e2e.yml | 48 | # Run all modes for comprehensive testing (or single mode for manual dispatch) | COMMENT |
| MEDIUM⚡ | .github/workflows/ci.yml | 9 | # This workflow provides comprehensive testing for both Python and TypeScript | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …/python/tests/unit/server/auth/test_auth_middleware.py | 166 | tokens = {"user-token": {"email": "user@example.com", "name": "Test User"}} | CODE |
| LOW⚡ | …/python/tests/unit/server/auth/test_auth_middleware.py | 175 | assert data["claims"]["email"] == "user@example.com" | CODE |
| LOW | …/integration/servers_for_testing/conformance_server.py | 262 | "name": {"type": "string", "default": "John Doe"}, | CODE |
| LOW | …/integration/servers_for_testing/bearer_auth_server.py | 20 | "email": "admin@example.com", | CODE |
| LOW | …pt/packages/inspector/tests/unit/manufact-auth.test.ts | 119 | email: "user@example.com", | CODE |
| LOW | …pt/packages/inspector/tests/unit/manufact-auth.test.ts | 424 | user: { id: "still-there", email: "user@example.com" }, | CODE |
| LOW | …script/packages/inspector/tests/e2e/connection.test.ts | 926 | await expect(nameField).toHaveValue("John Doe"); | CODE |
| LOW | …script/packages/inspector/tests/e2e/connection.test.ts | 953 | await expect(textContent).toContainText("John Doe"); | CODE |
| LOW | …create-mcp-use-app/src/__tests__/dot-directory.test.ts | 182 | JSON.stringify({ name: "placeholder", description: "" }, null, 2) | CODE |
| LOW | …create-mcp-use-app/src/__tests__/dot-directory.test.ts | 221 | name: "placeholder", | CODE |
| LOW | …ript/packages/server/examples/conformance/src/index.ts | 357 | name: z.string().default("John Doe"), | CODE |
| LOW | …braries/typescript/packages/client/src/react/useMcp.ts | 127 | * const result = await mcp.callTool('send-email', { to: 'user@example.com' }) | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | …/packages/inspector/src/client/utils/mcpClientUtils.ts | 423 | print(f"Available tools: {[tool.name for tool in tools]}") | CODE |
| HIGH | …/packages/inspector/src/client/utils/mcpClientUtils.ts | 427 | print(f"Available resources: {[resource.name for resource in resources]}") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | libraries/python/examples/simple_oauth_example.py | 21 | # Option 2: If you already have a registered client_id, you can use it: | COMMENT |