mcp-go-example

command module
v0.0.0-...-bac48eb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 16 Imported by: 0

README

mcp-go-example

Model Context Protocol sqlite example server using Go. This is just for learning purpose. No security implications, No multiuser support.

Python version is here. https://github.com/modelcontextprotocol/servers/tree/main/src/sqlite

Python version quickstart is here. https://modelcontextprotocol.io/quickstart

Usasge

Edit Claude Desktop config at ~/Library/Application\ Support/Claude/claude_desktop_config.json

{
  "mcpServers": {
    "sqlite": {
      "command": "path/to/mcp-go-example",
       "args": []
    }
  }
}

build and follow quickstart.

Tasks

test
go test
build

Requires: test

CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath .
inspect

Requires: build

npx -y @modelcontextprotocol/inspector ./mcp-go-example 
log
tail -f /tmp/mcp-go-example.log

License

MIT License

Copyright (c) 2024 Masa Cento

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL