Skip to content

Commit 526a1dc

Browse files
style: format scope discovery regression test
1 parent 8a19781 commit 526a1dc

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

  • crates/apollo-mcp-server/src

‎crates/apollo-mcp-server/src/auth.rs‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2573,12 +2573,14 @@ emyPxgcYxn/eR44/KJ4EBs+lVDR3veyJm+kXQ99b21/+jh5Xos1AnX5iItreGCc=
25732573
let app = Router::new()
25742574
.route(
25752575
"/mcp",
2576-
post(|Extension(policy): Extension<OperationScopePolicy>| async move {
2577-
assert!(policy.filters_tools_list());
2578-
assert!(!policy.allows_tool("RestrictedOp", &[]));
2579-
assert!(policy.allows_tool("PublicOp", &[]));
2580-
StatusCode::OK
2581-
}),
2576+
post(
2577+
|Extension(policy): Extension<OperationScopePolicy>| async move {
2578+
assert!(policy.filters_tools_list());
2579+
assert!(!policy.allows_tool("RestrictedOp", &[]));
2580+
assert!(policy.allows_tool("PublicOp", &[]));
2581+
StatusCode::OK
2582+
},
2583+
),
25822584
)
25832585
.layer(from_fn_with_state(auth_state, oauth_validate));
25842586
let body = if standard_headers || skip_header {

0 commit comments

Comments
 (0)