Skip to main content
Glama

mcp-k8s-go

assert_text_content.go515 B
package tests import ( "testing" "github.com/stretchr/testify/assert" "github.com/strowk/foxy-contexts/pkg/mcp" ) // AssertTextContentContainsInFirstString asserts that the first element of the content is a TextContent and that it contains the expected string func AssertTextContentContainsInFirstString(t *testing.T, expected string, content []any) { if assert.Len(t, content, 1) && assert.IsType(t, mcp.TextContent{}, content[0]) { assert.Contains(t, content[0].(mcp.TextContent).Text, "fake logs") } }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/strowk/mcp-k8s-go'

If you have feedback or need assistance with the MCP directory API, please join our Discord server