The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.
This report presents the forensic synthetic code analysis of mcp-use/mcp-use, a TypeScript project with 10,289 GitHub stars. SynthScan v2.0 examined 290,293 lines of code across 1231 source files, recording 1253 pattern matches distributed across 21 syntactic categories. The overall adjusted score of 6.6 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 1253 distinct pattern matches across 21 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| 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 |
| 73 more matches not shown… | ||||
| 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 | 63 | async def test_execute_with_variables(self, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 93 | async def test_execute_with_list_comprehension(self, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 161 | async def test_safe_builtins_available(self, code_executor): | CODE |
| LOW | libraries/python/tests/unit/test_code_executor.py | 213 | async def test_search_tools_function(self, mock_client, code_executor): | CODE |
| LOW | libraries/python/tests/unit/test_code_executor.py | 238 | async def test_search_tools_with_query(self, mock_client, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 280 | async def test_tool_namespaces_available(self, mock_client, code_executor): | STRING |
| LOW | libraries/python/tests/unit/test_code_executor.py | 303 | 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 |
| 342 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 | 305 | # 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 | …/mcp-use/examples/client/cli/cli_filesystem_example.sh | 12 | # Create a temporary directory for testing | 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⚡ | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 32 | # Check if Docker is running | COMMENT |
| LOW⚡ | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 41 | # Check if project has widgets | COMMENT |
| LOW⚡ | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 45 | # Check if resources directory exists | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 63 | # Check if it's a file with .tsx or .ts extension | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 68 | # Check if it's a directory with widget.tsx inside | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 157 | # Check if supabase CLI is installed | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 169 | # Check if supabase is initialized | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 179 | # Check if user is logged in | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 199 | # Check if project is linked | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 218 | # Check if linked project looks like a valid Supabase project ref (20 chars alphanumeric) | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 316 | # Check if dist directory exists | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 356 | # Check if index.ts exists, if not copy from current root or src/ | COMMENT |
| LOW | …/mcp-use/examples/server/deployment/supabase/deploy.sh | 426 | # Set CSP_URLS to allow widget assets from storage bucket | 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/update-mcp-sdk-fork.yml | 53 | # Check if versions are different | COMMENT |
| LOW | .github/workflows/update-mcp-sdk-fork.yml | 68 | # Check if it's a major version bump (skip major updates) | COMMENT |
| LOW | .github/workflows/update-mcp-sdk-fork.yml | 76 | # Check if PR already exists for this version | COMMENT |
| LOW | .github/workflows/ci.yml | 235 | # Check if tests passed | COMMENT |
| LOW | .github/workflows/ci.yml | 400 | # Check if tests passed | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1294 | // Step 2: delete widget and verify resource disappears. | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1303 | // Step 3: re-add same widget name; resource must re-appear for the same session. | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1354 | // Step 2: Trigger HMR by changing tool description | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1363 | // Step 3: Check same session still has full metadata | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1370 | // Step 4: Simulate page reload by creating new MCP session | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1389 | // Step 5: Fetch metadata in new session - THIS is the critical check | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1396 | // Step 6: Execute the tool to verify it still renders widgets correctly | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1139 | // Step 1: Add a new widget file to the resources directory while the server is running. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1174 | // Step 2: Verify the widget resource appears in the Resources tab. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1190 | // Step 3: Edit server.ts to add a tool that returns this widget | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1213 | // Step 4: Navigate to Tools tab and execute the tool | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1274 | // Step 1: add widget and verify it appears as a resource. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1327 | // Step 1: Fetch initial tool metadata via MCP protocol | COMMENT |
| 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 | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8660 | ## Step 5: Commit Everything | COMMENT |
| LOW | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8668 | ## Step 6: Create Pull Request | COMMENT |
| LOW | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8696 | ## Step 7: Review & Merge | COMMENT |
| LOW | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8704 | ## Step 8: Release (Maintainer Task) | COMMENT |
| LOW | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8765 | ## Step 9: Publish to npm | COMMENT |
| LOW | libraries/typescript/packages/mcp-use/CHANGELOG.md | 8799 | ## Step 10: Verify Publication | COMMENT |
| LOW | …-use/tests/integration/auth/node-provider-flow.test.ts | 182 | // Step 1: kick off the flow. SDK does discovery + DCR + builds authorize URL, | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 199 | // Step 2: simulate the AS redirecting the user back to our loopback. | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 207 | // Step 3: orchestrator awaits the code. | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 211 | // Step 4: exchange the code for tokens. | COMMENT |
| LOW⚡ | …aries/typescript/packages/mcp-use/src/agents/remote.ts | 242 | // Step 1: Create a chat session for this agent (only if we don't have one) | COMMENT |
| LOW⚡ | …aries/typescript/packages/mcp-use/src/agents/remote.ts | 249 | // Step 2: Execute the agent within the chat context | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1255 | // Step 1: Call auth() to trigger redirectToAuthorization and OAuth discovery | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1264 | // Step 2: Get the authorization code that was captured during redirectToAuthorization | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1274 | // 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 |
| LOW⚡ | skills/mcp-apps-builder/SKILL.md | 336 | // Step 1: Define schema separately | COMMENT |
| LOW⚡ | skills/mcp-apps-builder/SKILL.md | 342 | // Step 2: Reference schema variable in metadata | COMMENT |
| LOW⚡ | skills/mcp-apps-builder/SKILL.md | 349 | // Step 3: Infer Props type from schema variable | COMMENT |
| LOW⚡ | skills/mcp-apps-builder/SKILL.md | 352 | // Step 4: Use typed Props with useWidget | COMMENT |
| LOW⚡ | skills/chatgpt-app-builder/SKILL.md | 336 | // Step 1: Define schema separately | COMMENT |
| LOW⚡ | skills/chatgpt-app-builder/SKILL.md | 342 | // Step 2: Reference schema variable in metadata | COMMENT |
| LOW⚡ | skills/chatgpt-app-builder/SKILL.md | 349 | // Step 3: Infer Props type from schema variable | COMMENT |
| LOW⚡ | skills/chatgpt-app-builder/SKILL.md | 352 | // Step 4: Use typed Props with useWidget | COMMENT |
| LOW⚡ | skills/mcp-builder/SKILL.md | 336 | // Step 1: Define schema separately | COMMENT |
| LOW⚡ | skills/mcp-builder/SKILL.md | 342 | // Step 2: Reference schema variable in metadata | COMMENT |
| LOW⚡ | skills/mcp-builder/SKILL.md | 349 | // Step 3: Infer Props type from schema variable | COMMENT |
| LOW⚡ | skills/mcp-builder/SKILL.md | 352 | // Step 4: Use typed Props with useWidget | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1294 | // Step 2: delete widget and verify resource disappears. | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1303 | // Step 3: re-add same widget name; resource must re-appear for the same session. | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1354 | // Step 2: Trigger HMR by changing tool description | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1363 | // Step 3: Check same session still has full metadata | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1370 | // Step 4: Simulate page reload by creating new MCP session | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1389 | // Step 5: Fetch metadata in new session - THIS is the critical check | COMMENT |
| LOW⚡ | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1396 | // Step 6: Execute the tool to verify it still renders widgets correctly | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1139 | // Step 1: Add a new widget file to the resources directory while the server is running. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1174 | // Step 2: Verify the widget resource appears in the Resources tab. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1190 | // Step 3: Edit server.ts to add a tool that returns this widget | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1213 | // Step 4: Navigate to Tools tab and execute the tool | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1274 | // Step 1: add widget and verify it appears as a resource. | COMMENT |
| LOW | …es/typescript/packages/inspector/tests/e2e/hmr.test.ts | 1327 | // Step 1: Fetch initial tool metadata via MCP protocol | COMMENT |
| 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 | …-use/tests/integration/auth/node-provider-flow.test.ts | 182 | // Step 1: kick off the flow. SDK does discovery + DCR + builds authorize URL, | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 199 | // Step 2: simulate the AS redirecting the user back to our loopback. | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 207 | // Step 3: orchestrator awaits the code. | COMMENT |
| LOW⚡ | …-use/tests/integration/auth/node-provider-flow.test.ts | 211 | // Step 4: exchange the code for tokens. | COMMENT |
| LOW⚡ | …aries/typescript/packages/mcp-use/src/agents/remote.ts | 242 | // Step 1: Create a chat session for this agent (only if we don't have one) | COMMENT |
| LOW⚡ | …aries/typescript/packages/mcp-use/src/agents/remote.ts | 249 | // Step 2: Execute the agent within the chat context | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1255 | // Step 1: Call auth() to trigger redirectToAuthorization and OAuth discovery | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1264 | // Step 2: Get the authorization code that was captured during redirectToAuthorization | COMMENT |
| LOW⚡ | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1274 | // 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 | 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 |
|---|---|---|---|---|
| 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 | …ipt/packages/mcp-use/tests/integration/agent/README.md | 108 | export OPENAI_API_KEY="your-api-key" | CODE |
| HIGH | …p-use/examples/agent/basic/simplified_agent_example.ts | 60 | // apiKey: 'your-api-key' // Optional: override environment variable | COMMENT |
| HIGH | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 86 | * headers: { Authorization: 'Bearer YOUR_API_KEY' } | COMMENT |
| HIGH | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1191 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | CODE |
| HIGH | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1205 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | CODE |
| HIGH | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1316 | "(e.g., Authorization: Bearer YOUR_API_KEY)." | 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 | libraries/typescript/packages/inspector/tsup.client.ts | 21 | ], | COMMENT |
| LOW | …t/packages/inspector/src/client/components/ChatTab.tsx | 181 | setTempModel, | COMMENT |
| LOW | …t/packages/inspector/src/client/components/ChatTab.tsx | 201 | // and set `chatApiUrl` to the org chat stream. They must not fall back to | COMMENT |
| LOW | libraries/typescript/packages/cli/src/index.ts | 501 | await registerNextShimsInProcess(); | COMMENT |
| LOW | libraries/typescript/packages/cli/src/index.ts | 1461 | console.log( | COMMENT |
| LOW | libraries/typescript/packages/cli/src/index.ts | 1981 | // transitive imports like `@/lib/...`. Registering without a namespace | COMMENT |
| LOW | libraries/typescript/packages/cli/src/index.ts | 2041 | const serverFilePath = path.join(projectPath, serverFile); | COMMENT |
| LOW | …/examples/server/features/nextjs-drop-in/next-env.d.ts | 1 | /// <reference types="next" /> | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 61 | # Specifies an ordered list of seed files to load during db reset. | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 101 | # sender_name = "Admin" | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 121 | # The base URL of your website. Used as an allow-list for redirects and for constructing URLs used | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 161 | web3 = 30 | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 181 | # Number of characters used in the email OTP. | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 201 | [auth.sms] | COMMENT |
| LOW | …cp-use/examples/server/deployment/supabase/config.toml | 221 | COMMENT | |
| LOW | …s/typescript/packages/mcp-use/src/auth/popup-runner.ts | 1 | // popup-runner.ts | COMMENT |
| LOW | …s/typescript/packages/mcp-use/src/server/mcp-server.ts | 2081 | // Sync widget definitions (for widget() helper metadata) | COMMENT |
| LOW | …ckages/mcp-use/src/server/widgets/mount-widgets-dev.ts | 1201 | // | COMMENT |
| LOW | …cript/packages/mcp-use/src/react/McpClientProvider.tsx | 901 | // servers from a ref lets us run the wrapper teardown side effects | COMMENT |
| LOW | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 2341 | 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 | 141 | run: | | COMMENT |
| 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 |
|---|---|---|---|---|
| HIGH | …/packages/inspector/src/client/utils/mcpClientUtils.ts | 425 | print(f"Available tools: {[tool.name for tool in tools]}") | CODE |
| HIGH | …/packages/inspector/src/client/utils/mcpClientUtils.ts | 429 | print(f"Available resources: {[resource.name for resource in resources]}") | CODE |
| HIGH | libraries/typescript/packages/cli/src/utils/oauth.ts | 45 | print(`→ OAuth authentication required.`); | CODE |
| HIGH | libraries/typescript/packages/cli/src/utils/oauth.ts | 46 | print( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | CONTRIBUTING.md | 198 | │ └── 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 | [. | 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⚡ | …/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 | …script/packages/inspector/tests/e2e/connection.test.ts | 715 | await expect(nameField).toHaveValue("John Doe"); | CODE |
| LOW | …script/packages/inspector/tests/e2e/connection.test.ts | 743 | await expect(textContent).toContainText("John Doe"); | CODE |
| LOW | …create-mcp-use-app/src/__tests__/dot-directory.test.ts | 163 | JSON.stringify({ name: "placeholder", description: "" }, null, 2) | CODE |
| LOW | …ackages/mcp-use/examples/server/oauth/workos/README.md | 176 | email: "user@example.com", | CODE |
| LOW | …ackages/mcp-use/examples/server/oauth/workos/README.md | 177 | name: "John Doe", | CODE |
| LOW | …ackages/mcp-use/examples/server/oauth/workos/README.md | 202 | email: "user@example.com", | CODE |
| LOW | …packages/mcp-use/examples/server/oauth/clerk/README.md | 145 | email: "user@example.com", | CODE |
| LOW | …packages/mcp-use/examples/server/oauth/clerk/README.md | 146 | name: "Jane Doe" | CODE |
| LOW | …packages/mcp-use/examples/server/oauth/auth0/README.md | 206 | "email": "user@example.com", | CODE |
| LOW | …packages/mcp-use/examples/server/oauth/auth0/README.md | 207 | "name": "John Doe", | CODE |
| LOW | …use/examples/server/features/conformance/src/server.ts | 260 | name: z.string().default("John Doe"), | CODE |
| LOW | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 97 | * const result = await mcp.callTool('send-email', { to: 'user@example.com' }) | COMMENT |
| LOW | …raries/typescript/packages/mcp-use/src/react/useMcp.ts | 1420 | * to: 'user@example.com', | COMMENT |
| 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 | …s/typescript/packages/mcp-use/src/auth/popup-runner.ts | 17 | // 3. A `storage` event for this flow's tokens key. This is the most robust | COMMENT |
| MEDIUM | …escript/packages/mcp-use/src/server/connect-adapter.ts | 42 | // For 3-4 params, verify it uses Express patterns to be more 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 | …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 |
|---|---|---|---|---|
| MEDIUM | libraries/python/examples/simple_oauth_example.py | 21 | # Option 2: If you already have a registered client_id, you can use it: | COMMENT |
| MEDIUM | …use/examples/server/features/elicitation/src/server.ts | 101 | "Authorize access to a service using URL mode elicitation (for demonstration purposes)", | CODE |