You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(core): Enhance MCP registry with new templates and features - #800
- Adds 'Travel' and 'Finance' categories to the MCP server catalog.
- Introduces new specialized MCP server templates, including sequential thinking.
- Updates MCP instance management to correctly update existing configurations using index lookup.
- Refines date and time tooling to robustly handle optional (nullable) timezones.
BREAKING CHANGE: The `DateTimeTools` function now accepts a nullable `timezone` string (`String?`). Callers must handle potential null values when resolving zones.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved security, accessibility, and configuration defects remain, including potential API-key leakage in debug logs, missing selected and focus semantics for category chips, and ignored Playwright settings.
This pull request expands the MCP server catalog with new categories and templates, improves instance replacement and timezone handling, and introduces a shared catalog filter-chip component.
Changes:
Adds Travel and Finance categories with Sequential Thinking, Memory, Playwright, Google Maps, and Yahoo Finance templates.
Updates MCP instance replacement while preserving configuration order.
Supports nullable timezone inputs with local-time fallback.
Replaces catalog-specific filter chips with a reusable themed component.
Registers new MCP categories and server templates.
Critical (1 vote): A plaintext Google Maps API key can be written to debug logs through the resolved environment map. Moderate (2 votes): Playwright settings use environment variables instead of the command-line options supported by @playwright/mcp. Nit (1 vote): The real Chrome profile guidance should warn about profile-lock failures when Chrome is running.
Adds a reusable themed filter-chip component with hover and selection styling.
Moderate (4 votes): Replacing FilterChip removes selectable semantics and visible keyboard focus indication; the component should expose selection semantics and an explicit focus indication.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
Unresolved moderate and critical findings leave accessibility gaps and multiple paths where secrets can still reach debug logs, while documented Playwright configuration is ignored.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Critical secret-leak paths remain in connector startup, command diagnostics, exception messages, and captured process output, while the template also passes Playwright settings in unsupported environment variables.
resolveSecrets runs before toConnector, and template-mode definitions are already materialized by McpServerTemplateRegistry.resolve (placeholders replaced and parameters cleared). Therefore commandSources/envSources can contain the actual secret with no {{...}} variable; redactList/redactMap then return it unchanged. This debug statement can emit command or environment secrets (for example, the Google Maps key). Make the redaction key/definition-aware or redact against the resolved secret values before logging.
This issue also appears on line 85 of the same file.
Resolved HTTP URL is still logged without secret redaction
This masks only this McpInstance log entry, but HttpMcpConnector.createTransport() subsequently logs the same resolved URL directly. A definition with a secret in its HTTP URL will still leak that value at connector startup; move the redaction into the connector/config boundary or remove the raw URL log there.
Transport startup logs unredacted secret command arguments
redactErrorText only applies heuristic patterns and has no access to the definition's declared secret parameters. A secret command argument that does not match those patterns (for example, a short token) is still logged verbatim here, even though McpInstance masked it earlier. Pass an already-redacted command into the transport or stop logging command values.
Probe errors and captured output can expose secrets
Only the interpolated command is redacted here; ${e.message} remains raw, and the non-zero-exit branch below also returns captured stderr/stdout without redaction. A process-start error can include a secret-valued executable, and a failing MCP process can echo environment/arguments, so this diagnostic can leak the very values this change is meant to protect. Redact exception text and captured output before putting them in ProbeResult.Failed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Related Issue(s)
Type of Change
What Changed & Why
How to Test
./gradlew testScreenshots / Recordings (if applicable)
Checklist
main./gradlew spotlessApplyand./gradlew detektlocally./gradlew testand all tests passgit commit -sAdditional Notes