77 @echo " Available targets:"
88 @echo " install - Install mcp-compose and dependencies"
99 @echo " setup-auth - Check Anaconda authentication setup"
10- @echo " install-agent - Install pydantic-ai for agent support"
11- @echo " start-echo-sse - Start the echo MCP server in SSE mode (port 8081)"
12- @echo " start - Start the MCP Compose with authentication"
10+ @echo " install-agent - Install pydantic-ai for agent support"
11+ @echo " start-echo-streamable-http - Start the echo MCP server in HTTP streaming mode (port 8082)"
12+ @echo " start-echo-sse - Start the echo MCP server in SSE mode (port 8081)"
13+ @echo " start - Start the MCP Compose with authentication"
1314 @echo " agent - Run the AI agent (requires composer running)"
1415 @echo " stop - Stop the MCP Compose"
1516 @echo " clean - Clean up temporary files"
@@ -31,12 +32,13 @@ install:
3132 @echo " This example demonstrates Anaconda authentication at the composer level."
3233 @echo " "
3334 @echo " Backend servers:"
34- @echo " • mcp1.py - Calculator tools (add, subtract, multiply, divide)"
35- @echo " • mcp2.py - Echo tools (ping, echo, reverse, uppercase, etc.)"
35+ @echo " • mcp1.py - Calculator tools (add, subtract, multiply, divide)"
36+ @echo " • mcp2_http.py - Echo tools with HTTP streaming (JSON Lines)"
37+ @echo " • mcp2_sse.py - Echo tools with SSE (alternative)"
3638 @echo " "
3739 @echo " Next steps:"
38- @echo " 1. Set up authentication: make setup-auth "
39- @echo " 2. Start the composer: make start"
40+ @echo " 1. Start echo server: make start-echo-streamable-http "
41+ @echo " 2. Start the composer: make start (in another terminal) "
4042 @echo " 3. Use the AI agent: make install-agent && make agent"
4143
4244# Check authentication setup
@@ -73,6 +75,26 @@ install-agent:
7375 @echo " 1. Start composer: make start"
7476 @echo " 2. In another terminal: make agent"
7577
78+ # Start the echo MCP server in HTTP streaming mode
79+ start-echo-streamable-http :
80+ @echo " Starting Echo MCP Server in HTTP Streaming mode..."
81+ @echo " "
82+ @echo " Configuration:"
83+ @echo " • Transport: HTTP Streaming (JSON Lines)"
84+ @echo " • Port: 8082"
85+ @echo " • Endpoint: http://localhost:8082/stream"
86+ @echo " • Protocol: JSON Lines (newline-delimited JSON)"
87+ @echo " "
88+ @echo " Available endpoints:"
89+ @echo " • GET /stream - Stream MCP messages"
90+ @echo " • POST /stream - Send MCP messages"
91+ @echo " • GET /health - Health check"
92+ @echo " "
93+ @echo " Note: Keep this running in a separate terminal"
94+ @echo " Then run 'make start' to start the composer"
95+ @echo " "
96+ python mcp2_http.py
97+
7698# Start the echo MCP server in SSE mode
7799start-echo-sse :
78100 @echo " Starting Echo MCP Server in SSE mode..."
@@ -97,7 +119,8 @@ start:
97119 @echo " • Port: 8080"
98120 @echo " "
99121 @echo " Prerequisites:"
100- @echo " 1. Echo SSE server must be running: make start-echo-sse"
122+ @echo " 1. Echo HTTP server must be running: make start-echo-streamable-http"
123+ @echo " (or use SSE: make start-echo-sse - requires config change)"
101124 @echo " "
102125 @echo " Note: Server starts without requiring ANACONDA_API_KEY."
103126 @echo " Clients must provide valid Anaconda bearer tokens."
0 commit comments