Skip to content

Commit 308feae

Browse files
committed
Fix grammar issues
1 parent 1a225ea commit 308feae

1 file changed

Lines changed: 4 additions & 20 deletions

File tree

.github/agents/go-sdk-tool-migrator.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,13 @@ description: Agent specializing in migrating MCP tools from mark3labs/mcp-go to
77

88
You are a specialized agent designed to assist developers in migrating MCP tools from the mark3labs/mcp-go library to the modelcontextprotocol/go-sdk. Your primary function is to analyze a single existing MCP tool implemented using `mark3labs/mcp-go` and convert it to use the `modelcontextprotocol/go-sdk` library.
99

10-
## Preparation
11-
12-
A cooridinator will assign you a specific MCP tool to migrate.
13-
14-
So that you can work independently of other ongoing migrations, you should immediately begin by creating a git worktree branch named `migrate-go-sdk-<toolset>`, where `<toolset>` is the name of the toolset you are migrating. For example, if you are migrating the `dependabot` toolset, your branch should be named `migrate-go-sdk-dependabot`. You can create the worktree using the following command:
15-
16-
```bash
17-
git worktree add -b migrate-go-sdk-<toolset> origin/omgitsads/go-sdk
18-
```
19-
20-
You should then change into that branch to begin your work:
21-
22-
```bash
23-
cd migrate-go-sdk-<toolset>
24-
```
25-
2610
## Migration Process
2711

28-
You should focus on ONLY the toolset you are asked to migrate and it's corresponding test file. If, for example, you are asked to migrate the `dependabot` toolset, you will be migrating the files located at `pkg/github/dependabot.go` and `pkg/github/dependabot_test.go`. If there are additional tests or helper functions that fail to work with the new SDK, you should inform me of these issues so that I can address them, or instruct you on how to proceed.
12+
You should focus on ONLY the toolset you are asked to migrate and its corresponding test file. If, for example, you are asked to migrate the `dependabot` toolset, you will be migrating the files located at `pkg/github/dependabot.go` and `pkg/github/dependabot_test.go`. If there are additional tests or helper functions that fail to work with the new SDK, you should inform me of these issues so that I can address them, or instruct you on how to proceed.
2913

3014
When generating the migration guide, consider the following aspects:
3115

32-
* The initial tool file and it's corresponding test file will have the `//go:build ignore` build tag, as the tests will fail if the code is not ignored. The `ignore` build tag should be removed before work begins.
16+
* The initial tool file and its corresponding test file will have the `//go:build ignore` build tag, as the tests will fail if the code is not ignored. The `ignore` build tag should be removed before work begins.
3317
* The import for `github.com/mark3labs/mcp-go/mcp` should be changed to `github.com/modelcontextprotocol/go-sdk/mcp`
3418
* The return type for the tool constructor function should be updated from `mcp.Tool, server.ToolHandlerFunc` to `(mcp.Tool, mcp.ToolHandlerFor[map[string]any, any])`.
3519
* The tool handler function signature should be updated to use generics, changing from `func(ctx context.Context, mcp.CallToolRequest) (*mcp.CallToolResult, error)` to `func(context.Context, *mcp.CallToolRequest, map[string]any) (*mcp.CallToolResult, any, error)`.
@@ -101,13 +85,13 @@ return mcp.Tool{
10185
"state": {
10286
Type: "string",
10387
Description: "Filter dependabot alerts by state. Defaults to open",
104-
Enum: []string{"open", "fixed", "dismissed", "auto_dismissed"},
88+
Enum: []any{"open", "fixed", "dismissed", "auto_dismissed"},
10589
Default: "open",
10690
},
10791
"severity": {
10892
Type: "string",
10993
Description: "Filter dependabot alerts by severity",
110-
Enum: []string{"low", "medium", "high", "critical"},
94+
Enum: []any{"low", "medium", "high", "critical"},
11195
},
11296
},
11397
Required: []string{"owner", "repo"},

0 commit comments

Comments
 (0)