Publish Claude Code Binaries / Stage and publish binaries (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-arm64 (push) Canceled after 0s
Publish Tutti App Runtime / Build darwin-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build linux-amd64 (push) Canceled after 0s
Publish Tutti App Runtime / Build windows-amd64 (push) Canceled after 0s
Sync Tutti Agent Skills / sync (push) Canceled after 0s
Windows Agent Adapters / Test Windows agent adapters (push) Canceled after 0s
Windows Daemon Adapters / Test Windows daemon adapters (push) Canceled after 0s
Publish Tutti App Runtime / Publish runtime catalog (push) Canceled after 0s
19 lines
723 B
Go
19 lines
723 B
Go
package agentruntime
|
|
|
|
import "testing"
|
|
|
|
func TestClaudeSDKMCPServersProjectsSessionScopedHTTPBinding(t *testing.T) {
|
|
servers := claudeSDKMCPServers([]MCPServerBinding{{
|
|
Name: "connector", Type: "http", URL: "http://127.0.0.1:1234/mcp/connector",
|
|
Headers: map[string]string{"Authorization": "Bearer test-token"},
|
|
}})
|
|
connector, ok := servers["connector"].(map[string]any)
|
|
if !ok || connector["type"] != "http" || connector["url"] != "http://127.0.0.1:1234/mcp/connector" {
|
|
t.Fatalf("Claude SDK MCP servers = %#v", servers)
|
|
}
|
|
headers, ok := connector["headers"].(map[string]string)
|
|
if !ok || headers["Authorization"] != "Bearer test-token" {
|
|
t.Fatalf("Claude SDK MCP headers = %#v", connector["headers"])
|
|
}
|
|
}
|