Debian Codegraph @

gopls/internal/test/marker/testdata/mcptools/file_metadata.txt

raw
1 This test exercises the "go_file_metadata" MCP tool.
2
3 -- flags --
4 -mcp
5
6 -- settings.json --
7 {
8 "mcpTools": {
9 "go_file_metadata": true
10 }
11 }
12 -- go.mod --
13 module example.com/cmd
14
15 go 1.21
16
17 -- main.go --
18 package main
19
20 //@mcptool("go_file_metadata", `{"file":"$WORKDIR/main.go"}`, output=metadata)
21
22 func main() {
23
24 }
25 -- @metadata --
26 File `$WORKDIR/main.go` is in package "example.com/cmd", which has the following files:
27 $WORKDIR/main.go