Tapd MCP Server
📥 Usage
Use STDIO Server
Install the package
go install github.com/go-tapd/mcp/cmd/tapd-mcp-server@latest
Configure the MCP server
Below is a configuration example based on Cline, with different configurations for various MCP Clients.
{
"mcpServers": {
"github.com/go-tapd/mcp": {
"command": "{path}/tapd-mcp-server",
"env": {
"TAPD_USERNAME": "<YOUR_USERNAME>",
"TAPD_PASSWORD": "<YOUR_PASSWORD>",
"TAPD_WORKSPACE_ID": "<YOUR_WORKSPACE_ID>"
}
}
}
}
Use SSE Server
Install the package
go get github.com/go-tapd/mcp
Create a server
package main
import (
"log"
"net/http"
"github.com/go-tapd/mcp"
"github.com/go-tapd/tapd"
)
func main() {
client, err := tapd.NewClient("username", "password")
if err != nil {
log.Fatal(err)
}
workspaceID := 123456 // replace with your workspace ID
srv, err := mcp.NewServer(workspaceID, client)
if err != nil {
log.Fatal(err)
}
http.HandleFunc("/", srv.ServeHTTP)
if err := http.ListenAndServe(":8080", nil); err != nil {
log.Fatal(err)
}
}
Visit http://localhost:8080/sse to get the SSE stream.
📦 Features
需求
用户
📄 License
MIT