Skip to content

chore(testapp): Add duplicate mcp server to test dev UI handling#5330

Draft
shrutip90 wants to merge 1 commit into
mainfrom
sp/mcp-sample
Draft

chore(testapp): Add duplicate mcp server to test dev UI handling#5330
shrutip90 wants to merge 1 commit into
mainfrom
sp/mcp-sample

Conversation

@shrutip90
Copy link
Copy Markdown
Contributor

Description here... Help the reviewer by:

  • linking to an issue that includes more details
  • if it's a new feature include samples of how to use the new feature
  • (optional if issue link is provided) if you fixed a bug include basic bug details

Checklist (if applicable):

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces structured logging for policy violations, enables experimental debug traces for the Google AI plugin, and adds a second MCP host to test duplicate tool handling. It also includes a typo fix in a prompt and defines new tools and prompts for file summarization. However, several new prompts and test configurations contain hardcoded absolute paths specific to a local environment, which should be replaced with relative or dynamic paths to ensure portability across different systems.


{{role "user"}}

summarize contents of hello-world.txt (in '/Users/padamata/Documents/git/du4/genkit/js/testapps/mcp/test-workspace')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This prompt contains a hardcoded absolute path (/Users/padamata/...) which is specific to your local machine. This makes the prompt non-portable and will cause failures on other systems. Consider using a relative path or a template variable.


{{role "user"}}

summarize contents of hello-world.txt (in '/Users/padamata/Documents/git/du4/genkit/js/testapps/mcp/test-workspace') No newline at end of file
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

This prompt contains a hardcoded absolute path specific to your local machine. This should be replaced with a portable path reference to ensure it works across different environments.

tools: ['test-mcp-manager:tool/fs/read_file'], // Just this one tool
messages: `
{{role "user"}}
Summarize the contents of hello-world.txt (in '/Users/padamata/Documents/git/du4/genkit/js/testapps/mcp/test-workspace')`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Hardcoded absolute path detected. This makes the test app non-portable. Consider using a dynamic path like ${process.cwd()}/test-workspace to ensure it works across different machines.

tools: ['/dynamic-action-provider/test-mcp-manager:tool/fs/read_file'], // Just this one tool
messages: `
{{role "user"}}
Summarize the contents of hello-world.txt (in '/Users/padamata/Documents/git/du4/genkit/js/testapps/mcp/test-workspace')`,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Hardcoded absolute path detected. This should be replaced with a dynamic or relative path for portability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant