Skip to content

Conversation

@njhale
Copy link
Member

@njhale njhale commented Oct 8, 2025

This change introduces "Composite" MCP Servers and support for:

  • Creating composite servers by combining multiple single or remote servers
  • Composite 2nd level OAuth flow

This change does not include support for:

  • Adding multi-user MCP servers to a composite server
  • Upgrading composite MCP server instances and their child servers

Support for these will be included in follow up PRs.

Addresses part of #3553

@cjellick
Copy link
Contributor

I changed the issue to #4635

@njhale njhale force-pushed the feat/cmcp branch 2 times, most recently from a1b63cd to a3e6c99 Compare October 22, 2025 20:25
@njhale njhale marked this pull request as ready for review October 27, 2025 18:51
Comment on lines +77 to +81
if err != nil {
if req.Context().Err() != nil {
return "", fmt.Errorf("failed to check component server OAuth: %w", req.Context().Err())
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to continue if err != nil here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Disabled components are already skipped in the code above, so I'm on the fence about whether to continue here. If we return the error here, at least it can bubble up to the user.

@njhale njhale requested a review from thedadams October 29, 2025 04:49
@njhale njhale force-pushed the feat/cmcp branch 2 times, most recently from 5c0db82 to ec283cb Compare October 29, 2025 12:40
pkg/mcp/types.go Outdated
Comment on lines 310 to 312
if !strings.HasPrefix(scope, mcpServerName+"-") {
finalScope = fmt.Sprintf("%s-%s", mcpServerName, scope)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the scope should be what the scope is at this point. We don't need to modify it.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed

@njhale njhale merged commit 65e0526 into obot-platform:main Oct 29, 2025
5 checks passed
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