Skip to content

Added apikey based security example for agent and weather MCP service

cfe8736
Select commit
Loading
Failed to load commit list.
Merged

Added apikey based security example for agent and weather MCP service #739

Added apikey based security example for agent and weather MCP service
cfe8736
Select commit
Loading
Failed to load commit list.
GitHub Advanced Security / CodeQL succeeded Nov 15, 2025 in 2s

No new alerts in code changed by this pull request

Annotations

Check failure on line 31 in samples/security/apikey/weather/src/main/java/com/example/weather/McpSecurityConfig.java

See this annotation in the file changed.

Code scanning / CodeQL

Disabled Spring CSRF protection High

CSRF vulnerability due to protection being disabled.

Check warning on line 22 in samples/security/apikey/weather/src/main/java/com/example/weather/WeatherController.java

See this annotation in the file changed.

Code scanning / CodeQL

Cross-site scripting Medium

Cross-site scripting vulnerability due to a
user-provided value
.