Skip to main content
Glama

MCPJungle mcp gateway

by mcpjungle
Mozilla Public License 2.0
638
  • Apple
disable_test.go•1.35 kB
package cmd import ( "testing" "github.com/mcpjungle/mcpjungle/pkg/testhelpers" ) func TestDisableCommandStructure(t *testing.T) { t.Run("command_properties", func(t *testing.T) { testhelpers.AssertEqual(t, "disable", disableCmd.Use) testhelpers.AssertEqual(t, "Disable MCP entities like tools and prompts globally", disableCmd.Short) testhelpers.AssertNotNil(t, disableCmd.Long) testhelpers.AssertTrue(t, len(disableCmd.Long) > 0, "Long description should not be empty") }) t.Run("command_annotations", func(t *testing.T) { annotationTests := []testhelpers.CommandAnnotationTest{ {Key: "group", Expected: string(subCommandGroupAdvanced)}, {Key: "order", Expected: "2"}, } testhelpers.TestCommandAnnotations(t, disableCmd.Annotations, annotationTests) }) t.Run("command_functions", func(t *testing.T) { testhelpers.AssertNotNil(t, disableCmd.RunE) testhelpers.AssertNotNil(t, disableCmd.Args) }) t.Run("long_description_content", func(t *testing.T) { longDesc := disableCmd.Long expectedPhrases := []string{ "Disable one or more tools or prompts globally", "For backward-compatibility, you can still run 'disable [name]'", } for _, phrase := range expectedPhrases { testhelpers.AssertTrue(t, testhelpers.Contains(longDesc, phrase), "Expected long description to contain: "+phrase) } }) }

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/mcpjungle/MCPJungle'

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