-
Notifications
You must be signed in to change notification settings - Fork 13
Manage MCP Servers #330
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
Manage MCP Servers #330
Conversation
…ervers # Conflicts: # lib/user-interface/react/package.json # package-lock.json
# Conflicts: # test/lambda/test_repository_lambda.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I just have one suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are getting Items
from the response and verifying it exists in a few places. Why don't you pull this logic out?
from option import Option
def get_item(response, mcp_server_id):
return Option.from_nullable(next(iter(response.get("Items", [])), None)).expect(
f"MCP Server {mcp_server_id} not found."
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
if (isCreatingError || isUpdatingError) { | ||
const verb = isCreatingError ? 'created' : 'updated'; | ||
const error = createError || updateError; | ||
notificationService.generateNotification(`Error ${verb} MCP Server: ${error.data?.message ?? error.data}`, 'error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error notification should be updated to "MCP Connection" similar to success notification above
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.