You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-6Lines changed: 35 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,10 +27,6 @@ For quick installation, use one of the one-click install buttons at the top of t
27
27
28
28
For manual installation, add the following JSON block to your User Settings (JSON) file in VS Code. You can do this by pressing `Ctrl + Shift + P` and typing `Preferences: Open User Settings (JSON)`.
29
29
30
-
Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.
31
-
32
-
> Note that the `mcp` key is not needed in the `.vscode/mcp.json` file.
33
-
34
30
```json
35
31
{
36
32
"mcp": {
@@ -62,6 +58,39 @@ Optionally, you can add it to a file called `.vscode/mcp.json` in your workspace
62
58
}
63
59
```
64
60
61
+
Optionally, you can add a similar example (i.e. without the mcp key) to a file called `.vscode/mcp.json` in your workspace. This will allow you to share the configuration with others.
funcEnableToolset(s*server.MCPServer, toolsetGroup*toolsets.ToolsetGroup, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
23
23
returnmcp.NewTool("enable_toolset",
24
24
mcp.WithDescription(t("TOOL_ENABLE_TOOLSET_DESCRIPTION", "Enable one of the sets of tools the GitHub MCP server provides, use get_toolset_tools and list_available_toolsets first to see what this will enable")),
25
+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
26
+
Title: t("TOOL_ENABLE_TOOLSET_USER_TITLE", "Enable a toolset"),
27
+
// Not modifying GitHub data so no need to show a warning
28
+
ReadOnlyHint: true,
29
+
}),
25
30
mcp.WithString("toolset",
26
31
mcp.Required(),
27
32
mcp.Description("The name of the toolset to enable"),
@@ -57,6 +62,10 @@ func EnableToolset(s *server.MCPServer, toolsetGroup *toolsets.ToolsetGroup, t t
57
62
funcListAvailableToolsets(toolsetGroup*toolsets.ToolsetGroup, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
58
63
returnmcp.NewTool("list_available_toolsets",
59
64
mcp.WithDescription(t("TOOL_LIST_AVAILABLE_TOOLSETS_DESCRIPTION", "List all available toolsets this GitHub MCP server can offer, providing the enabled status of each. Use this when a task could be achieved with a GitHub tool and the currently available tools aren't enough. Call get_toolset_tools with these toolset names to discover specific tools you can call")),
65
+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
66
+
Title: t("TOOL_LIST_AVAILABLE_TOOLSETS_USER_TITLE", "List available toolsets"),
// We need to convert the toolsetGroup back to a map for JSON serialization
@@ -87,6 +96,10 @@ func ListAvailableToolsets(toolsetGroup *toolsets.ToolsetGroup, t translations.T
87
96
funcGetToolsetsTools(toolsetGroup*toolsets.ToolsetGroup, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
88
97
returnmcp.NewTool("get_toolset_tools",
89
98
mcp.WithDescription(t("TOOL_GET_TOOLSET_TOOLS_DESCRIPTION", "Lists all the capabilities that are enabled with the specified toolset, use this to get clarity on whether enabling a toolset would help you to complete a task")),
99
+
mcp.WithToolAnnotation(mcp.ToolAnnotation{
100
+
Title: t("TOOL_GET_TOOLSET_TOOLS_USER_TITLE", "List all tools in a toolset"),
101
+
ReadOnlyHint: true,
102
+
}),
90
103
mcp.WithString("toolset",
91
104
mcp.Required(),
92
105
mcp.Description("The name of the toolset you want to get the tools for"),
0 commit comments