MCPcopy Create free account
hub / github.com/alecthomas/devtodo2 / NewServer

Function NewServer

mcp/server.go:48–59  ·  view source on GitHub ↗

NewServer creates a new MCP server for devtodo2.

(file, legacyFile string)

Source from the content-addressed store, hash-verified

46
47// NewServer creates a new MCP server for devtodo2.
48func NewServer(file, legacyFile string) *Server {
49 s := &Server{
50 file: file,
51 legacyFile: legacyFile,
52 }
53 s.server = mcp.NewServer(&mcp.Implementation{
54 Name: "devtodo2",
55 Version: "2.2.0",
56 }, nil)
57 s.registerTools()
58 return s
59}
60
61// Run starts the server with stdio transport.
62func (s *Server) Run(ctx context.Context) error {

Callers 2

mainFunction · 0.92
TestMCPServerFunction · 0.85

Calls 1

registerToolsMethod · 0.95

Tested by 1

TestMCPServerFunction · 0.68