We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5310a6 commit aadd4a0Copy full SHA for aadd4a0
src/actor/server.ts
@@ -67,7 +67,7 @@ export function createExpressApp(
67
try {
68
log.info(`Received GET message at: ${Routes.SSE}`);
69
const tools = await processParamsGetTools(req.url, process.env.APIFY_TOKEN as string);
70
- if (tools) {
+ if (tools.length > 0) {
71
mcpServer.updateTools(tools);
72
} else {
73
// We are loading default Actors (if not specified otherwise), so that we don't have "empty" tools
@@ -161,7 +161,6 @@ export function createExpressApp(
161
app.use((req: Request, res: Response) => {
162
res.status(404).json({ message: `There is nothing at route ${req.method} ${req.originalUrl}. ${getHelpMessage(host)}` }).end();
163
});
164
- app.use(express.json());
165
166
return app;
167
}
0 commit comments