Skip to content

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

Merged
merged 35 commits into from
Jun 24, 2025
Merged

Manage MCP Servers #330

merged 35 commits into from
Jun 24, 2025

Conversation

estohlmann
Copy link
Member

@estohlmann estohlmann commented Jun 23, 2025

Description of changes:

  • Adding support for user defined personal MCP servers
  • Adding support for Admin defined global MCP servers
  • Servers rendered to users is a combination of their personally defined servers in combination of 'global' servers
  • Server details page showing all tools supported by the server

Screenshot 2025-06-23 at 3 18 50 PM

Screenshot 2025-06-23 at 3 18 19 PM

Screenshot 2025-06-23 at 5 05 34 PM

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@estohlmann estohlmann marked this pull request as ready for review June 23, 2025 21:19
@estohlmann estohlmann changed the title Feature/manage mcp servers Manage mcp servers Jun 23, 2025
@estohlmann estohlmann changed the title Manage mcp servers Manage MCP Servers Jun 23, 2025
Copy link
Contributor

@batzela batzela left a 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.

Copy link
Contributor

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."
    )

Copy link
Contributor

@batzela batzela left a 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');
Copy link
Contributor

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

@estohlmann estohlmann merged commit 9f090c5 into feature/mcp Jun 24, 2025
6 checks passed
@estohlmann estohlmann deleted the feature/manage-mcp-servers branch June 24, 2025 20:31
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.

3 participants