Skip to content

Commit a1cbbc4

Browse files
author
Matthew Hawkins
authored
Fix ServerInfo (#183)
1 parent d47e2b0 commit a1cbbc4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Fix ServerInfo - @pubmodmatt PR #183
2+
3+
The server will now report the correct server name and version to clients, rather than the Rust MCP SDK name and version.

crates/apollo-mcp-server/src/server/states/running.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use std::sync::Arc;
22

33
use apollo_compiler::{Schema, validation::Valid};
44
use reqwest::header::HeaderMap;
5+
use rmcp::model::Implementation;
56
use rmcp::{
67
Peer, RoleServer, ServerHandler, ServiceError,
78
model::{
@@ -251,6 +252,10 @@ impl ServerHandler for Running {
251252

252253
fn get_info(&self) -> ServerInfo {
253254
ServerInfo {
255+
server_info: Implementation {
256+
name: "Apollo MCP Server".to_string(),
257+
version: env!("CARGO_PKG_VERSION").to_string(),
258+
},
254259
capabilities: ServerCapabilities::builder()
255260
.enable_tools()
256261
.enable_tool_list_changed()

0 commit comments

Comments
 (0)