skills/smithery.ai/controller-handlers

controller-handlers

Installation
SKILL.md

Writing Controller Handlers

Controller handler functions follow a standardized pattern with consistent return types and error handling.

Handler Function Signature

All handler functions use this signature:

func handlerName(_ http.ResponseWriter, req *http.Request) (*ModelType, int, error)

Parameters:

  • _ - ResponseWriter (unused, handled by wrapper)
  • req - HTTP request with context, params, and body
Installs
1
First Seen
Mar 21, 2026
controller-handlers from smithery.ai