Skip to content

Commit aadd4a0

Browse files
committed
fix: server.ts
1 parent f5310a6 commit aadd4a0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/actor/server.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export function createExpressApp(
6767
try {
6868
log.info(`Received GET message at: ${Routes.SSE}`);
6969
const tools = await processParamsGetTools(req.url, process.env.APIFY_TOKEN as string);
70-
if (tools) {
70+
if (tools.length > 0) {
7171
mcpServer.updateTools(tools);
7272
} else {
7373
// We are loading default Actors (if not specified otherwise), so that we don't have "empty" tools
@@ -161,7 +161,6 @@ export function createExpressApp(
161161
app.use((req: Request, res: Response) => {
162162
res.status(404).json({ message: `There is nothing at route ${req.method} ${req.originalUrl}. ${getHelpMessage(host)}` }).end();
163163
});
164-
app.use(express.json());
165164

166165
return app;
167166
}

0 commit comments

Comments
 (0)