Skip to content

Advertise MCP ServerInfo and instructions#26

Merged
rockfordlhotka merged 3 commits into
mainfrom
feature/mcp-server-description
May 12, 2026
Merged

Advertise MCP ServerInfo and instructions#26
rockfordlhotka merged 3 commits into
mainfrom
feature/mcp-server-description

Conversation

@rockfordlhotka
Copy link
Copy Markdown
Member

Summary

  • Adds AddAggregatorMcpServer() extension in Core that sets ServerInfo (name from AggregatorOptions.SelfName, title MCP Aggregator, version from the entry assembly's AssemblyInformationalVersion) and ServerInstructions describing the aggregator's value prop and the discovery flow consumers should follow.
  • Both stdio and HTTP hosts now register the MCP server through this shared extension instead of bare AddMcpServer().
  • Centralizes the assembly version in a new repo-root Directory.Build.props (now at 0.2.0).
  • Drive-by: updates both ServeCommand.ExecuteAsync overrides to protected to match Spectre.Console.Cli 0.55.0's narrowed signature, which the floating 0.* reference picked up and was failing the build on main.

Test plan

  • dotnet build — clean (0 errors, only pre-existing MSTest analyzer warnings)
  • dotnet test — 76/76 passing
  • Connect a fresh MCP client (e.g. Claude Desktop) and confirm ServerInfo shows mcp-aggregator / 0.2.0 and instructions appear on initialize
  • Verify SelfName config override is honored in ServerInfo.Name

🤖 Generated with Claude Code

rockfordlhotka and others added 3 commits May 12, 2026 11:29
Adds AddAggregatorMcpServer() in Core that configures ServerInfo
(name from AggregatorOptions.SelfName, version from assembly
AssemblyInformationalVersion) and ServerInstructions describing the
aggregator's value prop and discovery flow. Both stdio and HTTP hosts
now go through this extension. Centralized version in Directory.Build.props.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Spectre.Console.Cli 0.55.0 narrowed AsyncCommand<T>.ExecuteAsync from
public to protected. The floating 0.* package reference picked up the
new version, breaking the existing public overrides in both hosts.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@rockfordlhotka rockfordlhotka merged commit 139b859 into main May 12, 2026
1 check passed
@rockfordlhotka rockfordlhotka deleted the feature/mcp-server-description branch May 12, 2026 09:44
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