Skip to content

Commit 16df308

Browse files
committed
remove logs how to ititialize with curl - not needed anymore as we have client
1 parent c3f0856 commit 16df308

File tree

3 files changed

+1
-45
lines changed

3 files changed

+1
-45
lines changed

src/examples/server/jsonResponseStreamableHttp.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -148,28 +148,6 @@ app.get('/mcp', async (req: Request, res: Response) => {
148148
const PORT = 3000;
149149
app.listen(PORT, () => {
150150
console.log(`MCP Streamable HTTP Server listening on port ${PORT}`);
151-
console.log(`Initialize session with the command below id you are using curl for testing:
152-
-----------------------------
153-
SESSION_ID=$(curl -X POST \
154-
-H "Content-Type: application/json" \
155-
-H "Accept: application/json" \
156-
-H "Accept: text/event-stream" \
157-
-d '{
158-
"jsonrpc": "2.0",
159-
"method": "initialize",
160-
"params": {
161-
"capabilities": {},
162-
"protocolVersion": "2025-03-26",
163-
"clientInfo": {
164-
"name": "test",
165-
"version": "1.0.0"
166-
}
167-
},
168-
"id": "1"
169-
}' \
170-
-i http://localhost:3000/mcp 2>&1 | grep -i "mcp-session-id" | cut -d' ' -f2 | tr -d '\\r')
171-
echo "Session ID: $SESSION_ID"
172-
-----------------------------`);
173151
});
174152

175153
// Handle server shutdown

src/examples/server/simpleSseServer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { CallToolResult } from '../../types.js';
99
* (protocol version 2024-11-05). It mainly used for testing backward compatible clients.
1010
*
1111
* The server exposes two endpoints:
12-
* - /sse: For establishing the SSE stream (GET)
12+
* - /mcp: For establishing the SSE stream (GET)
1313
* - /messages: For receiving client messages (POST)
1414
*
1515
*/

src/examples/server/simpleStreamableHttp.ts

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -272,28 +272,6 @@ app.delete('/mcp', async (req: Request, res: Response) => {
272272
const PORT = 3000;
273273
app.listen(PORT, () => {
274274
console.log(`MCP Streamable HTTP Server listening on port ${PORT}`);
275-
console.log(`Initialize session with the command below id you are using curl for testing:
276-
-----------------------------
277-
SESSION_ID=$(curl -X POST \
278-
-H "Content-Type: application/json" \
279-
-H "Accept: application/json" \
280-
-H "Accept: text/event-stream" \
281-
-d '{
282-
"jsonrpc": "2.0",
283-
"method": "initialize",
284-
"params": {
285-
"capabilities": {},
286-
"protocolVersion": "2025-03-26",
287-
"clientInfo": {
288-
"name": "test",
289-
"version": "1.0.0"
290-
}
291-
},
292-
"id": "1"
293-
}' \
294-
-i http://localhost:3000/mcp 2>&1 | grep -i "mcp-session-id" | cut -d' ' -f2 | tr -d '\\r')
295-
echo "Session ID: $SESSION_ID"
296-
-----------------------------`);
297275
});
298276

299277
// Handle server shutdown

0 commit comments

Comments
 (0)