Skip to content

Commit 3c21f99

Browse files
author
Matthew Hawkins
authored
Fix clientLibrary extension name (#184)
1 parent a1cbbc4 commit 3c21f99

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/apollo-mcp-registry/src/uplink.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,8 @@ where
396396
let res = client
397397
.post(url)
398398
.header("x-apollo-mcp-server-version", env!("CARGO_PKG_VERSION"))
399+
.header("apollographql-client-name", "apollo-mcp-server")
400+
.header("apollographql-client-version", env!("CARGO_PKG_VERSION"))
399401
.json(request_body)
400402
.send()
401403
.await

crates/apollo-mcp-server/src/graphql.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ pub trait Executable {
6464
request_body.insert(
6565
String::from("extensions"),
6666
serde_json::json!({
67-
"ApolloClientMetadata": client_metadata,
67+
"clientLibrary": client_metadata,
6868
}),
6969
);
7070

0 commit comments

Comments
 (0)