Skip to main content
Glama
middleware_test.go1.13 kB
// ABOUTME: This file contains tests for the MCP server middleware. // ABOUTME: It verifies the logging middleware and middleware application. package server import ( "testing" ) func TestLoggingMiddleware(t *testing.T) { t.Run("Logging middleware exists", func(t *testing.T) { t.Skip("Test will be implemented once the middleware types are defined") }) t.Run("Logging middleware logs request details", func(t *testing.T) { t.Skip("Test will be implemented once the middleware types are defined") }) t.Run("Logging middleware logs response details", func(t *testing.T) { t.Skip("Test will be implemented once the middleware types are defined") }) t.Run("Logging middleware handles errors", func(t *testing.T) { t.Skip("Test will be implemented once the middleware types are defined") }) } func TestApplyMiddleware(t *testing.T) { t.Run("Apply middleware method exists", func(t *testing.T) { // Create a mock server server := &Server{} // Define a function that calls ApplyMiddleware applyFn := func() { server.ApplyMiddleware() } // If this compiles, the method exists _ = applyFn }) }

Latest Blog Posts

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/crdant/mbta-mcp-server'

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