Skip to content

Commit 0729559

Browse files
committed
Remove last remnants of this
1 parent ca06498 commit 0729559

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

internal/ghmcp/server.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
"github.com/github/github-mcp-server/pkg/github"
1616
mcplog "github.com/github/github-mcp-server/pkg/log"
1717
"github.com/github/github-mcp-server/pkg/raw"
18-
"github.com/github/github-mcp-server/pkg/toolsets"
1918
"github.com/github/github-mcp-server/pkg/translations"
2019
gogithub "github.com/google/go-github/v72/github"
2120
"github.com/mark3labs/mcp-go/mcp"
@@ -47,9 +46,6 @@ type MCPServerConfig struct {
4746

4847
// Translator provides translated text for the server tooling
4948
Translator translations.TranslationHelperFunc
50-
51-
// ToolHandlerWrapper is a function that can be used to wrap tool handlers
52-
ToolHandlerWrapper toolsets.ToolHandlerWrapper
5349
}
5450

5551
func NewMCPServer(cfg MCPServerConfig) (*server.MCPServer, error) {

pkg/toolsets/toolsets.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ func NewServerTool(tool mcp.Tool, handler server.ToolHandlerFunc) server.ServerT
3333
return server.ServerTool{Tool: tool, Handler: handler}
3434
}
3535

36-
type ToolHandlerWrapper func(handler server.ToolHandlerFunc) server.ToolHandlerFunc
37-
3836
func NewServerResourceTemplate(resourceTemplate mcp.ResourceTemplate, handler server.ResourceTemplateHandlerFunc) ServerResourceTemplate {
3937
return ServerResourceTemplate{
4038
resourceTemplate: resourceTemplate,
@@ -57,7 +55,6 @@ type Toolset struct {
5755
writeTools []server.ServerTool
5856
readTools []server.ServerTool
5957

60-
ToolHandler ToolHandlerWrapper
6158
// resources are not tools, but the community seems to be moving towards namespaces as a broader concept
6259
// and in order to have multiple servers running concurrently, we want to avoid overlapping resources too.
6360
resourceTemplates []ServerResourceTemplate

0 commit comments

Comments
 (0)