Skip to content

fix: allow configuring server name and version - #10

Open
thedadams wants to merge 1 commit into
obot-platform:mainfrom
thedadams:push-ymsukvzwrkoz
Open

fix: allow configuring server name and version#10
thedadams wants to merge 1 commit into
obot-platform:mainfrom
thedadams:push-ymsukvzwrkoz

Conversation

@thedadams

Copy link
Copy Markdown
Member

During the server discovery/initialization, a server will provide its name and version. Before this change, this was hard-coded in mmmcp. This change does two things:

  1. If the mmmcp is fronting a single MCP server, then that server's name and version is used.
  2. Otherwise, configuraiton can be provided to set these values.

If neither of these is the case, then the default hard-coded values are used.

During the server discovery/initialization, a server will provide its
name and version. Before this change, this was hard-coded in mmmcp.
This change does two things:
1. If the mmmcp is fronting a single MCP server, then that server's
name and version is used.
2. Otherwise, configuraiton can be provided to set these values.

If neither of these is the case, then the default hard-coded values
are used.

Signed-off-by: Donnie Adams <donnie@obot.ai>
@thedadams

Copy link
Copy Markdown
Member Author

@claude review

@thedadams

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-08-29T03:13:54.111648Z 370e0e5 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 370e0e5e00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread composite.go

func newFrontendServer(c *Composite, opts Options) *mcp.Server {
server := mcp.NewServer(&mcp.Implementation{Name: implementationName, Version: implementationVersion}, &mcp.ServerOptions{
implementation := c.implementation

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Derive identity from the session's effective configuration

When an HTTP request supplies ContextWithConfig, or RunStdio is invoked with a configured context, this always copies c.implementation, which was computed from the configuration passed to New. Consequently, an alternate multi-component configuration advertises the default configuration's name/version, while an alternate single-component configuration advertises the default downstream server's identity, even though feature routing uses the alternate configuration. Create the frontend identity from the effective per-request or per-session configuration and its catalog instead.

Useful? React with 👍 / 👎.

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.

1 participant