How akamai-developers/akamai-functions-mcp-server works
This is an MCP server that lets an AI assistant inspect and manage Akamai Functions applications through the Spin aka CLI. The main workflow is an MCP tool request, tool-specific validation and dispatch, backend CLI execution, and a structured response. Capabilities also include account-wide app search, deployment and workspace linking, and MCP resources for local app context and the spin aka reference. Edges reflect the shown registration, method calls, and CLI execution; some README-listed capabilities are grouped where their implementation is in the same file.
Main entry points: registration.go Tool registration · backend.go Backend interface · main.go MCP server · resources.go Resource registration
Components 14
MCP entry
- MCP server
main.go - Tool registration
internal/tools/registration.go
Tool capabilities
- Account tools
internal/tools/accounts.go - App inventory
internal/tools/apps.go - App operations
internal/tools/app.go - App search
internal/tools/search.go - Tool responses
internal/tools/tools.go
Spin backend
- Backend interface
internal/spin/backend.go - Spin CLI adapter
internal/spin/spin.go
MCP resources
- Resource registration
internal/resources/resources.go - Local app context
internal/resources/resources.go - Command reference
internal/resources/resources.go
Other components
- AI assistant
- Spin aka CLI
Connections 16
- AI assistant → MCP server: sends MCP requests
main.go - MCP server → Tool registration: registers tools
main.go - MCP server → Resource registration: registers resources
main.go - Tool registration → Account tools: dispatches account calls
internal/tools/registration.go - Tool registration → App inventory: dispatches inventory calls
internal/tools/registration.go - Tool registration → App operations: dispatches app calls
internal/tools/registration.go - Tool registration → App search: dispatches search calls
internal/tools/registration.go - Account tools → Backend interface: calls account methods
internal/tools/accounts.go - App inventory → Backend interface: calls app listing
internal/tools/apps.go - App operations → Backend interface: calls app methods
internal/tools/app.go - App search → Backend interface: lists accounts and apps
internal/tools/search.go - Backend interface → Spin CLI adapter: implemented by
internal/spin/spin.go - Spin CLI adapter → Spin aka CLI: executes commands
internal/spin/spin.go - Resource registration → Local app context: serves context
internal/resources/resources.go - Resource registration → Command reference: serves reference
internal/resources/resources.go - MCP server → AI assistant: serves responses
main.go