Skip to content

mcp: allow configuring protocol version#2027

Open
arrufat wants to merge 2 commits intomainfrom
mcp-protocol-version
Open

mcp: allow configuring protocol version#2027
arrufat wants to merge 2 commits intomainfrom
mcp-protocol-version

Conversation

@arrufat
Copy link
Copy Markdown
Contributor

@arrufat arrufat commented Mar 29, 2026

Closes #2023

var env_ver: ?[]const u8 = null;
var arg_ver: ?[]const u8 = null;

if (std.posix.getenv("LIGHTPANDA_MCP_VERSION")) |ver| {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is there a reason to support this for this one parameter and none other?

};
}

pub fn mcpVersion(self: *const Config) []const u8 {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think exposing the enum is generally more useful, e.g. it can be switched on.

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.

Support for MCP version 2024-11-05

2 participants