Repository Analysis

modelcontextprotocol/python-sdk

The official Python SDK for Model Context Protocol servers and clients

34.7 Strong AI signal View on GitHub
34.7
Adjusted Score
34.7
Raw Score
100%
Time Factor
2026-05-30
Last Push
23,178
Stars
Python
Language
87,470
Lines of Code
487
Files
2201
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 154MEDIUM 183LOW 1864

Pattern Findings

2201 matches across 17 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1323 hits · 1288 pts
SeverityFileLineSnippet
LOWtests/test_examples.py51async def test_direct_call_tool_result_return():
LOWtests/test_types.py53async def test_method_initialization():
LOWtests/test_types.py138async def test_sampling_message_with_user_role():
LOWtests/test_types.py161async def test_sampling_message_with_assistant_role():
LOWtests/test_types.py191async def test_sampling_message_backward_compatibility():
LOWtests/test_types.py218async def test_create_message_request_params_with_tools():
LOWtests/test_types.py241async def test_create_message_result_with_tool_use():
LOWtests/test_types.py264async def test_create_message_result_basic():
LOWtests/test_types.py283async def test_client_capabilities_with_sampling_tools():
LOWtests/experimental/tasks/test_capabilities.py27 def test_required_requests_none_returns_true(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py33 def test_client_requests_none_returns_false(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py39 def test_elicitation_required_but_client_missing(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py47 def test_elicitation_create_required_but_client_missing(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py61 def test_elicitation_create_present(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py75 def test_sampling_required_but_client_missing(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py81 def test_sampling_create_message_required_but_client_missing(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py95 def test_sampling_create_message_present(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py109 def test_both_elicitation_and_sampling_present(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py125 def test_elicitation_without_create_required(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py139 def test_sampling_without_create_message_required(self) -> None:
LOWtests/experimental/tasks/test_capabilities.py218 def test_create_message_present(self) -> None:
LOWtests/experimental/tasks/test_message_queue.py42 async def test_dequeue_empty_returns_none(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py65 async def test_separate_queues_per_task(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py77 async def test_peek_does_not_remove(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py105 async def test_clear_returns_all_messages(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py125 async def test_notification_messages(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py147 async def test_message_with_resolver(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py167 async def test_cleanup_specific_task(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py189 async def test_wait_for_message_returns_immediately_if_message_exists(
LOWtests/experimental/tasks/test_message_queue.py201 async def test_wait_for_message_blocks_until_message(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py226 async def test_notify_message_available_wakes_waiter(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py251 async def test_peek_empty_queue_returns_none(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py257 async def test_wait_for_message_double_check_race_condition(self, queue: InMemoryTaskMessageQueue) -> None:
LOWtests/experimental/tasks/test_message_queue.py297 async def test_set_exception_and_wait(self) -> None:
LOWtests/experimental/tasks/test_message_queue.py309 async def test_set_result_when_already_completed_raises(self) -> None:
LOWtests/experimental/tasks/test_message_queue.py318 async def test_set_exception_when_already_completed_raises(self) -> None:
LOWtests/experimental/tasks/test_message_queue.py327 async def test_done_returns_false_before_completion(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py59def test_server_with_list_tasks_handler_declares_list_capability() -> None:
LOWtests/experimental/tasks/test_spec_compliance.py69def test_server_with_cancel_task_handler_declares_cancel_capability() -> None:
LOWtests/experimental/tasks/test_spec_compliance.py79def test_server_with_get_task_handler_declares_requests_tools_call_capability() -> None:
LOWtests/experimental/tasks/test_spec_compliance.py159 def test_tool_execution_task_forbidden_rejects_task_augmented_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py163 def test_tool_execution_task_absent_rejects_task_augmented_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py167 def test_tool_execution_task_optional_accepts_normal_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py171 def test_tool_execution_task_optional_accepts_task_augmented_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py175 def test_tool_execution_task_required_rejects_normal_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py179 def test_tool_execution_task_required_accepts_task_augmented_call(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py218 def test_task_begins_in_working_status(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py222 def test_working_to_completed_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py226 def test_working_to_failed_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py230 def test_working_to_cancelled_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py234 def test_working_to_input_required_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py238 def test_input_required_to_working_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py242 def test_input_required_to_terminal_transition(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py246 def test_terminal_state_no_further_transitions(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py250 def test_completed_is_terminal(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py258 def test_cancelled_is_terminal(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py290 def test_task_augmented_request_returns_create_task_result(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py294 def test_create_task_result_contains_task_id(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py298 def test_create_task_result_contains_status_working(self) -> None:
LOWtests/experimental/tasks/test_spec_compliance.py302 def test_create_task_result_contains_created_at(self) -> None:
1263 more matches not shown…
Cross-File Repetition122 hits · 610 pts
SeverityFileLineSnippet
HIGHREADME.v2.md0example showing lifespan support for startup/shutdown with strong typing.
HIGHREADME.md0example showing lifespan support for startup/shutdown with strong typing.
HIGHexamples/snippets/servers/lifespan_example.py0example showing lifespan support for startup/shutdown with strong typing.
HIGHREADME.v2.md0manage application lifecycle with type-safe context.
HIGHREADME.md0manage application lifecycle with type-safe context.
HIGHexamples/snippets/servers/lifespan_example.py0manage application lifecycle with type-safe context.
HIGHREADME.v2.md0{ "theme": "dark", "language": "en", "debug": false }
HIGHREADME.md0{ "theme": "dark", "language": "en", "debug": false }
HIGHexamples/snippets/servers/basic_resource.py0{ "theme": "dark", "language": "en", "debug": false }
HIGHREADME.v2.md0example showing direct calltoolresult return for advanced control.
HIGHREADME.md0example showing direct calltoolresult return for advanced control.
HIGHexamples/snippets/servers/direct_call_tool_result.py0example showing direct calltoolresult return for advanced control.
HIGHREADME.v2.md0return calltoolresult directly for full control including _meta field.
HIGHREADME.md0return calltoolresult directly for full control including _meta field.
HIGHexamples/snippets/servers/direct_call_tool_result.py0return calltoolresult directly for full control including _meta field.
HIGHREADME.v2.md0return calltoolresult with structured output validation.
HIGHREADME.md0return calltoolresult with structured output validation.
HIGHexamples/snippets/servers/direct_call_tool_result.py0return calltoolresult with structured output validation.
HIGHREADME.v2.md0for empty results, return calltoolresult with empty content.
HIGHREADME.md0for empty results, return calltoolresult with empty content.
HIGHexamples/snippets/servers/direct_call_tool_result.py0for empty results, return calltoolresult with empty content.
HIGHREADME.v2.md0this returns unstructured output - no schema generated
HIGHREADME.md0this returns unstructured output - no schema generated
HIGHexamples/snippets/servers/structured_output.py0this returns unstructured output - no schema generated
HIGHREADME.v2.md0cd to the `examples/snippets` directory and run: uv run completion-client
HIGHREADME.md0cd to the `examples/snippets` directory and run: uv run completion-client
HIGHexamples/snippets/clients/completion_client.py0cd to the `examples/snippets` directory and run: uv run completion-client
HIGHREADME.v2.md0elicitation examples demonstrating form and url mode elicitation. form mode elicitation collects structured, non-sensiti
HIGHREADME.md0elicitation examples demonstrating form and url mode elicitation. form mode elicitation collects structured, non-sensiti
HIGHexamples/snippets/servers/elicitation.py0elicitation examples demonstrating form and url mode elicitation. form mode elicitation collects structured, non-sensiti
HIGHREADME.v2.md0book a table with date availability check. this demonstrates form mode elicitation for collecting non-sensitive user inp
HIGHREADME.md0book a table with date availability check. this demonstrates form mode elicitation for collecting non-sensitive user inp
HIGHexamples/snippets/servers/elicitation.py0book a table with date availability check. this demonstrates form mode elicitation for collecting non-sensitive user inp
HIGHREADME.v2.md0process a secure payment requiring url confirmation. this demonstrates url mode elicitation using ctx.elicit_url() for o
HIGHREADME.md0process a secure payment requiring url confirmation. this demonstrates url mode elicitation using ctx.elicit_url() for o
HIGHexamples/snippets/servers/elicitation.py0process a secure payment requiring url confirmation. this demonstrates url mode elicitation using ctx.elicit_url() for o
HIGHREADME.v2.md0connect to a third-party service requiring oauth authorization. this demonstrates the "throw error" pattern using urleli
HIGHREADME.md0connect to a third-party service requiring oauth authorization. this demonstrates the "throw error" pattern using urleli
HIGHexamples/snippets/servers/elicitation.py0connect to a third-party service requiring oauth authorization. this demonstrates the "throw error" pattern using urleli
HIGHREADME.v2.md0run from the repository root: uv run examples/snippets/servers/oauth_server.py
HIGHREADME.md0run from the repository root: uv run examples/snippets/servers/oauth_server.py
HIGHexamples/snippets/servers/oauth_server.py0run from the repository root: uv run examples/snippets/servers/oauth_server.py
HIGHREADME.v2.md0example showing direct execution of an mcp server. this is the simplest way to run an mcp server directly. cd to the `ex
HIGHREADME.md0example showing direct execution of an mcp server. this is the simplest way to run an mcp server directly. cd to the `ex
HIGHexamples/snippets/servers/direct_execution.py0example showing direct execution of an mcp server. this is the simplest way to run an mcp server directly. cd to the `ex
HIGHREADME.v2.md0run from the repository root: uv run examples/snippets/servers/streamable_config.py
HIGHREADME.md0run from the repository root: uv run examples/snippets/servers/streamable_config.py
HIGHexamples/snippets/servers/streamable_config.py0run from the repository root: uv run examples/snippets/servers/streamable_config.py
HIGHREADME.v2.md0run from the repository root: uvicorn examples.snippets.servers.streamable_starlette_mount:app --reload
HIGHREADME.md0run from the repository root: uvicorn examples.snippets.servers.streamable_starlette_mount:app --reload
HIGHexamples/snippets/servers/streamable_starlette_mount.py0run from the repository root: uvicorn examples.snippets.servers.streamable_starlette_mount:app --reload
HIGHREADME.v2.md0basic example showing how to mount streamablehttp server in starlette. run from the repository root: uvicorn examples.sn
HIGHREADME.md0basic example showing how to mount streamablehttp server in starlette. run from the repository root: uvicorn examples.sn
HIGH…les/snippets/servers/streamable_http_basic_mounting.py0basic example showing how to mount streamablehttp server in starlette. run from the repository root: uvicorn examples.sn
HIGHREADME.v2.md0example showing how to mount streamablehttp server using host-based routing. run from the repository root: uvicorn examp
HIGHREADME.md0example showing how to mount streamablehttp server using host-based routing. run from the repository root: uvicorn examp
HIGH…ples/snippets/servers/streamable_http_host_mounting.py0example showing how to mount streamablehttp server using host-based routing. run from the repository root: uvicorn examp
HIGHREADME.v2.md0example showing how to mount multiple streamablehttp servers with path configuration. run from the repository root: uvic
HIGHREADME.md0example showing how to mount multiple streamablehttp servers with path configuration. run from the repository root: uvic
HIGH…s/snippets/servers/streamable_http_multiple_servers.py0example showing how to mount multiple streamablehttp servers with path configuration. run from the repository root: uvic
62 more matches not shown…
Self-Referential Comments100 hits · 326 pts
SeverityFileLineSnippet
MEDIUMtests/experimental/tasks/server/test_store.py220 # Create a task with very short TTL
MEDIUMtests/experimental/tasks/server/test_server.py358 # Create a task directly in the store for testing
MEDIUMtests/experimental/tasks/server/test_server.py375 # Create a completed task to test get_task_result
MEDIUMtests/experimental/tasks/server/test_server.py553 # Create a test message
MEDIUMtests/experimental/tasks/client/test_tasks.py112 # Create a task
MEDIUMtests/experimental/tasks/client/test_tasks.py163 # Create a task
MEDIUMtests/experimental/tasks/client/test_tasks.py287 # Create a task (but don't complete it)
MEDIUMtests/server/test_streamable_http_security.py56 # Create the ASGI handler
MEDIUMtests/server/test_session.py30 # Create a message handler to catch exceptions
MEDIUMtests/server/test_lowlevel_exception_handling.py48 # Create a mock RequestResponder
MEDIUMtests/server/test_lifespan.py43 # Create a tool that accesses lifespan context
MEDIUMtests/server/auth/test_protected_resource.py18 # Create the protected resource routes
MEDIUMtests/server/auth/middleware/test_auth_context.py53 # Create an authenticated user
MEDIUMtests/server/auth/middleware/test_bearer_auth.py323 # Create a user with read/write scopes but not admin
MEDIUMtests/server/auth/middleware/test_bearer_auth.py352 # Create a user with read/write scopes
MEDIUMtests/server/auth/middleware/test_bearer_auth.py380 # Create a user with read/write scopes
MEDIUMtests/server/auth/middleware/test_bearer_auth.py405 # Create a user with read/write scopes
MEDIUMtests/server/auth/middleware/test_bearer_auth.py430 # Create a user with read/write scopes
MEDIUMtests/server/mcpserver/test_func_metadata.py312 # Create a copy of the actual schema to normalize
MEDIUMtests/server/mcpserver/test_server.py413 # Create a test image
MEDIUMtests/server/mcpserver/test_server.py417 # Create a test audio
MEDIUMtests/server/mcpserver/test_server.py309 # Create a test image
MEDIUMtests/server/mcpserver/test_server.py329 # Create a test audio
MEDIUMtests/server/mcpserver/test_server.py365 # Create a test audio file with the specific extension
MEDIUMtests/server/mcpserver/test_server.py772 # Create a text file
MEDIUMtests/server/mcpserver/test_server.py788 # Create a binary file
MEDIUMtests/server/mcpserver/test_elicitation.py66 # Create a custom handler for elicitation requests
MEDIUMtests/server/mcpserver/auth/test_auth_integration.py107 # Create a RefreshToken object that matches what is expected in later code
MEDIUMtests/server/mcpserver/auth/test_auth_integration.py368 # Create an auth code for the registered client
MEDIUMtests/server/mcpserver/auth/test_auth_integration.py834 # Create a test client with the token
MEDIUM…s/server/mcpserver/resources/test_resource_template.py257 # Create a resource from the template
MEDIUM…s/server/mcpserver/resources/test_resource_template.py306 # Create a resource from the template
MEDIUMtests/shared/test_streamable_http.py1784 # Create a mock SSE event with empty data (keep-alive ping)
MEDIUMtests/shared/test_streamable_http.py1787 # Create a context-aware stream writer (matches StreamWriter type alias)
MEDIUMtests/shared/test_streamable_http.py1809 # Create a transport with an event store
MEDIUMtests/shared/test_streamable_http.py1815 # Create a mock stream writer
MEDIUMtests/shared/test_streamable_http.py1838 # Create a transport WITHOUT an event store
MEDIUMtests/shared/test_streamable_http.py1841 # Create a mock stream writer
MEDIUMtests/shared/test_streamable_http.py1858 # Create a transport with an event store AND retry_interval
MEDIUMtests/shared/test_streamable_http.py1865 # Create a mock stream writer
MEDIUMtests/shared/test_streamable_http.py1887 # Create a transport with an event store
MEDIUMtests/shared/test_streamable_http.py1893 # Create a mock message and request
MEDIUMtests/shared/test_streamable_http.py411 # Create the session manager
MEDIUMtests/shared/test_streamable_http.py423 # Create an ASGI application that uses the session manager
MEDIUMtests/shared/test_streamable_http.py1253 # Create a new response with 204 status code but same headers
MEDIUMtests/shared/test_streamable_http.py2228 # Create a client with custom headers
MEDIUMtests/shared/test_session.py46 # Create a server with a slow tool
MEDIUMtests/shared/test_progress_notifications.py26 # Create a server session
MEDIUMtests/shared/test_progress_notifications.py110 # Create a server with progress capability
MEDIUMtests/shared/test_progress_notifications.py209 # Create a progress callback that raises an exception
MEDIUMtests/shared/test_progress_notifications.py213 # Create a server with a tool that sends progress notifications
MEDIUMtests/issues/test_152_resource_mime_type.py24 # Create a small test image as bytes
MEDIUMtests/issues/test_152_resource_mime_type.py69 # Create a small test image as bytes
MEDIUMtests/issues/test_355_type_error.py20# Create a named server
MEDIUM…sts/issues/test_1363_race_condition_streamable_http.py75 # Create a new event loop for this thread
MEDIUMtests/issues/test_malformed_input.py23 # Create a malformed initialize request (missing required params field)
MEDIUMtests/issues/test_1027_win_unreachable_cleanup.py46 # Create a minimal MCP server using MCPServer that tracks lifecycle
MEDIUMtests/issues/test_1027_win_unreachable_cleanup.py153 # Create an MCP server that handles stdin closure gracefully
MEDIUMtests/issues/test_552_windows_hang.py21 # Create a minimal MCP server that responds to initialization
MEDIUMtests/client/test_resource_cleanup.py20 # Create a mock session with the minimal required functionality
40 more matches not shown…
Unused Imports327 hits · 218 pts
SeverityFileLineSnippet
LOWtests/shared/test_streamable_http.py6
LOWtests/shared/test_otel.py1
LOWtests/client/test_session.py1
LOWtests/client/test_client.py3
LOWexamples/snippets/clients/url_elicitation_client.py23
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py1
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py8
LOWsrc/mcp/__init__.py1
LOWsrc/mcp/__init__.py2
LOWsrc/mcp/__init__.py3
LOWsrc/mcp/__init__.py4
LOWsrc/mcp/__init__.py4
LOWsrc/mcp/__init__.py5
LOWsrc/mcp/__init__.py6
LOWsrc/mcp/__init__.py7
LOWsrc/mcp/__init__.py7
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
LOWsrc/mcp/__init__.py8
267 more matches not shown…
Excessive Try-Catch Wrapping115 hits · 129 pts
SeverityFileLineSnippet
MEDIUMREADME.v2.md2456 print(f"Error: {content.text}")
MEDIUMREADME.md2523 print(f"Error: {content.text}")
LOWtests/shared/test_streamable_http.py468 except Exception:
LOWtests/shared/test_streamable_http.py1766 except Exception:
LOWtests/shared/test_progress_notifications.py39 except Exception as e: # pragma: no cover
LOWtests/issues/test_1027_win_unreachable_cleanup.py184 except Exception:
LOWtests/issues/test_552_windows_hang.py61 except Exception:
LOWtests/interaction/transports/_bridge.py145 except Exception as exc: # The bridge is the application's outermost boundary: a crash
MEDIUMdocs/migration.md259 print(f"Error: {e.error.message}")
MEDIUMdocs/migration.md270 print(f"Error: {e.message}")
LOWdocs/experimental/tasks-client.md354except Exception as e:
MEDIUMdocs/experimental/tasks-client.md355 print(f"Error: {e}")
MEDIUMexamples/snippets/clients/url_elicitation_client.py77 print("Error: No URL provided in elicitation request")
LOWexamples/snippets/clients/url_elicitation_client.py118 except Exception as e:
LOWexamples/snippets/clients/url_elicitation_client.py132 except Exception:
LOWexamples/snippets/clients/url_elicitation_client.py305 except Exception as e:
MEDIUMexamples/snippets/clients/parsing_tool_results.py52 print(f"Error: {content.text}")
MEDIUMexamples/snippets/servers/__init__.py36 print(f"Error: Server '{server_name}' not found")
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py93 except Exception as e:
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py152 except Exception as e:
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py169 except Exception as e:
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py282 except Exception as e:
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py322 except Exception as e:
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py338 except Exception as e:
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py236 except Exception as e:
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py277 except Exception as e:
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py297 except Exception as e:
LOW…vers/everything-server/mcp_everything_server/server.py191 except Exception as e:
LOW…vers/everything-server/mcp_everything_server/server.py213 except Exception as e:
LOW…vers/everything-server/mcp_everything_server/server.py245 except Exception as e:
LOW…vers/everything-server/mcp_everything_server/server.py304 except Exception as e:
LOWexamples/servers/simple-auth/mcp_simple_auth/server.py155 except Exception:
LOW…/servers/simple-auth/mcp_simple_auth/token_verifier.py81 except Exception as e:
LOWscripts/update_readme_snippets.py89 except Exception as e:
MEDIUMscripts/update_readme_snippets.py90 print(f"Error processing {file_path}: {e}")
MEDIUMscripts/update_readme_snippets.py105 print(f"Error: README file not found: {readme_path}")
LOW.github/actions/conformance/client.py336 except Exception as e:
MEDIUMsrc/mcp/server/streamable_http.py701def standalone_sse_writer():
MEDIUMsrc/mcp/server/streamable_http.py895def replay_sender():
MEDIUMsrc/mcp/server/streamable_http.py984def message_router():
LOWsrc/mcp/server/streamable_http.py359 except Exception: # pragma: no cover
LOWsrc/mcp/server/streamable_http.py565 except Exception: # pragma: no cover
LOWsrc/mcp/server/streamable_http.py601 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py631 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py638 except Exception as err:
LOWsrc/mcp/server/streamable_http.py719 except Exception:
LOWsrc/mcp/server/streamable_http.py735 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py792 except Exception as e: # pragma: no cover
LOWsrc/mcp/server/streamable_http.py927 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py939 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py945 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py1034 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http.py1054 except Exception as e: # pragma: no cover
LOWsrc/mcp/server/stdio.py55 except Exception as exc:
LOWsrc/mcp/server/streamable_http_manager.py180 except Exception: # pragma: lax no cover
LOWsrc/mcp/server/streamable_http_manager.py277 except Exception:
LOWsrc/mcp/server/experimental/task_result_handler.py170 except Exception:
LOWsrc/mcp/server/experimental/task_result_handler.py178 except Exception:
MEDIUMsrc/mcp/server/experimental/task_result_handler.py167def wait_for_store() -> None:
MEDIUMsrc/mcp/server/experimental/task_result_handler.py175def wait_for_queue() -> None:
55 more matches not shown…
Decorative Section Separators56 hits · 120 pts
SeverityFileLineSnippet
MEDIUMtests/client/test_stdio.py223# ---------------------------------------------------------------------------
MEDIUMtests/client/test_stdio.py225# ---------------------------------------------------------------------------
MEDIUMtests/interaction/_requirements.py82 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py84 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py228 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py230 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py482 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py484 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py611 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py613 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py736 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py738 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py763 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py765 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py868 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py870 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py910 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py912 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py970 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py972 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1008 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1010 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1052 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1054 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1097 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1099 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1244 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1246 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1421 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1423 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1475 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1477 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1527 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1529 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1548 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1550 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1732 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1734 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1828 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1830 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1909 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py1911 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2076 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2078 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2132 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2134 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2265 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2267 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2404 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2406 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2648 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2650 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2695 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMtests/interaction/_requirements.py2697 # ═══════════════════════════════════════════════════════════════════════════
MEDIUMsrc/mcp/os/win32/utilities.py132# ------------------------
MEDIUMsrc/mcp/os/win32/utilities.py134# ------------------------
Docstring Block Structure24 hits · 120 pts
SeverityFileLineSnippet
HIGH…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py35Load server configuration from JSON file. Args: file_path: Path to the JSON configuration file.
HIGH…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py126Execute a tool with retry mechanism. Args: tool_name: Name of the tool to execute. argu
HIGH…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py224Get a response from the LLM. Args: messages: A list of message dictionaries. Returns:
HIGHsrc/mcp/server/session.py287Send a sampling/create_message request. Args: messages: The conversation messages to send.
HIGHsrc/mcp/server/session.py386Send a form mode elicitation/create request. Args: message: The message to present to the user.
HIGHsrc/mcp/server/session.py419Send a URL mode elicitation/create request. This directs the user to an external URL for out-of-band interactio
HIGHsrc/mcp/server/experimental/request_context.py62Validate that the request is compatible with the tool's task execution mode. Per MCP spec: - "required"
HIGHsrc/mcp/server/experimental/request_context.py134Create a task, spawn background work, and return CreateTaskResult immediately. This is the recommended way to h
HIGHsrc/mcp/server/experimental/session_features.py99Send a task-augmented elicitation to the client and poll until complete. The client will create a local task, p
HIGHsrc/mcp/server/experimental/session_features.py155Send a task-augmented sampling request and poll until complete. The client will create a local task, process th
HIGHsrc/mcp/server/experimental/task_context.py189Send an elicitation request via the task message queue. This method: 1. Checks client capability
HIGHsrc/mcp/server/experimental/task_context.py253Send a URL mode elicitation request via the task message queue. This directs the user to an external URL for ou
HIGHsrc/mcp/server/experimental/task_context.py329Send a sampling request via the task message queue. This method: 1. Checks client capability 2.
HIGHsrc/mcp/server/experimental/task_context.py414Send a task-augmented elicitation via the queue, then poll client. This is for use inside a task-augmented tool
HIGHsrc/mcp/server/experimental/task_context.py499Send a task-augmented sampling request via the queue, then poll client. This is for use inside a task-augmented
HIGHsrc/mcp/server/auth/provider.py138Handle the /authorize endpoint and return a URL that the client will be redirected to. Many MCP impleme
HIGHsrc/mcp/server/auth/provider.py197Exchanges an authorization code for an access token and refresh token. Args: client: The client exc
HIGHsrc/mcp/server/auth/provider.py229Exchanges a refresh token for an access token and refresh token. Implementations SHOULD rotate both the access
HIGHsrc/mcp/server/auth/middleware/client_auth.py40Authenticate a client from an HTTP request. Extracts client credentials from the appropriate location based on
HIGHsrc/mcp/shared/experimental/tasks/store.py23Create a new task. Args: metadata: Task metadata (ttl, etc.) task_id: Optional task ID.
HIGHsrc/mcp/shared/experimental/tasks/store.py54Update a task's status and/or message. Args: task_id: The task identifier status: New s
HIGHsrc/mcp/shared/experimental/tasks/helpers.py54Cancel a task with spec-compliant validation. Per spec: "Receivers MUST reject cancellation of terminal status task
HIGHsrc/mcp/shared/experimental/tasks/helpers.py128Context manager for safe task execution (pure, no server dependencies). Loads a task from the store and provides a
HIGHsrc/mcp/client/auth/utils.py321Parse and validate a token response. Parses token response JSON. Callers should check response.status_code before c
Redundant / Tautological Comments34 hits · 54 pts
SeverityFileLineSnippet
LOWtests/server/mcpserver/auth/test_auth_integration.py124 # Check if refresh token exists
LOWtests/server/mcpserver/auth/test_auth_integration.py129 # Check if the access token exists
LOWtests/server/mcpserver/auth/test_auth_integration.py132 # Check if the token was issued to this client
LOWtests/server/mcpserver/auth/test_auth_integration.py167 # Check if token is expired
LOWtests/issues/test_1027_win_unreachable_cleanup.py206 # Check if process is still running
LOWtests/issues/test_1027_win_unreachable_cleanup.py225 # Check if cleanup ran
LOWtests/client/test_stdio.py149 # Check if we timed out
LOWexamples/snippets/clients/url_elicitation_client.py154 # Check if the tool returned an error in the result
LOWexamples/snippets/clients/url_elicitation_client.py162 # Check if this is a URL elicitation required error
LOWexamples/snippets/clients/pagination_client.py29 # Check if there are more pages
LOWexamples/snippets/servers/elicitation.py35 # Check if date is available
LOW…rs/simple-auth/mcp_simple_auth/simple_auth_provider.py248 # Check if expired
LOWsrc/mcp/server/transport_security.py58 # Check if the actual host starts with base host and has a port
LOWsrc/mcp/server/transport_security.py80 # Check if the actual origin starts with base origin and has a port
LOWsrc/mcp/server/elicitation.py74 # Check if it's a sequence-like type with str elements
LOWsrc/mcp/server/streamable_http.py481 # Check if this is an initialization request
LOWsrc/mcp/server/streamable_http.py485 # Check if the server already has an established session
LOWsrc/mcp/server/streamable_http.py487 # Check if request has a session ID
LOWsrc/mcp/server/streamable_http.py689 # Check if we already have an active GET stream
LOWsrc/mcp/server/streamable_http.py857 # Check if the protocol version is supported
LOWsrc/mcp/server/streamable_http.py990 # Check if this is a response with a known request id.
LOWsrc/mcp/server/mcpserver/server.py561 # Check if user passed function directly instead of calling decorator
LOWsrc/mcp/server/mcpserver/server.py681 # Check if user passed function directly instead of calling decorator
LOWsrc/mcp/server/mcpserver/server.py689 # Check if this should be a template
LOWsrc/mcp/server/mcpserver/server.py791 # Check if user passed function directly instead of calling decorator
LOWsrc/mcp/server/mcpserver/utilities/func_metadata.py232 # Check if the parameter name conflicts with BaseModel attributes
LOWsrc/mcp/server/mcpserver/utilities/func_metadata.py275 # Check if CallToolResult appears in the union (excluding None for Optional check)
LOWsrc/mcp/shared/experimental/tasks/message_queue.py199 # Check if there are already messages
LOWsrc/mcp/os/posix/utilities.py35 # Check if process group still exists (signal 0 = check only)
LOWsrc/mcp/os/win32/utilities.py97 # Close the file handles to prevent ResourceWarning
LOWsrc/mcp/client/session.py426 # Check if this is a task-augmented request
LOWsrc/mcp/client/session.py436 # Check if this is a task-augmented request
LOWsrc/mcp/client/streamable_http.py453 # Check if this is a resumption request
LOWsrc/mcp/client/auth/oauth2.py175 # Check if protocol version is 2025-06-18 or later
Verbosity Indicators28 hits · 53 pts
SeverityFileLineSnippet
LOWtests/experimental/tasks/server/test_integration.py137 # Step 1: Send task-augmented tool call
LOWtests/experimental/tasks/server/test_integration.py153 # Step 2: Wait for task to complete
LOWtests/experimental/tasks/server/test_integration.py160 # Step 3: Retrieve the actual result
LOWtests/experimental/tasks/client/test_handlers.py449 # Step 2: Client responds with CreateTaskResult
LOWtests/experimental/tasks/client/test_handlers.py458 # Step 3: Wait for background sampling
LOWtests/experimental/tasks/client/test_handlers.py461 # Step 4: Server polls task status
LOWtests/experimental/tasks/client/test_handlers.py589 # Step 2: Client responds with CreateTaskResult
LOWtests/experimental/tasks/client/test_handlers.py598 # Step 3: Wait for background elicitation
LOWtests/experimental/tasks/client/test_handlers.py601 # Step 4: Server polls task status
LOWtests/experimental/tasks/client/test_handlers.py434 # Step 1: Server sends task-augmented CreateMessageRequest
LOWtests/experimental/tasks/client/test_handlers.py477 # Step 5: Server gets result
LOWtests/experimental/tasks/client/test_handlers.py574 # Step 1: Server sends task-augmented ElicitRequest
LOWtests/experimental/tasks/client/test_handlers.py617 # Step 5: Server gets result
LOWtests/server/test_session_race_condition.py85 # Step 1: Send InitializeRequest
LOWtests/server/test_session_race_condition.py101 # Step 2: Wait for InitializeResult
LOWtests/server/test_session_race_condition.py105 # Step 3: Immediately send tools/list BEFORE InitializedNotification
LOWtests/server/test_session_race_condition.py109 # Step 4: Check the response
LOWtests/server/test_session_race_condition.py114 # Step 5: Send InitializedNotification
LOWtests/server/mcpserver/auth/test_auth_integration.py557 # Step 1: First, let's create a token and refresh token at the current time
LOWtests/server/mcpserver/auth/test_auth_integration.py576 # Step 2: Time travel forward 4 hours (tokens expire in 1 hour by default)
LOWsrc/mcp/server/auth/middleware/client_auth.py88 # form_data.get() can return an UploadFile or None, so we need to check if it's a string
LOWsrc/mcp/client/auth/oauth2.py535 # Step 1: Discover protected resource metadata (SEP-985 with fallback support)
LOWsrc/mcp/client/auth/oauth2.py565 # Step 2: Discover OAuth Authorization Server Metadata (OASM) (with fallback for legacy servers)
LOWsrc/mcp/client/auth/oauth2.py579 # Step 3: Apply scope selection strategy
LOWsrc/mcp/client/auth/oauth2.py587 # Step 4: Register client or use URL-based client ID (CIMD)
LOWsrc/mcp/client/auth/oauth2.py612 # Step 5: Perform authorization and complete token exchange
LOWsrc/mcp/client/auth/oauth2.py623 # Step 1: Extract error field from WWW-Authenticate header
LOWsrc/mcp/client/auth/oauth2.py626 # Step 2: Check if we need to step-up authorization
Cross-Language Confusion8 hits · 48 pts
SeverityFileLineSnippet
HIGHtests/server/test_sse_security.py351 body = b'{"jsonrpc": "2.0", "id": 1, "method": "ping", "params": null}'
HIGHtests/server/mcpserver/test_func_metadata.py151 "my_model_b": '{"how_many_shrimp": 5, "ok": {"x": 1}, "y": null}',
HIGHtests/server/mcpserver/test_tool_manager.py312 {"tank": '{"x": null, "shrimp": [{"name": "rex"}, {"name": "gertrude"}]}'},
HIGHtests/shared/test_sse.py510 json_message = '{"jsonrpc": "2.0", "id": "123", "method": "ping", "params": null}'
HIGHtests/shared/test_sse.py514 json_message = '{"jsonrpc": "2.0", "id": 123, "method": "ping", "params": null}'
HIGHtests/client/test_auth.py126 b'"scopes_supported": null}'
HIGHexamples/snippets/clients/url_elicitation_client.py288 print("(Start server with: cd examples/snippets && uv run server elicitation sse)")
HIGHexamples/snippets/clients/url_elicitation_client.py304 print(" cd examples/snippets && uv run server elicitation sse")
Deep Nesting30 hits · 29 pts
SeverityFileLineSnippet
LOWtests/server/test_streamable_http_manager.py105
LOWtests/server/test_streamable_http_manager.py160
LOWtests/server/test_streamable_http_manager.py344
LOWtests/server/mcpserver/test_integration.py68
LOWtests/shared/test_streamable_http.py232
LOWtests/client/test_session_group.py303
LOWexamples/snippets/clients/url_elicitation_client.py235
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py285
LOW…ples/clients/simple-chatbot/mcp_simple_chatbot/main.py332
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py260
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py280
LOW…ents/simple-auth-client/mcp_simple_auth_client/main.py300
LOW…ervers/sse-polling-demo/mcp_sse_polling_demo/server.py60
LOWscripts/update_readme_snippets.py31
LOWsrc/mcp/server/elicitation.py52
LOWsrc/mcp/server/streamable_http.py441
LOWsrc/mcp/server/auth/handlers/authorize.py70
LOWsrc/mcp/server/lowlevel/server.py441
LOWsrc/mcp/server/mcpserver/resources/types.py57
LOWsrc/mcp/server/mcpserver/utilities/func_metadata.py322
LOWsrc/mcp/server/mcpserver/utilities/context_injection.py13
LOWsrc/mcp/server/mcpserver/prompts/base.py138
LOWsrc/mcp/shared/session.py239
LOWsrc/mcp/shared/session.py351
LOWsrc/mcp/shared/session.py355
LOWsrc/mcp/cli/cli.py119
LOWsrc/mcp/cli/cli.py361
LOWsrc/mcp/os/posix/utilities.py13
LOWsrc/mcp/os/win32/utilities.py278
LOWsrc/mcp/client/auth/oauth2.py506
AI Slop Vocabulary6 hits · 12 pts
SeverityFileLineSnippet
MEDIUMtests/interaction/transports/test_streamable_http.py161 # Bounded because a harness regression here historically meant deadlock, not failure.
LOWsrc/mcp/server/auth/handlers/authorize.py115 # if the redirect URI is invalid, ignore it & just return the
LOWsrc/mcp/server/auth/handlers/revoke.py74 # if token is not found, just return HTTP 200 per the RFC
LOWsrc/mcp/server/mcpserver/utilities/func_metadata.py214 # This raise could perhaps be skipped, and we (MCPServer) just call
LOWsrc/mcp/cli/cli.py53 return "npx" # On Unix-like systems, just use npx
MEDIUMsrc/mcp/client/session_group.py273 # Create read and write streams that facilitate io with the server.
Slop Phrases8 hits · 8 pts
SeverityFileLineSnippet
MEDIUMexamples/servers/simple-auth/mcp_simple_auth/server.py6NOTE: this is a simplified example for demonstration purposes.
MEDIUM…rs/simple-auth/mcp_simple_auth/simple_auth_provider.py4for demonstration purposes. No external authentication provider is required.
MEDIUM…rs/simple-auth/mcp_simple_auth/simple_auth_provider.py6NOTE: this is a simplified example for demonstration purposes.
MEDIUM…les/servers/simple-auth/mcp_simple_auth/auth_server.py6NOTE: this is a simplified example for demonstration purposes.
MEDIUM…ervers/simple-auth/mcp_simple_auth/legacy_as_server.py6NOTE: this is a simplified example for demonstration purposes.
MEDIUM…/servers/simple-auth/mcp_simple_auth/token_verifier.py15 This is a simple example implementation for demonstration purposes.
LOWsrc/mcp/shared/session.py234 # would be very surprising behavior), so make sure to cancel the tasks
MEDIUM…/mcp/shared/experimental/tasks/in_memory_task_store.py1"""In-memory implementation of TaskStore for demonstration purposes.
Fake / Example Data8 hits · 8 pts
SeverityFileLineSnippet
LOWtests/server/mcpserver/test_func_metadata.py952 return PersonWithAddress(name="Jack", address=Address(street="123 Main St", city="Anytown", zipcode="12345"))
LOWtests/server/mcpserver/test_server.py490 assert result.structured_content == {"name": "John Doe", "age": 30, "active": True}
LOWtests/server/mcpserver/test_server.py494 assert '"name": "John Doe"' in result.content[0].text
LOWtests/server/mcpserver/test_server.py472 return UserOutput(name="John Doe", age=30)
LOWtests/server/mcpserver/test_elicitation.py167 {"required_name": "John Doe", "optional_age": 30, "optional_email": "john@example.com", "subscribe": True},
LOWtests/client/auth/extensions/test_client_credentials.py139 "name": "John Doe",
LOWtests/client/auth/extensions/test_client_credentials.py171 assert claims["name"] == "John Doe"
LOW…vers/everything-server/mcp_everything_server/server.py220 name: str = Field(default="John Doe", description="User name")
Overly Generic Function Names7 hits · 6 pts
SeverityFileLineSnippet
LOWtests/server/mcpserver/test_tool_manager.py626 def process_data(input_data: str) -> str: # pragma: no cover
LOWexamples/snippets/servers/notifications.py7async def process_data(data: str, ctx: Context) -> str:
LOW…amples/snippets/servers/streamable_http_path_config.py17def process_data(data: str) -> str:
LOWsrc/mcp/server/streamable_http.py366 async def handle_request(self, scope: Scope, receive: Receive, send: Send) -> None:
LOWsrc/mcp/server/streamable_http_manager.py143 async def handle_request(self, scope: Scope, receive: Receive, send: Send) -> None:
LOWsrc/mcp/server/experimental/request_context.py127 async def run_task(
LOWsrc/mcp/client/experimental/task_handlers.py253 async def handle_request(
Over-Commented Block4 hits · 4 pts
SeverityFileLineSnippet
LOWtests/client/test_stdio.py221
LOWexamples/snippets/servers/streamable_config.py21 mcp.run(transport="streamable-http", stateless_http=True, json_response=True)
LOWscripts/build-docs.sh1#!/usr/bin/env bash
LOWsrc/mcp/server/auth/handlers/authorize.py81 error_description: str | None,
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWscripts/build-docs.sh12# Usage: