File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed
web/src/content/docs/docs Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ export namespace Config {
6060 type : z . literal ( "remote" ) . describe ( "Type of MCP server connection" ) ,
6161 url : z . string ( ) . describe ( "URL of the remote MCP server" ) ,
6262 enabled : z . boolean ( ) . optional ( ) . describe ( "Enable or disable the MCP server on startup" ) ,
63+ headers : z . record ( z . string ( ) , z . string ( ) ) . optional ( ) . describe ( "Headers to send with the request" ) ,
6364 } )
6465 . strict ( )
6566 . openapi ( {
Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ export namespace MCP {
3737 transport : {
3838 type : "sse" ,
3939 url : mcp . url ,
40+ headers : mcp . headers ,
4041 } ,
4142 } ) . catch ( ( ) => { } )
4243 if ( ! client ) {
Original file line number Diff line number Diff line change @@ -49,7 +49,10 @@ Add a remote MCP servers under `mcp.remotemcp`.
4949 "remotemcp" : {
5050 "type" : " remote" ,
5151 "url" : " https://my-mcp-server.com" ,
52- "enabled" : true
52+ "enabled" : true ,
53+ "headers" : {
54+ "Authorization" : " Bearer MY_API_KEY"
55+ }
5356 }
5457 }
5558}
You can’t perform that action at this time.
0 commit comments