clean up and small fixes to comments
This commit is contained in:
parent
5730f3e92a
commit
e3b4496579
2 changed files with 2 additions and 9 deletions
|
|
@ -174,7 +174,7 @@ app.post('/mcp', async (req: Request, res: Response) => {
|
|||
}
|
||||
});
|
||||
|
||||
// Handle GET requests for SSE streams (now using built-in support from StreamableHTTP)
|
||||
// Handle GET requests for SSE streams (using built-in support from StreamableHTTP)
|
||||
app.get('/mcp', async (req: Request, res: Response) => {
|
||||
const sessionId = req.headers['mcp-session-id'] as string | undefined;
|
||||
if (!sessionId || !transports[sessionId]) {
|
||||
|
|
|
|||
|
|
@ -8,12 +8,6 @@ import { ReadResourceResult } from '../../types.js';
|
|||
const server = new McpServer({
|
||||
name: 'resource-list-changed-notification-server',
|
||||
version: '1.0.0',
|
||||
}, {
|
||||
capabilities: {
|
||||
resources: {
|
||||
listChanged: true, // Support notifications for resource list changes
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
// Store transports by session ID to send notifications
|
||||
|
|
|
|||
Loading…
Reference in a new issue