We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1e0040b commitefc0cdbCopy full SHA for efc0cdb
cli/exp_mcp.go
@@ -113,4 +113,4 @@ func mcpHandler(inv *serpent.Invocation, client *codersdk.Client, instructions s
113
}
114
115
returnnil
116
-}
+}
cli/exp_mcp_test.go
@@ -133,4 +133,4 @@ func TestExpMcp(t *testing.T) {
133
err:=inv.Run()
134
assert.ErrorContains(t,err,"your session has expired")
135
})
136
go.mod
@@ -320,7 +320,7 @@ require (
320
github.com/google/nftablesv0.2.0// indirect
321
github.com/google/pprofv0.0.0-20230817174616-7a8ec2ada47b// indirect
322
github.com/google/s2a-gov0.1.9// indirect
323
-github.com/google/shlexv0.0.0-20191202100458-e7afc7fbc510// indirect
+github.com/google/shlexv0.0.0-20191202100458-e7afc7fbc510
324
github.com/googleapis/enterprise-certificate-proxyv0.3.6// indirect
325
github.com/googleapis/gax-go/v2v2.14.1// indirect
326
github.com/gorilla/cssv1.0.1// indirect
mcp/tools/command_validator_test.go
@@ -9,6 +9,7 @@ import (
9
)
10
11
funcTestIsCommandAllowed(t*testing.T) {
12
+t.Parallel()
13
tests:= []struct {
14
namestring
15
commandstring
@@ -65,6 +66,7 @@ func TestIsCommandAllowed(t *testing.T) {
65
66
67
for_,tt:=rangetests {
68
t.Run(tt.name,func(t*testing.T) {
69
70
got,err:=mcptools.IsCommandAllowed(tt.command,tt.allowedCommands)
71
iftt.wantErr {
72
require.Error(t,err)
mcp/tools/tools_coder.go
@@ -50,7 +50,7 @@ func handleCoderReportTask(deps ToolDeps) mcpserver.ToolHandlerFunc {
50
51
52
// TODO: Waiting on support for tasks.
53
-deps.Logger.Info(ctx,"reporting task",slog.F("summary",summary),slog.F("link",link),slog.F("done",done),slog.F("emoji",emoji))
+deps.Logger.Info(ctx,"report task tool called",slog.F("summary",summary),slog.F("link",link),slog.F("done",done),slog.F("emoji",emoji))
54
/*
55
err := sdk.PostTask(ctx, agentsdk.PostTaskRequest{
56
Reporter: "claude",
mcp/tools/tools_registry.go
@@ -5,7 +5,6 @@ import (
5
6
"github.com/mark3labs/mcp-go/mcp"
7
"github.com/mark3labs/mcp-go/server"
8
-mcpserver"github.com/mark3labs/mcp-go/server"
"cdr.dev/slog"
"github.com/coder/coder/v2/codersdk"
@@ -83,7 +82,7 @@ Good Summaries:
83
82
84
// ToolAdder interface for adding tools to a server
85
typeToolAdderinterface {
86
-AddTool(tool mcp.Tool,handlermcpserver.ToolHandlerFunc)
+AddTool(tool mcp.Tool,handlerserver.ToolHandlerFunc)
87
88
89
// Ensure that MCPServer implements ToolAdder
@@ -99,7 +98,7 @@ type ToolDeps struct {
99
98
// ToolHandler associates a tool with its handler creation function
100
typeToolHandlerstruct {
101
Tool mcp.Tool
102
-MakeHandlerfunc(ToolDeps)mcpserver.ToolHandlerFunc
+MakeHandlerfunc(ToolDeps)server.ToolHandlerFunc
103
104
105
// ToolRegistry is a map of available tools with their handler creation