@@ -13,7 +13,7 @@ import (
13
13
func main () {
14
14
// Create a client with sampling handler
15
15
mcpClient , err := client .NewStdioMCPClient (
16
- "go" , [] string { "run" , "../server/main.go" }, " " ,
16
+ "go" , nil , "run" , "../server/main.go" ,
17
17
)
18
18
if err != nil {
19
19
log .Fatalf ("Failed to create client: %v" , err )
@@ -154,7 +154,7 @@ func handleSampling(ctx context.Context, req *mcp.CreateMessageRequest) (*mcp.Cr
154
154
log .Printf ("Conversation: %s" , conversationText .String ())
155
155
156
156
// Simulate LLM processing (in a real implementation, this would call an actual LLM)
157
- response := simulateLLMResponse (conversationText .String (), req )
157
+ response := simulateLLMResponse (conversationText .String ())
158
158
159
159
log .Printf ("Generated response: %s" , response )
160
160
@@ -167,7 +167,7 @@ func handleSampling(ctx context.Context, req *mcp.CreateMessageRequest) (*mcp.Cr
167
167
}
168
168
169
169
// simulateLLMResponse simulates an LLM response based on the input
170
- func simulateLLMResponse (conversation string , req * mcp. CreateMessageRequest ) string {
170
+ func simulateLLMResponse (conversation string ) string {
171
171
// Simple rule-based responses for demonstration
172
172
lowerConv := strings .ToLower (conversation )
173
173
0 commit comments