Skip to content

Commit c93f814

Browse files
committed
add benchmarks
1 parent c5af926 commit c93f814

File tree

4 files changed

+527
-6
lines changed

4 files changed

+527
-6
lines changed

examples/mcp_http_transport/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func main() {
9494

9595
ctxWithCT := context.WithValue(ctx, "contentType", "event-stream")
9696

97-
result, err = transport.CallToolStream(ctxWithCT, "count_stream", map[string]any{"count": 5, "contentType": "event-stream"}, provider)
97+
result, err = transport.CallToolStream(ctxWithCT, "count_stream", map[string]any{"count": 5}, provider)
9898
if err != nil {
9999
log.Fatalf("stream call error: %v", err)
100100
}

src/transports/mcp/mcp_transport.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ func (t *MCPTransport) RegisterToolProvider(ctx context.Context, p Provider) ([]
138138
t.mutex.Lock()
139139
t.processes[mp.Name] = process
140140
t.mutex.Unlock()
141-
t.logger("Successfully registered MCP HTTP provider '%s'", mp.Name)
142141
return tools, nil
143142
}
144143

@@ -229,7 +228,6 @@ func (t *MCPTransport) DeregisterToolProvider(ctx context.Context, p Provider) e
229228
return nil
230229
}
231230

232-
t.logger("Deregistering MCP provider '%s'", mp.Name)
233231
t.cleanupProcess(process)
234232
return nil
235233
}

utcp_client.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,9 +192,6 @@ func (c *UtcpClient) loadProviders(ctx context.Context, path string) error {
192192
}
193193
successCount++
194194
}
195-
196-
fmt.Printf("Successfully registered %d out of %d providers\n", successCount, len(rawList))
197-
198195
if len(errors) > 0 {
199196
fmt.Fprintf(os.Stderr, "Warning: %d providers failed to load:\n", len(errors))
200197
for _, errMsg := range errors {

0 commit comments

Comments
 (0)