Skip to content

Commit 8c86650

Browse files
authored
Merge pull request #303 from apollographql/fix-missing-token-propagation
Fix missing token propagation
2 parents b4f65d6 + 4d8a66e commit 8c86650

File tree

8 files changed

+25
-12
lines changed

8 files changed

+25
-12
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
# [0.7.4] - 2025-08-27
8+
9+
## 🐛 Fixes
10+
11+
### fix: Add missing token propagation for execute tool - @DaleSeo PR #298
12+
13+
The execute tool is not forwarding JWT authentication tokens to upstream GraphQL endpoints, causing authentication failures when using this tool with protected APIs. This PR adds missing token propagation for execute tool.
14+
715
# [0.7.3] - 2025-08-25
816

917
## 🐛 Fixes

Cargo.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ members = [
88

99
[workspace.package]
1010
authors = ["Apollo <[email protected]>"]
11-
version = "0.7.3"
11+
version = "0.7.4"
1212

1313
[workspace.dependencies]
1414
apollo-compiler = "1.27.0"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ mod test {
187187
"extensions": {
188188
"clientLibrary": {
189189
"name":"mcp",
190-
"version":"0.7.3"
190+
"version":"0.7.4"
191191
}
192192
},
193193
"operationName":"mock_operation"
@@ -233,7 +233,7 @@ mod test {
233233
},
234234
"clientLibrary": {
235235
"name":"mcp",
236-
"version":"0.7.3"
236+
"version":"0.7.4"
237237
}
238238
},
239239
})

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,11 @@ impl ServerHandler for Running {
210210
EXECUTE_TOOL_NAME => {
211211
let mut headers = self.headers.clone();
212212
if let Some(axum_parts) = context.extensions.get::<axum::http::request::Parts>() {
213+
// Optionally extract the validated token and propagate it to upstream servers if present
214+
if let Some(token) = axum_parts.extensions.get::<ValidToken>() {
215+
headers.typed_insert(token.deref().clone());
216+
}
217+
213218
// Forward the mcp-session-id header if present
214219
if let Some(session_id) = axum_parts.headers.get("mcp-session-id") {
215220
headers.insert("mcp-session-id", session_id.clone());

docs/source/install.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ To download a **specific version** of Apollo MCP Server (recommended for CI envi
2626

2727
```bash
2828
# Note the `v` prefixing the version number
29-
docker image pull ghcr.io/apollographql/apollo-mcp-server:v0.7.3
29+
docker image pull ghcr.io/apollographql/apollo-mcp-server:v0.7.4
3030
```
3131

3232
To download a specific version of Apollo MCP Server that is a release candidate:
3333

3434
```bash
3535
# Note the `v` prefixing the version number and the `-rc` suffix
36-
docker image pull ghcr.io/apollographql/apollo-mcp-server:v0.7.3-rc.1
36+
docker image pull ghcr.io/apollographql/apollo-mcp-server:v0.7.4-rc.1
3737
```
3838

3939
<Note>
@@ -65,7 +65,7 @@ To install or upgrade to a **specific version** of Apollo MCP Server (recommende
6565

6666
```bash
6767
# Note the `v` prefixing the version number
68-
curl -sSL https://mcp.apollo.dev/download/nix/v0.7.3 | sh
68+
curl -sSL https://mcp.apollo.dev/download/nix/v0.7.4 | sh
6969
```
7070

7171
If your machine doesn't have the `curl` command, you can get the latest version from the [`curl` downloads page](https://curl.se/download.html).
@@ -82,5 +82,5 @@ To install or upgrade to a **specific version** of Apollo MCP Server (recommende
8282

8383
```bash
8484
# Note the `v` prefixing the version number
85-
iwr 'https://mcp.apollo.dev/download/win/v0.7.3' | iex
85+
iwr 'https://mcp.apollo.dev/download/win/v0.7.4' | iex
8686
```

scripts/nix/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BINARY_DOWNLOAD_PREFIX="${APOLLO_MCP_SERVER_BINARY_DOWNLOAD_PREFIX:="https://git
1414

1515
# Apollo MCP Server version defined in apollo-mcp-server's Cargo.toml
1616
# Note: Change this line manually during the release steps.
17-
PACKAGE_VERSION="v0.7.3"
17+
PACKAGE_VERSION="v0.7.4"
1818

1919
download_binary_and_run_installer() {
2020
downloader --check

scripts/windows/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Apollo MCP Server version defined in apollo-mcp-server's Cargo.toml
1010
# Note: Change this line manually during the release steps.
11-
$package_version = 'v0.7.3'
11+
$package_version = 'v0.7.4'
1212

1313
function Install-Binary($apollo_mcp_server_install_args) {
1414
$old_erroractionpreference = $ErrorActionPreference

0 commit comments

Comments
 (0)