File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ async function main() {
3333 await localFireflyClient . login ( ) ;
3434 }
3535
36+ // MCP server should not write stdout logs as it listens to the stdout. Check if it is changed
3637 if ( debug ) {
3738 logger . setLevel ( logger . levels . DEBUG , true ) ;
3839 } else {
@@ -136,12 +137,14 @@ async function main() {
136137 } ;
137138 } ) ;
138139
140+ // Hosted server needs to reset every hour to prevent timeout requests and issues connecting to the server
139141 if ( hosting ) {
140142 const app = express ( ) ;
141143
142144 app . get ( "/sse" , async ( req : express . Request , res : express . Response ) => {
143145 logger . debug ( "Received connection" ) ;
144146
147+ // Authentication improved since then, this is not best practice
145148 let basicAuth = null ;
146149 const authHeader = req . headers . authorization ;
147150 if ( authHeader && authHeader . startsWith ( "Basic " ) ) {
You can’t perform that action at this time.
0 commit comments