Skip to content

Commit 7eab85a

Browse files
chore(internal): add health check to MCP server when running in HTTP mode
1 parent eecad0a commit 7eab85a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

packages/mcp-server/src/http.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ export const streamableHTTPApp = ({
9898
app.use(morgan('combined'));
9999
}
100100

101+
app.get('/health', async (req: express.Request, res: express.Response) => {
102+
res.status(200).send('OK');
103+
});
101104
app.get('/', get);
102105
app.post('/', post({ clientOptions, mcpOptions }));
103106
app.delete('/', del);

packages/mcp-server/src/server.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ async function getInstructions() {
3636

3737
instructions = `
3838
This is the conductor MCP server. You will use Code Mode to help the user perform
39-
actions. You can use search_docs tool to learn about how to take action with this server. Then,
40-
you will write TypeScript code using the execute tool take action. It is CRITICAL that you be
41-
thoughtful and deliberate when executing code. Always try to entirely solve the problem in code
42-
block: it can be as long as you need to get the job done!
39+
actions. You can use search_docs tool to learn about how to take action with this server. Then,
40+
you will write TypeScript code using the execute tool take action. It is CRITICAL that you be
41+
thoughtful and deliberate when executing code. Always try to entirely solve the problem in code
42+
block: it can be as long as you need to get the job done!
4343
`;
4444
}
4545

0 commit comments

Comments
 (0)