Skip to main content
Glama

DiceDB MCP

by pottekkat
MIT License
5
  • Linux
  • Apple
main.go993 B
package main import ( "fmt" "github.com/mark3labs/mcp-go/server" "github.com/pottekkat/dicedb-mcp/internal/tools" ) func main() { // Create a new MCP server s := server.NewMCPServer( "DiceDB MCP", "0.1.0", server.WithToolCapabilities(false), ) // Create and add the ping tool pingTool := tools.NewPingTool() s.AddTool(pingTool, tools.HandlePingTool) echoTool := tools.NewEchoTool() s.AddTool(echoTool, tools.HandleEchoTool) // Create and add the get tool getTool := tools.NewGetTool() s.AddTool(getTool, tools.HandleGetTool) // Create and add the set tool setTool := tools.NewSetTool() s.AddTool(setTool, tools.HandleSetTool) // Create and add the del tool delTool := tools.NewDelTool() s.AddTool(delTool, tools.HandleDelTool) // Create and add the incr tool incrTool := tools.NewIncrTool() s.AddTool(incrTool, tools.HandleIncrTool) // Start the server if err := server.ServeStdio(s); err != nil { fmt.Printf("Error starting server: %v\n", err) } }

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/pottekkat/dicedb-mcp'

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