Repository Analysis

mcp-use/mcp-use

The fullstack MCP framework to develop MCP Apps for ChatGPT / Claude & MCP Servers for AI Agents.

6.6 Low AI signal View on GitHub

Analysis Overview

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).

6.6
Adjusted Score
6.6
Raw Score
100%
Time Factor
2026-07-14
Last Push
10.3K
Stars
TypeScript
Language
290.3K
Lines of Code
1.2K
Files
1.3K
Pattern Hits
2026-07-14
Scan Date
0.02
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 29MEDIUM 205LOW 1019

Directory Score Breakdown

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.

Pattern Findings

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.

Decorative Section Separators133 hits · 449 pts
SeverityFileLineSnippetContext
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py11# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py13# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py24# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py76# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py78# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py110# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py112# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py160# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py162# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py179# ---------------------------------------------------------------------------COMMENT
MEDIUMlibraries/python/tests/unit/server/test_json_schema.py181# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py143# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py145# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py153# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py155# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py174# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py176# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py189# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py191# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py221# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py223# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py22# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py24# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py52# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py54# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py128# ---------------------------------------------------------------------------COMMENT
MEDIUM…ries/python/tests/unit/server/test_list_tool_format.py130# ---------------------------------------------------------------------------COMMENT
MEDIUM…/python/tests/unit/server/auth/test_auth_middleware.py60# ============================================================================COMMENT
MEDIUM…/python/tests/unit/server/auth/test_auth_middleware.py62# ============================================================================COMMENT
MEDIUM…/python/tests/unit/server/auth/test_auth_middleware.py86# ============================================================================COMMENT
MEDIUM…/python/tests/unit/server/auth/test_auth_middleware.py88# ============================================================================COMMENT
MEDIUM…ries/python/tests/unit/server/auth/test_bearer_auth.py14# ============================================================================COMMENT
MEDIUM…ries/python/tests/unit/server/auth/test_bearer_auth.py16# ============================================================================COMMENT
MEDIUM…ries/python/tests/unit/server/auth/test_bearer_auth.py33# ============================================================================COMMENT
MEDIUM…ries/python/tests/unit/server/auth/test_bearer_auth.py35# ============================================================================COMMENT
MEDIUMlibraries/python/tests/integration/test_conformance.py69# =============================================================================COMMENT
MEDIUMlibraries/python/tests/integration/test_conformance.py71# =============================================================================COMMENT
MEDIUMlibraries/python/tests/integration/test_conformance.py141# =============================================================================COMMENT
MEDIUMlibraries/python/tests/integration/test_conformance.py143# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py38# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py41# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py63# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py65# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py351# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py353# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py404# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py406# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py452# =============================================================================COMMENT
MEDIUM…/integration/servers_for_testing/conformance_server.py454# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py74# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py76# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py196# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py198# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py217# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py219# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py269# =============================================================================COMMENT
MEDIUM…/integration/clients_for_testing/conformance_client.py271# =============================================================================COMMENT
MEDIUMlibraries/python/examples/server/context_example.py28# =============================================================================COMMENT
MEDIUMlibraries/python/examples/server/context_example.py30# =============================================================================COMMENT
73 more matches not shown…
Hyper-Verbose Identifiers402 hits · 430 pts
SeverityFileLineSnippetContext
LOWlibraries/python/tests/unit/test_client_capabilities.py30 def test_list_roots_callback_always_provided(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py64 async def test_set_roots_updates_cache(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py80 async def test_set_roots_sends_notification_when_connected(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py97 async def test_set_roots_no_notification_when_disconnected(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py114 async def test_internal_list_roots_callback_returns_roots(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py133 async def test_custom_list_roots_callback_takes_precedence(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py156 def test_get_roots_returns_copy(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py176 async def test_stdio_passes_list_roots_callback(self, mock_client_session, mock_connection_manager):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py214 async def test_http_passes_list_roots_callback(self, mock_client_session, mock_cm_class):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py246 def test_sampling_callback_stored(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py255 def test_elicitation_callback_stored(self):CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py267 async def test_all_callbacks_passed_to_client_session(self, mock_client_session, mock_connection_manager):CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py85 def test_init_with_env_api_key(self, mock_sandbox_modules, mock_os_environ):CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py95 def test_init_missing_api_key(self, mock_sandbox_modules):CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py101 def test_init_with_custom_options(self, mock_sandbox_modules):CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py166 async def test_connect_already_connected(self, mock_sandbox_modules):CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py269 async def test_cleanup_resources_with_exceptions(self, mock_logger, mock_sandbox_modules):CODE
LOWlibraries/python/tests/unit/test_agent.py25 def test_init_with_llm_and_client(self):CODE
LOWlibraries/python/tests/unit/test_agent.py39 def test_init_requires_llm_for_local(self):CODE
LOWlibraries/python/tests/unit/test_agent.py45 def test_init_requires_client_or_connectors(self):CODE
LOWlibraries/python/tests/unit/test_agent.py52 def test_init_with_connectors_only(self):CODE
LOWlibraries/python/tests/unit/test_agent.py63 def test_server_manager_requires_client(self):CODE
LOWlibraries/python/tests/unit/test_agent.py70 def test_init_remote_mode_with_agent_id(self):CODE
LOWlibraries/python/tests/unit/test_agent.py91 async def test_run_remote_delegates(self):CODE
LOWlibraries/python/tests/unit/test_agent.py110 async def test_run_local_calls_stream_and_consume(self):CODE
LOWlibraries/python/tests/unit/test_agent.py149 async def test_stream_remote_delegates(self):CODE
LOWlibraries/python/tests/unit/test_agent.py170 async def test_stream_initializes_and_finishes(self):CODE
LOWlibraries/python/tests/unit/test_agent.py200 async def test_stream_uses_external_history_and_sets_max_steps(self):CODE
LOWlibraries/python/tests/unit/test_agent.py238 async def test_stream_persists_tool_messages_in_history(self):CODE
LOWlibraries/python/tests/unit/test_agent.py282 async def test_stream_handles_block_tool_results_without_losing_history(self):CODE
LOWlibraries/python/tests/unit/test_agent.py346 async def test_stream_events_persists_block_tool_results_in_history(self):CODE
LOWlibraries/python/tests/unit/test_code_executor.py63 async def test_execute_with_variables(self, code_executor):STRING
LOWlibraries/python/tests/unit/test_code_executor.py93 async def test_execute_with_list_comprehension(self, code_executor):STRING
LOWlibraries/python/tests/unit/test_code_executor.py161 async def test_safe_builtins_available(self, code_executor):CODE
LOWlibraries/python/tests/unit/test_code_executor.py213 async def test_search_tools_function(self, mock_client, code_executor):CODE
LOWlibraries/python/tests/unit/test_code_executor.py238 async def test_search_tools_with_query(self, mock_client, code_executor):STRING
LOWlibraries/python/tests/unit/test_code_executor.py280 async def test_tool_namespaces_available(self, mock_client, code_executor):STRING
LOWlibraries/python/tests/unit/test_code_executor.py303 async def test_tool_wrapper_creation(self, mock_client, code_executor):STRING
LOWlibraries/python/tests/unit/test_enum_handling.py22 def test_fix_schema_with_enum(self):CODE
LOWlibraries/python/tests/unit/test_enum_handling.py34 def test_fix_schema_preserves_existing_type(self):CODE
LOWlibraries/python/tests/unit/test_enum_handling.py48 def test_enum_validation_works_after_fix(self):CODE
LOWlibraries/python/tests/unit/test_enum_handling.py71 def test_enum_validation_accepts_valid_values(self):CODE
LOWlibraries/python/tests/unit/test_enum_handling.py93 def test_recursive_schema_fixing(self):CODE
LOWlibraries/python/tests/unit/test_session.py24 def test_init_with_auto_connect_false(self):CODE
LOWlibraries/python/tests/unit/test_session.py58 async def test_async_context_manager(self):CODE
LOWlibraries/python/tests/unit/test_session.py66 async def test_is_connected_property(self):CODE
LOWlibraries/python/tests/unit/test_session.py104 async def test_initialize_already_connected(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py43 async def test_stop_with_normal_cleanup(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py52 async def test_stop_with_default_timeout(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py60 async def test_stop_with_custom_timeout(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py68 async def test_stop_with_slow_cleanup_exceeding_timeout(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py77 async def test_stop_with_hanging_cleanup(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py107 async def test_stop_when_task_not_started(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py120 async def test_stop_timeout_with_zero_timeout(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py128 async def test_timeout_during_task_execution(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py136 async def test_stop_without_hanging_task(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py145 async def test_timeout_with_close_exception(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py160 async def test_close_exception_without_timeout(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py174 async def test_stop_respects_total_timeout_timing(self):CODE
LOW…s/python/tests/unit/test_connection_manager_timeout.py192 async def test_stop_with_negative_timeout_waits_indefinitely(self):CODE
342 more matches not shown…
Unused Imports198 hits · 174 pts
SeverityFileLineSnippetContext
LOWlibraries/python/tests/unit/test_client_capabilities.py8CODE
LOWlibraries/python/tests/unit/test_client_capabilities.py13CODE
LOWlibraries/python/tests/unit/test_sandbox_connector.py6CODE
LOWlibraries/python/tests/unit/test_agent.py8CODE
LOWlibraries/python/tests/unit/test_enum_handling.py6CODE
LOWlibraries/python/tests/unit/test_enum_handling.py7CODE
LOWlibraries/python/tests/unit/test_enum_handling.py10CODE
LOWlibraries/python/tests/unit/test_enum_handling.py10CODE
LOWlibraries/python/tests/unit/test_session.py7CODE
LOW…aries/python/tests/unit/test_search_tools_issue_138.py14CODE
LOWlibraries/python/tests/unit/backward_compatibility.py14CODE
LOWlibraries/python/tests/unit/backward_compatibility.py15CODE
LOWlibraries/python/tests/unit/backward_compatibility.py16CODE
LOWlibraries/python/tests/unit/backward_compatibility.py17CODE
LOWlibraries/python/tests/unit/backward_compatibility.py18CODE
LOWlibraries/python/tests/unit/backward_compatibility.py19CODE
LOWlibraries/python/tests/unit/backward_compatibility.py20CODE
LOWlibraries/python/tests/unit/backward_compatibility.py21CODE
LOWlibraries/python/tests/unit/backward_compatibility.py23CODE
LOWlibraries/python/tests/unit/backward_compatibility.py24CODE
LOWlibraries/python/tests/unit/backward_compatibility.py25CODE
LOWlibraries/python/tests/unit/backward_compatibility.py28CODE
LOWlibraries/python/tests/unit/backward_compatibility.py29CODE
LOWlibraries/python/tests/unit/backward_compatibility.py32CODE
LOWlibraries/python/tests/unit/backward_compatibility.py33CODE
LOWlibraries/python/tests/unit/backward_compatibility.py34CODE
LOWlibraries/python/tests/unit/backward_compatibility.py35CODE
LOWlibraries/python/tests/unit/backward_compatibility.py36CODE
LOWlibraries/python/tests/unit/backward_compatibility.py37CODE
LOWlibraries/python/tests/unit/backward_compatibility.py40CODE
LOWlibraries/python/tests/unit/backward_compatibility.py41CODE
LOWlibraries/python/tests/unit/backward_compatibility.py42CODE
LOWlibraries/python/tests/unit/backward_compatibility.py43CODE
LOWlibraries/python/tests/unit/backward_compatibility.py44CODE
LOWlibraries/python/tests/unit/backward_compatibility.py45CODE
LOWlibraries/python/tests/unit/backward_compatibility.py48CODE
LOWlibraries/python/tests/unit/backward_compatibility.py49CODE
LOWlibraries/python/tests/unit/backward_compatibility.py50CODE
LOWlibraries/python/tests/unit/backward_compatibility.py51CODE
LOWlibraries/python/tests/unit/backward_compatibility.py52CODE
LOWlibraries/python/tests/unit/backward_compatibility.py55CODE
LOWlibraries/python/tests/unit/backward_compatibility.py56CODE
LOWlibraries/python/tests/unit/backward_compatibility.py57CODE
LOWlibraries/python/tests/unit/backward_compatibility.py58CODE
LOWlibraries/python/tests/unit/backward_compatibility.py59CODE
LOWlibraries/python/tests/unit/backward_compatibility.py60CODE
LOWlibraries/python/tests/unit/backward_compatibility.py61CODE
LOWlibraries/python/tests/unit/backward_compatibility.py62CODE
LOWlibraries/python/tests/unit/backward_compatibility.py63CODE
LOWlibraries/python/tests/unit/backward_compatibility.py64CODE
LOWlibraries/python/tests/unit/backward_compatibility.py65CODE
LOWlibraries/python/tests/unit/backward_compatibility.py66CODE
LOWlibraries/python/tests/unit/backward_compatibility.py67CODE
LOWlibraries/python/tests/unit/backward_compatibility.py68CODE
LOWlibraries/python/tests/unit/backward_compatibility.py69CODE
LOWlibraries/python/tests/unit/backward_compatibility.py72CODE
LOWlibraries/python/tests/unit/backward_compatibility.py73CODE
LOWlibraries/python/tests/unit/backward_compatibility.py74CODE
LOWlibraries/python/tests/unit/backward_compatibility.py75CODE
LOWlibraries/python/tests/unit/backward_compatibility.py76CODE
138 more matches not shown…
Excessive Try-Catch Wrapping138 hits · 154 pts
SeverityFileLineSnippetContext
LOW…integration/servers_for_testing/timeout_test_server.py113 except Exception as e:CODE
MEDIUM…integration/servers_for_testing/timeout_test_server.py114 print(f"Error in SSE connection {connection_id}: {e}")CODE
MEDIUM…integration/servers_for_testing/timeout_test_server.py85def event_generator():CODE
LOW…/integration/clients_for_testing/conformance_client.py152 except Exception as e:CODE
LOW…/integration/clients_for_testing/conformance_client.py249 except Exception:CODE
LOW…/integration/clients_for_testing/conformance_client.py265 except Exception:CODE
LOW…/integration/clients_for_testing/conformance_client.py328 except Exception:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py318 except Exception:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py552 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py623 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py1104 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py606 except Exception as e:STRING
LOWlibraries/python/mcp_use/agents/mcpagent.py909 except Exception as e:STRING
LOWlibraries/python/mcp_use/agents/mcpagent.py918 except Exception as e:STRING
LOWlibraries/python/mcp_use/agents/remote.py137 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/remote.py149 except Exception as fallback_e:CODE
LOWlibraries/python/mcp_use/agents/remote.py196 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/remote.py255 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/remote.py359 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/display.py120 except Exception:CODE
LOW…hon/mcp_use/agents/middleware/tool_error_middleware.py58 except Exception as e:CODE
LOW…aries/python/mcp_use/agents/managers/server_manager.py58 except Exception:CODE
LOW…aries/python/mcp_use/agents/managers/server_manager.py80 except Exception as e:CODE
LOW…s/python/mcp_use/agents/managers/tools/search_tools.py111 except Exception as e:CODE
LOW…s/python/mcp_use/agents/managers/tools/search_tools.py173 except Exception:CODE
LOW…s/python/mcp_use/agents/managers/tools/search_tools.py202 except Exception:CODE
LOW…python/mcp_use/agents/managers/tools/connect_server.py71 except Exception as e:CODE
LOW…hon/mcp_use/agents/managers/tools/list_servers_tool.py45 except Exception as e:CODE
LOW…hon/mcp_use/agents/managers/tools/disconnect_server.py37 except Exception as e:CODE
LOW…braries/python/mcp_use/agents/observability/laminar.py41 except Exception as e:CODE
LOW…es/python/mcp_use/agents/adapters/langchain_adapter.py194 except Exception as e:CODE
LOW…es/python/mcp_use/agents/adapters/langchain_adapter.py203 except Exception as e:CODE
LOW…es/python/mcp_use/agents/adapters/langchain_adapter.py244 except Exception as e:CODE
LOW…es/python/mcp_use/agents/adapters/langchain_adapter.py301 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/adapters/base.py111 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/adapters/base.py116 except Exception as e:CODE
LOWlibraries/python/mcp_use/agents/adapters/base.py340 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/server.py431 except Exception:CODE
LOWlibraries/python/mcp_use/server/middleware/telemetry.py21 except Exception as exc:CODE
LOWlibraries/python/mcp_use/server/middleware/telemetry.py43 except Exception as exc:CODE
LOWlibraries/python/mcp_use/server/middleware/telemetry.py62 except Exception as exc:CODE
LOWlibraries/python/mcp_use/server/auth/middleware.py108 except Exception:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py80 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py87 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py94 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py101 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py108 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py116 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py131 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py147 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/openmcp.py161 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/inspector.py51 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/utils/inspector.py84 except Exception as e:CODE
LOWlibraries/python/mcp_use/server/templates/cli.py206 except Exception:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py70 except Exception as e:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py162 except Exception as e:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py179 except Exception as e:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py211 except Exception as e:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py240 except Exception as e:CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py254 except Exception as e:CODE
78 more matches not shown…
Self-Referential Comments45 hits · 140 pts
SeverityFileLineSnippetContext
MEDIUMlibraries/python/tests/unit/test_client_capabilities.py122 # Create a mock contextCOMMENT
MEDIUMlibraries/python/tests/unit/test_client_capabilities.py145 # Create a mock contextCOMMENT
MEDIUMlibraries/python/tests/unit/test_code_executor.py305 # Create a mock session with a toolCOMMENT
MEDIUMlibraries/python/tests/unit/test_enum_handling.py50 # Create a schema that would cause the original issueCOMMENT
MEDIUMlibraries/python/tests/unit/test_enum_handling.py73 # Create a schema with enumCOMMENT
MEDIUM…aries/python/tests/unit/test_search_tools_issue_138.py107 # Create a ToolSearchEngine instance with mocked server_toolsCOMMENT
MEDIUMlibraries/python/tests/unit/test_config.py24 # Create a temporary file with test configCOMMENT
MEDIUMlibraries/python/tests/unit/test_stdio_connector.py336 # Define the nested structureCOMMENT
MEDIUMlibraries/python/tests/unit/test_client.py50 # Create a temporary file with test configCOMMENT
MEDIUMlibraries/python/tests/unit/test_client.py70 # Create a temporary file with test configCOMMENT
MEDIUMlibraries/python/tests/unit/test_client.py181 # Create a temporary file pathCOMMENT
MEDIUMlibraries/python/tests/unit/test_http_connector.py419 # Define the detailed structure that the connector's read_resource methodCOMMENT
MEDIUM…/python/tests/integration/agent/test_server_manager.py50 # Create the get_greeting_tool dynamically inside the managerCOMMENT
MEDIUM…thon/tests/integration/client/others/test_code_mode.py71 # Create a temporary config fileCOMMENT
MEDIUMlibraries/python/mcp_use/agents/mcpagent.py160 # Create the adapter for tool conversionCOMMENT
MEDIUMlibraries/python/mcp_use/agents/mcpagent.py191 # Create the system message based on available toolsCOMMENT
MEDIUMlibraries/python/mcp_use/agents/mcpagent.py243 # Create the system message based on available toolsCOMMENT
MEDIUMlibraries/python/mcp_use/agents/mcpagent.py246 # Create the agentCOMMENT
MEDIUM…s/python/mcp_use/agents/managers/tools/search_tools.py277 # Create a new results list with marked active serverCOMMENT
MEDIUM…raries/python/mcp_use/agents/observability/langfuse.py25 # Create a custom CallbackHandler wrapper to add loggingCOMMENT
MEDIUM…es/python/mcp_use/agents/adapters/langchain_adapter.py282 # Create an empty Pydantic model if there are no argumentsCOMMENT
MEDIUMlibraries/python/mcp_use/client/client.py251 # Create a session for itCOMMENT
MEDIUMlibraries/python/mcp_use/client/client.py320 # Create the sessionCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/sandbox.py255 # Create the SSE connection URLCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/sandbox.py262 # Create the client sessionCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/http.py141 # Create a temporary client for OAuth metadata discoveryCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/http.py286 # Create the client session for SSECOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/stdio.py87 # Create the client sessionCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/websocket.py186 # Create a request IDCOMMENT
MEDIUMlibraries/python/mcp_use/client/connectors/websocket.py189 # Create a future to receive the responseCOMMENT
MEDIUMlibraries/python/mcp_use/client/auth/oauth_callback.py46 # Create the serverCOMMENT
MEDIUMlibraries/python/mcp_use/client/auth/oauth.py141 # Create a safe filename from the URLCOMMENT
MEDIUMlibraries/python/mcp_use/client/auth/oauth.py717 # Create a safe filename from the server URLCOMMENT
MEDIUMlibraries/python/mcp_use/client/auth/oauth.py732 # Create a safe filename from the server URLCOMMENT
MEDIUMlibraries/python/mcp_use/client/task_managers/sse.py63 # Create the context managerCOMMENT
MEDIUM…python/mcp_use/client/task_managers/streamable_http.py68 # Create the httpx client with auth, headers, and timeoutsCOMMENT
MEDIUM…python/mcp_use/client/task_managers/streamable_http.py79 # Create the streamable HTTP context managerCOMMENT
MEDIUMlibraries/python/mcp_use/client/task_managers/stdio.py51 # Create the context managerCOMMENT
MEDIUMlibraries/python/mcp_use/client/task_managers/base.py75 # Create a task to establish and maintain the connectionCOMMENT
MEDIUM…aries/python/mcp_use/client/task_managers/websocket.py47 # Create the context managerCOMMENT
MEDIUMlibraries/python/examples/simple_server_manager_use.py84 # Create an MCPAgent with the custom server managerCOMMENT
MEDIUMlibraries/python/examples/multi_server_example.py23 # Create a configuration with multiple serversCOMMENT
MEDIUM…aries/python/examples/langchain_integration_example.py51 # Create the LangChain agentCOMMENT
MEDIUM…/mcp-use/examples/client/cli/cli_filesystem_example.sh12# Create a temporary directory for testingCOMMENT
MEDIUMdocs/generate_docs.py804 # Create a mock parameter object for the annotationCOMMENT
Redundant / Tautological Comments60 hits · 93 pts
SeverityFileLineSnippetContext
LOW…integration/servers_for_testing/timeout_test_server.py96 # Check if we should timeoutCOMMENT
LOWlibraries/python/mcp_use/logging.py83 # Set propagate to True to ensure child loggers inherit settingsCOMMENT
LOWlibraries/python/mcp_use/agents/mcpagent.py868 # Check if we should restart or if execution completedSTRING
LOWlibraries/python/mcp_use/agents/remote.py113 # Check if this is a nested result structure (agent execution response)COMMENT
LOW…aries/python/mcp_use/agents/managers/server_manager.py70 # Check if this server's tools have changedCOMMENT
LOW…python/mcp_use/agents/managers/tools/connect_server.py28 # Check if server existsCOMMENT
LOW…braries/python/mcp_use/agents/observability/laminar.py12# Check if Laminar is disabled via environment variableCOMMENT
LOW…raries/python/mcp_use/agents/observability/langfuse.py6# Check if Langfuse is disabled via environment variableCOMMENT
LOWlibraries/python/mcp_use/agents/adapters/base.py187 # Check if we already have tools for this connectorCOMMENT
LOWlibraries/python/mcp_use/server/auth/middleware.py71 # Check if path should be excluded from authCOMMENT
LOWlibraries/python/mcp_use/server/auth/middleware.py78 # Check if this is a protected pathCOMMENT
LOWlibraries/python/mcp_use/server/utils/inspector.py28 # Check if server or autoConnect parameter is already presentCOMMENT
LOWlibraries/python/mcp_use/server/logging/config.py16 # Check if args contain a path that starts with inspector_pathCOMMENT
LOWlibraries/python/mcp_use/telemetry/telemetry.py58 # Check if telemetry is disabled on this instanceCOMMENT
LOWlibraries/python/mcp_use/telemetry/telemetry.py296 # Check if version file existsCOMMENT
LOWlibraries/python/mcp_use/client/client.py417 # Check if the session existsCOMMENT
LOWlibraries/python/mcp_use/client/connectors/http.py102 # Check if this is an OAuth provider configurationCOMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py376 # Check if we have a client sessionCOMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py386 # Check if we have a connection manager and if its task is still runningCOMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py389 # Check if the connection manager task is done (indicates disconnection)COMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py257 # Check if already initializedCOMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py403 # Check if streams are closed using getattr with default valueCOMMENT
LOWlibraries/python/mcp_use/client/connectors/base.py473 # Check if the error might be due to connection lossCOMMENT
LOWlibraries/python/mcp_use/client/connectors/websocket.py101 # Check if this is a response to a pending requestCOMMENT
LOWlibraries/python/mcp_use/client/auth/oauth.py298 # Check if code challenge exists with S256COMMENT
LOWlibraries/python/mcp_use/client/auth/oauth.py305 # Check if it supports CIMDCOMMENT
LOWlibraries/python/mcp_use/client/auth/oauth.py644 # Check if token expires in more than 60 secondsCOMMENT
LOWlibraries/python/mcp_use/client/auth/oauth.py744 # Check if registration is still valid (if expiry info provided)COMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh32# Check if Docker is runningCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh41# Check if project has widgetsCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh45 # Check if resources directory existsCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh63 # Check if it's a file with .tsx or .ts extensionCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh68 # Check if it's a directory with widget.tsx insideCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh157# Check if supabase CLI is installedCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh169# Check if supabase is initializedCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh179# Check if user is logged inCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh199# Check if project is linkedCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh218 # Check if linked project looks like a valid Supabase project ref (20 chars alphanumeric)COMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh316# Check if dist directory existsCOMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh356# Check if index.ts exists, if not copy from current root or src/COMMENT
LOW…/mcp-use/examples/server/deployment/supabase/deploy.sh426# Set CSP_URLS to allow widget assets from storage bucketCOMMENT
LOWdocs/generate_docs.py361 # Check if this line starts a new section (not indented)COMMENT
LOWdocs/generate_docs.py600 # Check if this line starts a new section (like "Example:")COMMENT
LOWdocs/generate_docs.py884 # Check if this property is defined in a parent classCOMMENT
LOWdocs/generate_docs.py892 # Check if this method is defined in a parent classCOMMENT
LOWdocs/generate_docs.py1153 # Check if module only contains deprecated itemsCOMMENT
LOWdocs/generate_docs.py1155 # Check if all classes and functions are deprecatedCOMMENT
LOWdocs/generate_docs.py1243 # Write the fileCOMMENT
LOWdocs/generate_docs.py1278 # Check if module matches any exclusion patternCOMMENT
LOWdocs/generate_docs.py1408 # Check if this is a compound name we need to preserveCOMMENT
LOWdocs/generate_docs.py1589 # Check if this package has subpackagesCOMMENT
LOW.github/workflows/python-release.yml139 # Check if draft release existsCOMMENT
LOW.github/workflows/python-release.yml179 # Check if a published release with this version already existsCOMMENT
LOW.github/workflows/python-release.yml228 # Check if this version exists on PyPICOMMENT
LOW.github/workflows/python-release.yml264 # Check if the tag exists on the remote before attempting to deleteCOMMENT
LOW.github/workflows/update-mcp-sdk-fork.yml53 # Check if versions are differentCOMMENT
LOW.github/workflows/update-mcp-sdk-fork.yml68 # Check if it's a major version bump (skip major updates)COMMENT
LOW.github/workflows/update-mcp-sdk-fork.yml76 # Check if PR already exists for this versionCOMMENT
LOW.github/workflows/ci.yml235 # Check if tests passedCOMMENT
LOW.github/workflows/ci.yml400 # Check if tests passedCOMMENT
Structural Annotation Overuse45 hits · 88 pts
SeverityFileLineSnippetContext
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1294 // Step 2: delete widget and verify resource disappears.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1303 // 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.ts1354 // Step 2: Trigger HMR by changing tool descriptionCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1363 // Step 3: Check same session still has full metadataCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1370 // Step 4: Simulate page reload by creating new MCP sessionCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1389 // Step 5: Fetch metadata in new session - THIS is the critical checkCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1396 // Step 6: Execute the tool to verify it still renders widgets correctlyCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1139 // 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.ts1174 // Step 2: Verify the widget resource appears in the Resources tab.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1190 // Step 3: Edit server.ts to add a tool that returns this widgetCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1213 // Step 4: Navigate to Tools tab and execute the toolCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1274 // Step 1: add widget and verify it appears as a resource.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1327 // Step 1: Fetch initial tool metadata via MCP protocolCOMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx84 // Step 1: Normalize anyOf unions (handles FastMCP optional fields with $ref)COMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx87 // Step 2: Resolve any remaining $refs at top levelCOMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx90 // Step 3: Extract enum valuesCOMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8660 ## Step 5: Commit EverythingCOMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8668 ## Step 6: Create Pull RequestCOMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8696 ## Step 7: Review & MergeCOMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8704 ## Step 8: Release (Maintainer Task)COMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8765 ## Step 9: Publish to npmCOMMENT
LOWlibraries/typescript/packages/mcp-use/CHANGELOG.md8799 ## Step 10: Verify PublicationCOMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts182 // Step 1: kick off the flow. SDK does discovery + DCR + builds authorize URL,COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts199 // Step 2: simulate the AS redirecting the user back to our loopback.COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts207 // Step 3: orchestrator awaits the code.COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts211 // Step 4: exchange the code for tokens.COMMENT
LOW…aries/typescript/packages/mcp-use/src/agents/remote.ts242 // 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.ts249 // Step 2: Execute the agent within the chat contextCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1255 // Step 1: Call auth() to trigger redirectToAuthorization and OAuth discoveryCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1264 // Step 2: Get the authorization code that was captured during redirectToAuthorizationCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1274 // Step 3: Complete the OAuth flow by exchanging code for tokensCOMMENT
LOWdocs/generate_docs.py1828 # Step 2: Update docs.jsonCOMMENT
LOWdocs/generate_docs.py1780 # Step 1: Generate all API docsCOMMENT
LOWskills/mcp-apps-builder/SKILL.md336// Step 1: Define schema separatelyCOMMENT
LOWskills/mcp-apps-builder/SKILL.md342// Step 2: Reference schema variable in metadataCOMMENT
LOWskills/mcp-apps-builder/SKILL.md349// Step 3: Infer Props type from schema variableCOMMENT
LOWskills/mcp-apps-builder/SKILL.md352// Step 4: Use typed Props with useWidgetCOMMENT
LOWskills/chatgpt-app-builder/SKILL.md336// Step 1: Define schema separatelyCOMMENT
LOWskills/chatgpt-app-builder/SKILL.md342// Step 2: Reference schema variable in metadataCOMMENT
LOWskills/chatgpt-app-builder/SKILL.md349// Step 3: Infer Props type from schema variableCOMMENT
LOWskills/chatgpt-app-builder/SKILL.md352// Step 4: Use typed Props with useWidgetCOMMENT
LOWskills/mcp-builder/SKILL.md336// Step 1: Define schema separatelyCOMMENT
LOWskills/mcp-builder/SKILL.md342// Step 2: Reference schema variable in metadataCOMMENT
LOWskills/mcp-builder/SKILL.md349// Step 3: Infer Props type from schema variableCOMMENT
LOWskills/mcp-builder/SKILL.md352// Step 4: Use typed Props with useWidgetCOMMENT
Verbosity Indicators27 hits · 52 pts
SeverityFileLineSnippetContext
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1294 // Step 2: delete widget and verify resource disappears.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1303 // 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.ts1354 // Step 2: Trigger HMR by changing tool descriptionCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1363 // Step 3: Check same session still has full metadataCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1370 // Step 4: Simulate page reload by creating new MCP sessionCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1389 // Step 5: Fetch metadata in new session - THIS is the critical checkCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1396 // Step 6: Execute the tool to verify it still renders widgets correctlyCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1139 // 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.ts1174 // Step 2: Verify the widget resource appears in the Resources tab.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1190 // Step 3: Edit server.ts to add a tool that returns this widgetCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1213 // Step 4: Navigate to Tools tab and execute the toolCOMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1274 // Step 1: add widget and verify it appears as a resource.COMMENT
LOW…es/typescript/packages/inspector/tests/e2e/hmr.test.ts1327 // Step 1: Fetch initial tool metadata via MCP protocolCOMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx84 // Step 1: Normalize anyOf unions (handles FastMCP optional fields with $ref)COMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx87 // Step 2: Resolve any remaining $refs at top levelCOMMENT
LOW…ector/src/client/components/shared/SchemaFormField.tsx90 // Step 3: Extract enum valuesCOMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts182 // Step 1: kick off the flow. SDK does discovery + DCR + builds authorize URL,COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts199 // Step 2: simulate the AS redirecting the user back to our loopback.COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts207 // Step 3: orchestrator awaits the code.COMMENT
LOW…-use/tests/integration/auth/node-provider-flow.test.ts211 // Step 4: exchange the code for tokens.COMMENT
LOW…aries/typescript/packages/mcp-use/src/agents/remote.ts242 // 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.ts249 // Step 2: Execute the agent within the chat contextCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1255 // Step 1: Call auth() to trigger redirectToAuthorization and OAuth discoveryCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1264 // Step 2: Get the authorization code that was captured during redirectToAuthorizationCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1274 // Step 3: Complete the OAuth flow by exchanging code for tokensCOMMENT
LOWdocs/generate_docs.py1828 # Step 2: Update docs.jsonCOMMENT
LOWdocs/generate_docs.py1780 # Step 1: Generate all API docsCOMMENT
Deep Nesting53 hits · 45 pts
SeverityFileLineSnippetContext
LOWlibraries/python/tests/unit/server/test_runner.py48CODE
LOW…/integration/clients_for_testing/conformance_client.py227CODE
LOW…/integration/clients_for_testing/conformance_client.py274CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py180CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py259CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py283CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py573CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py641CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py1072CODE
LOWlibraries/python/mcp_use/agents/remote.py259CODE
LOWlibraries/python/mcp_use/agents/display.py41CODE
LOWlibraries/python/mcp_use/agents/display.py195CODE
LOWlibraries/python/mcp_use/agents/display.py359CODE
LOW…aries/python/mcp_use/agents/managers/server_manager.py44CODE
LOWlibraries/python/mcp_use/agents/adapters/base.py50CODE
LOWlibraries/python/mcp_use/server/auth/middleware.py64CODE
LOWlibraries/python/mcp_use/server/utils/utils.py26CODE
LOWlibraries/python/mcp_use/server/logging/middleware.py100CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py288CODE
LOWlibraries/python/mcp_use/telemetry/utils.py53CODE
LOWlibraries/python/mcp_use/client/code_executor.py129CODE
LOWlibraries/python/mcp_use/client/code_executor.py231CODE
LOWlibraries/python/mcp_use/client/code_executor.py275CODE
LOWlibraries/python/mcp_use/client/code_executor.py243CODE
LOWlibraries/python/mcp_use/client/code_executor.py282CODE
LOWlibraries/python/mcp_use/client/config.py38CODE
LOWlibraries/python/mcp_use/client/client.py518CODE
LOWlibraries/python/mcp_use/client/connectors/sandbox.py158CODE
LOWlibraries/python/mcp_use/client/connectors/http.py88CODE
LOWlibraries/python/mcp_use/client/connectors/base.py167CODE
LOWlibraries/python/mcp_use/client/connectors/base.py366CODE
LOWlibraries/python/mcp_use/client/connectors/websocket.py91CODE
LOWlibraries/python/mcp_use/client/auth/oauth.py276CODE
LOWlibraries/python/mcp_use/client/auth/oauth.py727CODE
LOWlibraries/python/examples/openai_integration_example.py16CODE
LOW…aries/python/examples/anthropic_integration_example.py16CODE
LOWlibraries/python/examples/google_integration_example.py17CODE
LOWdocs/generate_docs.py16CODE
LOWdocs/generate_docs.py62CODE
LOWdocs/generate_docs.py234CODE
LOWdocs/generate_docs.py295CODE
LOWdocs/generate_docs.py384CODE
LOWdocs/generate_docs.py406CODE
LOWdocs/generate_docs.py520CODE
LOWdocs/generate_docs.py573CODE
LOWdocs/generate_docs.py623CODE
LOWdocs/generate_docs.py667CODE
LOWdocs/generate_docs.py748CODE
LOWdocs/generate_docs.py1022CODE
LOWdocs/generate_docs.py1250CODE
LOWdocs/generate_docs.py1368CODE
LOWdocs/generate_docs.py1578CODE
LOWdocs/generate_docs.py1689CODE
Cross-File Repetition8 hits · 40 pts
SeverityFileLineSnippetContext
HIGH…es/python/mcp_use/agents/adapters/langchain_adapter.py0initialize a new adapter. args: disallowed_tools: list of tool names that should not be available.STRING
HIGHlibraries/python/mcp_use/agents/adapters/google.py0initialize a new adapter. args: disallowed_tools: list of tool names that should not be available.STRING
HIGHlibraries/python/mcp_use/agents/adapters/openai.py0initialize a new adapter. args: disallowed_tools: list of tool names that should not be available.STRING
HIGHlibraries/python/mcp_use/agents/adapters/anthropic.py0initialize a new adapter. args: disallowed_tools: list of tool names that should not be available.STRING
HIGHlibraries/python/mcp_use/agents/adapters/base.py0initialize a new adapter. args: disallowed_tools: list of tool names that should not be available.STRING
HIGHlibraries/python/examples/filesystem_use.py0basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any STRING
HIGHlibraries/python/examples/stream_example.py0basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any STRING
HIGHlibraries/python/examples/browser_use.py0basic usage example for mcp_use. this example demonstrates how to use the mcp_use library with mcpclient to connect any STRING
Modern Structural Boilerplate40 hits · 40 pts
SeverityFileLineSnippetContext
LOWlibraries/python/tests/integration/conftest.py8logger = logging.getLogger(__name__)CODE
LOW…thon/tests/integration/client/primitives/test_roots.py15logger = logging.getLogger(__name__)CODE
LOW…n/tests/integration/client/primitives/test_sampling.py10logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/logging.py113 def set_debug(cls, debug_level: int = 2) -> None:CODE
LOWlibraries/python/mcp_use/__init__.py26__all__ = [CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py423 def set_system_message(self, message: str) -> None:CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py436 def set_disallowed_tools(self, disallowed_tools: list[str]) -> None:CODE
LOWlibraries/python/mcp_use/agents/__init__.py11__all__ = [CODE
LOWlibraries/python/mcp_use/agents/display.py13logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/agents/middleware/__init__.py5__all__ = ["tool_error_handler"]CODE
LOWlibraries/python/mcp_use/agents/managers/__init__.py11__all__ = [CODE
LOW…aries/python/mcp_use/agents/managers/tools/__init__.py8__all__ = [CODE
LOW…braries/python/mcp_use/agents/observability/laminar.py10logger = logging.getLogger(__name__)CODE
LOW…raries/python/mcp_use/agents/observability/langfuse.py4logger = logging.getLogger(__name__)CODE
LOW…raries/python/mcp_use/agents/observability/__init__.py9__all__ = ["laminar", "langfuse", "ObservabilityManager", "get_default_manager", "create_manager"]CODE
LOW…thon/mcp_use/agents/observability/callbacks_manager.py10logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/runner.py21logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/server.py60logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/__init__.py9__all__ = [CODE
LOWlibraries/python/mcp_use/server/types.py9__all__ = ["TransportType"]CODE
LOWlibraries/python/mcp_use/server/__fastmcp.py5__all__ = ["FastMCP"]CODE
LOWlibraries/python/mcp_use/server/middleware/__init__.py10__all__ = [CODE
LOWlibraries/python/mcp_use/server/auth/__init__.py33__all__ = [CODE
LOWlibraries/python/mcp_use/server/auth/middleware.py19logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/auth/dependencies.py36def set_access_token(token: AccessToken | None) -> None:CODE
LOWlibraries/python/mcp_use/server/utils/inspector.py9logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/utils/utils.py6logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/server/logging/__init__.py37__all__ = [CODE
LOWlibraries/python/mcp_use/server/logging/state.py9def set_method_info(info: dict | None) -> None:CODE
LOWlibraries/python/mcp_use/telemetry/events.py270__all__ = [CODE
LOWlibraries/python/mcp_use/telemetry/__init__.py6__all__ = [CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py37logger = logging.getLogger(__name__)CODE
LOWlibraries/python/mcp_use/client/client.py240 def _setup_code_mode_connector(self) -> None:CODE
LOWlibraries/python/mcp_use/client/connectors/__init__.py17__all__ = [CODE
LOWlibraries/python/mcp_use/client/connectors/http.py88 def _set_auth(self, auth: str | dict[str, Any] | httpx.Auth) -> None:CODE
LOWlibraries/python/mcp_use/client/connectors/base.py146 async def set_roots(self, roots: list[Root]) -> None:CODE
LOWlibraries/python/mcp_use/client/middleware/__init__.py34__all__ = [CODE
LOWlibraries/python/mcp_use/client/auth/__init__.py6__all__ = ["BearerAuth", "OAuth"]CODE
LOW…raries/python/mcp_use/client/task_managers/__init__.py14__all__ = [CODE
LOWdocs/generate_docs.py1689def update_docs_json(docs_json_path: str, api_reference_dir: str) -> None:CODE
Docstring Block Structure7 hits · 35 pts
SeverityFileLineSnippetContext
HIGHCONTRIBUTING.md163Short description of what the function does. Args: param1: Description of param1 param2: DescriptioSTRING
HIGH…es/python/mcp_use/agents/adapters/langchain_adapter.py168Asynchronously execute the tool with given arguments. Args: kwargs: The arguments tSTRING
HIGHlibraries/python/mcp_use/client/client.py282Create a session for the specified server. Args: server_name: The name of the server to create a seSTRING
HIGHlibraries/python/mcp_use/client/client.py373Get an existing session. Args: server_name: The name of the server to get the session for. STRING
HIGHlibraries/python/mcp_use/client/client.py464Execute Python code with access to MCP tools (code mode). This method allows agents to interact with MCP tools STRING
HIGHlibraries/python/mcp_use/client/session.py99Call an MCP tool. Args: name: The name of the tool to call. arguments: The arguments toSTRING
HIGHlibraries/python/mcp_use/client/connectors/base.py450Call an MCP tool with automatic reconnection handling. Args: name: The name of the tool to call. STRING
Magic Placeholder Names6 hits · 35 pts
SeverityFileLineSnippetContext
HIGH…ipt/packages/mcp-use/tests/integration/agent/README.md108export OPENAI_API_KEY="your-api-key"CODE
HIGH…p-use/examples/agent/basic/simplified_agent_example.ts60 // apiKey: 'your-api-key' // Optional: override environment variableCOMMENT
HIGH…raries/typescript/packages/mcp-use/src/react/useMcp.ts86 * headers: { Authorization: 'Bearer YOUR_API_KEY' }COMMENT
HIGH…raries/typescript/packages/mcp-use/src/react/useMcp.ts1191 "(e.g., Authorization: Bearer YOUR_API_KEY)."CODE
HIGH…raries/typescript/packages/mcp-use/src/react/useMcp.ts1205 "(e.g., Authorization: Bearer YOUR_API_KEY)."CODE
HIGH…raries/typescript/packages/mcp-use/src/react/useMcp.ts1316 "(e.g., Authorization: Bearer YOUR_API_KEY)."CODE
Over-Commented Block32 hits · 32 pts
SeverityFileLineSnippetContext
LOW…ts/integration/servers_for_testing/primitive_server.py81# """Disable the logging_tool."""COMMENT
LOW…/tests/integration/client/primitives/test_discovery.py1# import asyncioCOMMENT
LOW…/tests/integration/client/primitives/test_discovery.py21# await session.call_tool(name="change_tools", arguments={})COMMENT
LOW…/tests/integration/client/primitives/test_discovery.py41COMMENT
LOW…/tests/integration/client/primitives/test_discovery.py61# prompts = await session.list_prompts()COMMENT
LOWlibraries/python/mcp_use/client/auth/oauth.py521 self._resource_metadata = ProtectedResourceMetadata(**prm)COMMENT
LOWlibraries/typescript/packages/inspector/tsup.client.ts21 ],COMMENT
LOW…t/packages/inspector/src/client/components/ChatTab.tsx181 setTempModel,COMMENT
LOW…t/packages/inspector/src/client/components/ChatTab.tsx201 // and set `chatApiUrl` to the org chat stream. They must not fall back toCOMMENT
LOWlibraries/typescript/packages/cli/src/index.ts501 await registerNextShimsInProcess();COMMENT
LOWlibraries/typescript/packages/cli/src/index.ts1461 console.log(COMMENT
LOWlibraries/typescript/packages/cli/src/index.ts1981 // transitive imports like `@/lib/...`. Registering without a namespaceCOMMENT
LOWlibraries/typescript/packages/cli/src/index.ts2041 const serverFilePath = path.join(projectPath, serverFile);COMMENT
LOW…/examples/server/features/nextjs-drop-in/next-env.d.ts1/// <reference types="next" />COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml61# Specifies an ordered list of seed files to load during db reset.COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml101# sender_name = "Admin"COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml121# The base URL of your website. Used as an allow-list for redirects and for constructing URLs usedCOMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml161web3 = 30COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml181# Number of characters used in the email OTP.COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml201[auth.sms]COMMENT
LOW…cp-use/examples/server/deployment/supabase/config.toml221COMMENT
LOW…s/typescript/packages/mcp-use/src/auth/popup-runner.ts1// popup-runner.tsCOMMENT
LOW…s/typescript/packages/mcp-use/src/server/mcp-server.ts2081 // Sync widget definitions (for widget() helper metadata)COMMENT
LOW…ckages/mcp-use/src/server/widgets/mount-widgets-dev.ts1201 //COMMENT
LOW…cript/packages/mcp-use/src/react/McpClientProvider.tsx901 // servers from a ref lets us run the wrapper teardown side effectsCOMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts2341 isMountedRef.current = false;COMMENT
LOW.github/workflows/inspector-e2e.yml1name: Inspector E2E TestsCOMMENT
LOW.github/workflows/inspector-e2e-sequential.yml1name: Inspector E2E Tests (Sequential)COMMENT
LOW.github/workflows/claude.yml41 # This is an optional setting that allows Claude to read CI results on PRsCOMMENT
LOW.github/workflows/ci.yml1name: CICOMMENT
LOW.github/workflows/ci.yml21# ├─ python-unit-tests: Matrix [Python 3.11, 3.12]COMMENT
LOW.github/workflows/ci.yml141 run: |COMMENT
Cross-Language Confusion4 hits · 20 pts
SeverityFileLineSnippetContext
HIGHlibraries/python/mcp_use/server/utils/json_schema.py26 """Return the non-null branch if *any_of* is exactly ``[<type>, null]``.STRING
HIGHlibraries/python/mcp_use/server/utils/json_schema.py53 If *prop* contains a nullable ``anyOf`` of the form ``[<type>, null]``,STRING
HIGHlibraries/python/examples/server/server_example.py69 # mcp-use simplifies these to {"type": "string", "default": null} instead ofCOMMENT
HIGHlibraries/python/examples/server/server_example.py70 # Pydantic's {"anyOf": [{"type": "string"}, {"type": "null"}], "default": null}COMMENT
Cross-Language Confusion (JS/TS)4 hits · 20 pts
SeverityFileLineSnippetContext
HIGH…/packages/inspector/src/client/utils/mcpClientUtils.ts425print(f"Available tools: {[tool.name for tool in tools]}")CODE
HIGH…/packages/inspector/src/client/utils/mcpClientUtils.ts429print(f"Available resources: {[resource.name for resource in resources]}")CODE
HIGHlibraries/typescript/packages/cli/src/utils/oauth.ts45 print(`→ OAuth authentication required.`);CODE
HIGHlibraries/typescript/packages/cli/src/utils/oauth.ts46 print(CODE
Modern AI Meta-Vocabulary7 hits · 19 pts
SeverityFileLineSnippetContext
MEDIUMCONTRIBUTING.md198│ └── create-mcp-use-app/ # Project scaffolding CLICODE
MEDIUMlibraries/typescript/README.md58| **[create-mcp-use-app](#create-mcp-use-app)** | Project scaffolding tool | [![npm](https://img.shCODE
MEDIUM…es/typescript/packages/create-mcp-use-app/src/utils.ts42// An empty result means it's safe to scaffold into `dir`.COMMENT
MEDIUM…es/typescript/packages/create-mcp-use-app/src/utils.ts62// Resolves what to scaffold given a raw user-supplied name.COMMENT
MEDIUMskills/openapi-to-mcp/SKILL.md165// Keep the MCPServer fields the scaffold gave you (title, baseUrl, favicon, icons).COMMENT
MEDIUMskills/openapi-to-mcp/references/code-templates.md30 // mcp-use and zod are already in the scaffoldCOMMENT
MEDIUMskills/openapi-to-mcp/references/code-templates.md33 // keep dev, build, start, deploy from the scaffold; just add this one:COMMENT
Fake / Example Data17 hits · 19 pts
SeverityFileLineSnippetContext
LOW…/python/tests/unit/server/auth/test_auth_middleware.py166 tokens = {"user-token": {"email": "user@example.com", "name": "Test User"}}CODE
LOW…/python/tests/unit/server/auth/test_auth_middleware.py175 assert data["claims"]["email"] == "user@example.com"CODE
LOW…/integration/servers_for_testing/conformance_server.py262 "name": {"type": "string", "default": "John Doe"},CODE
LOW…/integration/servers_for_testing/bearer_auth_server.py20 "email": "admin@example.com",CODE
LOW…script/packages/inspector/tests/e2e/connection.test.ts715 await expect(nameField).toHaveValue("John Doe");CODE
LOW…script/packages/inspector/tests/e2e/connection.test.ts743 await expect(textContent).toContainText("John Doe");CODE
LOW…create-mcp-use-app/src/__tests__/dot-directory.test.ts163 JSON.stringify({ name: "placeholder", description: "" }, null, 2)CODE
LOW…ackages/mcp-use/examples/server/oauth/workos/README.md176 email: "user@example.com",CODE
LOW…ackages/mcp-use/examples/server/oauth/workos/README.md177 name: "John Doe",CODE
LOW…ackages/mcp-use/examples/server/oauth/workos/README.md202 email: "user@example.com",CODE
LOW…packages/mcp-use/examples/server/oauth/clerk/README.md145 email: "user@example.com",CODE
LOW…packages/mcp-use/examples/server/oauth/clerk/README.md146 name: "Jane Doe"CODE
LOW…packages/mcp-use/examples/server/oauth/auth0/README.md206 "email": "user@example.com",CODE
LOW…packages/mcp-use/examples/server/oauth/auth0/README.md207 "name": "John Doe",CODE
LOW…use/examples/server/features/conformance/src/server.ts260 name: z.string().default("John Doe"),CODE
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts97 * const result = await mcp.callTool('send-email', { to: 'user@example.com' })COMMENT
LOW…raries/typescript/packages/mcp-use/src/react/useMcp.ts1420 * to: 'user@example.com',COMMENT
AI Slop Vocabulary7 hits · 17 pts
SeverityFileLineSnippetContext
LOW…python/mcp_use/agents/managers/tools/connect_server.py34 # If we're already connected to this server, just returnCOMMENT
MEDIUMlibraries/python/mcp_use/telemetry/telemetry.py360 """Track comprehensive agent execution"""STRING
MEDIUMlibraries/python/mcp_use/client/middleware/metrics.py308 """Get all analytics data in one comprehensive report."""STRING
MEDIUM…s/typescript/packages/mcp-use/src/auth/popup-runner.ts17// 3. A `storage` event for this flow's tokens key. This is the most robustCOMMENT
MEDIUM…escript/packages/mcp-use/src/server/connect-adapter.ts42 // For 3-4 params, verify it uses Express patterns to be more robustCOMMENT
MEDIUM.github/workflows/inspector-e2e.yml48 # Run all modes for comprehensive testing (or single mode for manual dispatch)COMMENT
MEDIUM.github/workflows/ci.yml9# This workflow provides comprehensive testing for both Python and TypeScriptCOMMENT
AI Structural Patterns18 hits · 16 pts
SeverityFileLineSnippetContext
LOW…ries/python/tests/unit/server/test_list_tool_format.py30CODE
LOWlibraries/python/mcp_use/agents/mcpagent.py69CODE
LOWlibraries/python/mcp_use/server/server.py78CODE
LOWlibraries/python/mcp_use/server/context.py113CODE
LOWlibraries/python/mcp_use/server/context.py71CODE
LOWlibraries/python/mcp_use/server/auth/middleware.py137CODE
LOWlibraries/python/mcp_use/telemetry/telemetry.py390CODE
LOWlibraries/python/mcp_use/client/config.py38CODE
LOWlibraries/python/mcp_use/client/client.py35CODE
LOWlibraries/python/mcp_use/client/client.py113CODE
LOWlibraries/python/mcp_use/client/client.py154CODE
LOWlibraries/python/mcp_use/client/connectors/sandbox.py66CODE
LOWlibraries/python/mcp_use/client/connectors/http.py31CODE
LOWlibraries/python/mcp_use/client/connectors/stdio.py29CODE
LOWlibraries/python/mcp_use/client/connectors/base.py527CODE
LOWlibraries/python/mcp_use/client/connectors/base.py555CODE
LOWlibraries/python/mcp_use/client/connectors/websocket.py241CODE
LOWlibraries/python/examples/server/server_example.py50CODE
Slop Phrases2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMlibraries/python/examples/simple_oauth_example.py21 # Option 2: If you already have a registered client_id, you can use it:COMMENT
MEDIUM…use/examples/server/features/elicitation/src/server.ts101 "Authorize access to a service using URL mode elicitation (for demonstration purposes)",CODE