File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
crates/apollo-mcp-server/src Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ pub enum ServerError {
100
100
101
101
#[ error( "Failed to index schema: {0}" ) ]
102
102
Indexing ( #[ from] IndexingError ) ,
103
+
104
+ #[ error( "Proxy options used with transport auth currently not supported" ) ]
105
+ ProxyAuthNotSupported ,
103
106
}
104
107
105
108
/// An MCP tool error
Original file line number Diff line number Diff line change @@ -140,8 +140,12 @@ async fn main() -> anyhow::Result<()> {
140
140
. start ( ) ;
141
141
142
142
match config. transport {
143
- Transport :: StreamableHttp { address, port, .. } => {
143
+ Transport :: StreamableHttp { address, port, auth } => {
144
144
if config. proxy . enabled {
145
+ if auth. is_some ( ) {
146
+ anyhow:: bail!( ServerError :: ProxyAuthNotSupported )
147
+ }
148
+
145
149
let url = config. proxy . url ( & address, & port) ;
146
150
let cancellation_token: CancellationToken = CancellationToken :: new ( ) ;
147
151
You can’t perform that action at this time.
0 commit comments