Skip to content

fix: fix for mcp permissions page for global and workspace #1450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2025

Conversation

ashishrp-aws
Copy link
Contributor

Problem

  • We need to handle workspace level permissions.

Solution

  • Removed scope change for MCP permission list
  • Gathering workspace level permission and honoring it if it exists and using global otherwise.
  • fix for listing MCP servers in case of permission change by removing unnecessary event emitted for permission update.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@ashishrp-aws ashishrp-aws requested a review from a team as a code owner May 27, 2025 21:02
@@ -252,6 +257,16 @@ export class McpEventHandler {
}))
}

if (existingValues.name) {
const serverName = existingValues.name
const serverState = McpManager.instance.getAllServerConfigs().get(serverName)
Copy link
Contributor

Choose a reason for hiding this comment

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

if customer previously select ws or global, will this choice persist when they open the plugin again?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can't honor unless we update the other mcp config file to remove the server from it and keep it in only in the customer's choice file.

Copy link
Contributor

Choose a reason for hiding this comment

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

we don't have to remove anything, this radio button will only control where the changes is written to, not reading from.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes and i'm getting the values for this list from config path.

@ashishrp-aws ashishrp-aws merged commit fc349d9 into aws:agentic-mcp May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants