Skip to main content
Glama

Storyden

by Southclaws
Mozilla Public License 2.0
229
param_context.go580 B
package openapi import ( "github.com/Southclaws/fault/fctx" "github.com/labstack/echo/v4" ) // ParameterContext is a simple middleware for injecting request metadata into a // context object for use with the fctx library. This makes diagnostics easy. func ParameterContext(next echo.HandlerFunc) echo.HandlerFunc { return func(c echo.Context) error { r := c.Request() ctx := r.Context() meta := []string{} for _, k := range c.ParamNames() { meta = append(meta, k, c.Param(k)) } c.SetRequest(r.WithContext(fctx.WithMeta(ctx, meta...))) return next(c) } }

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/Southclaws/storyden'

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