Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
8beacca
Bump go-viper/mapstructure (#1110)
JoannaaKL Sep 22, 2025
02ca293
docs: Update optional headers and path params for remote server (#1111)
LuluBeatson Sep 22, 2025
d6d60f4
Update documentation to reflect OAuth support (#1070)
omgitsads Sep 22, 2025
23630b3
Add ListProjects tool (#1113)
JoannaaKL Sep 22, 2025
f1e0e8f
Adding option to manually dispatch docker container build workflows (…
almaleksia Sep 23, 2025
0ca30ec
Add MCP Registry server file (#1128)
MattBabbage Sep 24, 2025
eb0757c
Add MCP Registry publish workflow (#1129)
MattBabbage Sep 24, 2025
bc97baf
Update MCP Registry Publish Script (#1132)
MattBabbage Sep 25, 2025
2efa8e8
Add Copilot Spaces toolset to readme (#1135)
almaleksia Sep 25, 2025
0a1d6db
Add server instructions based on toolsets (#1091)
olaservo Sep 25, 2025
abf7c47
Add tools for Projects V2 (#1114)
JoannaaKL Sep 26, 2025
10a33e7
build(deps): bump actions/setup-go from 5 to 6 (#1118)
dependabot[bot] Sep 26, 2025
af534df
build(deps): bump sigstore/cosign-installer from 3.5.0 to 3.10.0 (#1117)
dependabot[bot] Sep 26, 2025
11118ed
build(deps): bump docker/build-push-action from 5.0.0 to 6.18.0 (#1120)
dependabot[bot] Sep 26, 2025
f39cf34
build(deps): bump goreleaser/goreleaser-action from 6.3.0 to 6.4.0 (#…
dependabot[bot] Sep 26, 2025
35b0da2
Add container label & improve registry script (#1143)
MattBabbage Sep 26, 2025
371b9ae
MCP Registry Publication - Declobbering (#1151)
MattBabbage Sep 29, 2025
0885601
Add tool for project fields and items (#1145)
JoannaaKL Sep 29, 2025
6793b9d
Add tools to add, update and delete project items (#1152)
JoannaaKL Sep 30, 2025
62f6876
OSS Registry schema update (#1163)
MattBabbage Sep 30, 2025
6d01897
Remove update_project_item tool (#1167)
JoannaaKL Oct 1, 2025
03879b6
build(deps): bump docker/login-action from 3.5.0 to 3.6.0 (#1155)
dependabot[bot] Oct 2, 2025
23fa0dd
build(deps): bump actions/setup-go from 5 to 6 (#1154)
dependabot[bot] Oct 2, 2025
bf0d62e
Adding default toolset grouping (#1159)
tonytrg Oct 6, 2025
8a69a5c
Add flexibility around server instructions for search-related tools (…
tommaso-moro Oct 6, 2025
d0d4b0e
Consolidating pull requests `get` tools (#1172)
almaleksia Oct 7, 2025
94b3d72
Revert "Add flexibility around server instructions for search-related…
tommaso-moro Oct 7, 2025
dee5927
Fix binary files retrieval (#1183)
kerobbi Oct 7, 2025
dc7c27c
Improve registry release reliablilty (#1174)
MattBabbage Oct 9, 2025
16b43c9
Add sort and order parameters to search_repositories tool (#1191)
kerobbi Oct 9, 2025
bbfc44c
adding labels tools (#1193)
tonytrg Oct 9, 2025
5c61abe
Add update project item tool (#1194)
JoannaaKL Oct 9, 2025
f9343e6
rename tooling (#1198)
tonytrg Oct 9, 2025
250723d
Simplify Registry release pipeline (#1204)
MattBabbage Oct 10, 2025
bcc5275
Ignore unknown toolsets (#1202)
omgitsads Oct 10, 2025
e5522fc
Consolidate pull request review tools (#1192)
almaleksia Oct 10, 2025
0188cc0
restructure readme for better ghes ghec visibility (#1210)
tonytrg Oct 13, 2025
ea4d842
docs: Gemini CLI additional options (#1223)
LuluBeatson Oct 15, 2025
99acea6
Fix subdomain isolation URL parsing (#1218)
tonytrg Oct 15, 2025
5f74b53
Update readme for remote only tools (#1227)
omgitsads Oct 15, 2025
7b4b292
docs: New "GitHub Support Docs Search" tool (#1225)
LuluBeatson Oct 15, 2025
66fabb7
Adding default toolset as configuration (#1229)
tonytrg Oct 15, 2025
84ae009
Add Gemini CLI extension (#1232)
marzvrover Oct 17, 2025
11c3d70
Fix environment variable mapping for read-only mode (#1067)
pinotelio Oct 20, 2025
9f88459
build(deps): bump sigstore/cosign-installer from 3.10.0 to 4.0.0 (#1264)
dependabot[bot] Oct 21, 2025
9fc2640
build(deps): bump github/codeql-action from 3 to 4 (#1213)
dependabot[bot] Oct 21, 2025
3ddf649
build(deps): bump golang from 1.25.1-alpine to 1.25.3-alpine (#1263)
dependabot[bot] Oct 21, 2025
c019595
Split up tooling utility (#1273)
tonytrg Oct 21, 2025
f51bd45
Add ai-moderator workflow (#1274)
JoannaaKL Oct 22, 2025
3ba8d4a
Issues consolidation (#1211)
almaleksia Oct 23, 2025
af2e93b
projects: add item field support (#1282)
tmelliottjr Oct 23, 2025
5ca232e
fixing url param descriptions (#1287)
tonytrg Oct 23, 2025
70cb737
projects: update fields and prompt (#1292)
tmelliottjr Oct 24, 2025
5e5e80a
chore(mcp/server.json): improve the OCI package specification (#1217)
axel7083 Oct 24, 2025
ff98fc4
Update registry server version (#1279)
MattBabbage Oct 27, 2025
bd12537
Process improvements (#1316)
JoannaaKL Oct 27, 2025
6f50407
Updates github-mcp-server to `go-github/v76` (#1289)
stephenotalora Oct 27, 2025
2592447
Dont pass milestone if not provided (#1318)
JoannaaKL Oct 27, 2025
0b65b1b
Update description (#1319)
JoannaaKL Oct 27, 2025
dc53810
Added get gist tool (#1105)
Vidit-Ostwal Oct 30, 2025
304f29a
Add basic content sanitizer (#1344)
JoannaaKL Oct 31, 2025
05e0f8f
build(deps): bump actions/checkout from 4 to 5 (#1320)
dependabot[bot] Nov 4, 2025
6a39a39
Add html filtering (#1356)
JoannaaKL Nov 5, 2025
5cef28f
Filter code fences (#1367)
JoannaaKL Nov 6, 2025
bc4555f
Allow http (#1369)
JoannaaKL Nov 6, 2025
1090290
build(deps): bump golang.org/x/net from 0.26.0 to 0.38.0 in the go_mo…
dependabot[bot] Nov 7, 2025
cf0e05e
Update to `google/go-github@v77` (#1357)
stephenotalora Nov 7, 2025
b68bec0
Update mcp server with latest google/go-github API (#1358)
stephenotalora Nov 7, 2025
e26cf42
Add Repository Tree Navigation Tool (#1164)
natagdunbar Nov 10, 2025
2e54180
Add lockdown mode to filter issue (#1371)
JoannaaKL Nov 10, 2025
7581440
Remove unused github.com/google/go-github/v76 dependency
natagdunbar Nov 10, 2025
342939e
Add lockdown mode to docs (#1391)
JoannaaKL Nov 11, 2025
0a4b921
build(deps): bump golangci/golangci-lint-action from 8 to 9 (#1379)
dependabot[bot] Nov 11, 2025
b466148
build(deps): bump golang from 1.25.3-alpine to 1.25.4-alpine (#1381)
dependabot[bot] Nov 11, 2025
41090e5
Update docs regarding MCP Server behaviour when bad toolsets are prov…
tommaso-moro Nov 13, 2025
1d5603f
Update docs to state that dynamic mode is not available in Remote Ser…
tommaso-moro Nov 13, 2025
4fcfaa5
Set title for GitHub MCP Server in server.json (#1397)
thomas-sickert Nov 13, 2025
3d6ce68
build(deps): bump docker/metadata-action from 5.8.0 to 5.9.0 (#1380)
dependabot[bot] Nov 14, 2025
e903346
projects: serialization & pagination updates (#1390)
tmelliottjr Nov 14, 2025
be6161d
Fix capitalization in GitHub MCP Server section
NenoLoje Nov 1, 2025
c73f06f
bumps google/go-github to v79
stephenotalora Nov 14, 2025
649087c
updates generated licenses
stephenotalora Nov 14, 2025
4852f5a
Add remote server to registry endtry
almaleksia Nov 13, 2025
df347e3
Update server.json
almaleksia Nov 13, 2025
bd7ca66
updates mcp-server with latest google-go-github APIs
stephenotalora Nov 14, 2025
1d6499d
removes unused code
stephenotalora Nov 14, 2025
e95d8ee
addresses float64 to in64 feedback from copilot
stephenotalora Nov 14, 2025
88a594e
improve response/feedback loop with better error messages (#1414)
tonytrg Nov 17, 2025
2f64ac0
Add discussion metadata fields to get_discussion tool (#1305)
Higangssh Nov 17, 2025
7359888
Add Go SDK Migrator agent (#1424)
omgitsads Nov 18, 2025
aba64af
Add comprehensive copilot instructions for repository
Copilot Nov 10, 2025
b25a342
Add library usage and code quality guidelines to copilot instructions
Copilot Nov 10, 2025
bb722f1
Apply suggestions from code review
SamMorrowDrums Nov 18, 2025
9b747a6
Add installation guide for OpenAI Codex (#1340)
jamesmontemagno Nov 19, 2025
f3b9a63
Report error when API silently fails to add review comment (#1441)
almaleksia Nov 19, 2025
548c27c
adding remote server header for lockdown configuration (#1417)
tonytrg Nov 19, 2025
ec6afa7
Instruct LLM to use pull request template when creating PRs (#1442)
almaleksia Nov 19, 2025
28b868d
Add in memory cache for lockdown mode (#1416)
JoannaaKL Nov 21, 2025
2941e87
Add go report card to the Readme (#1462)
JoannaaKL Nov 21, 2025
6a57e75
Delete package configuration from server.json (temporarily) (#1474)
almaleksia Nov 24, 2025
8a6accb
replacing all with default (#1489)
tonytrg Nov 25, 2025
781a95f
build(deps): bump actions/checkout from 5 to 6 (#1480)
dependabot[bot] Nov 25, 2025
7cfb354
Dont filter content from Copilot (#1464)
JoannaaKL Nov 26, 2025
3e1fca0
Tommy/tool-specific-config-support (#1394)
tommaso-moro Nov 26, 2025
4d6d64e
Add AI issue assessment workflow with github/ai-assessment-comment-la…
Copilot Nov 28, 2025
9c73e88
Tommy/server-config-docs (#1495)
tommaso-moro Nov 28, 2025
ada4bc0
Add ai_review_label to ai-issue-assessment.yml (#1501)
Copilot Nov 28, 2025
60aef5d
Convert to `modelcontextprotocol/go-sdk` (#1428)
omgitsads Dec 1, 2025
9b34211
Check if the tool is _NOT_ read only before skipping it in read-only …
omgitsads Dec 1, 2025
fa2d802
Add resource completion for GitHub repository resources (#1493)
omgitsads Dec 1, 2025
8dac9b1
Add proxima config for oauth (#1528)
tonytrg Dec 4, 2025
f197a9f
Add Tool Handler shim to RegisterFunc (#1536)
omgitsads Dec 4, 2025
82c4930
fix: include empty properties in get_me schema for OpenAI compatibility
SamMorrowDrums Dec 8, 2025
cfd7ef9
Correct lower-case issue state (#1567)
almaleksia Dec 10, 2025
90a1255
Trim leading slash in path parameter (#1569)
almaleksia Dec 10, 2025
94ee074
Add support for safe tool renaming (#1563)
tommaso-moro Dec 11, 2025
4cbbf6f
fix: indent multi-line descriptions in generated docs
SamMorrowDrums Dec 11, 2025
5da71e3
fix: update get-me script for go-SDK MCP protocol
SamMorrowDrums Dec 8, 2025
5cd95dc
remove both default and all (#1401)
tommaso-moro Dec 12, 2025
87ea319
fix: handle architecture-specific license differences
SamMorrowDrums Dec 12, 2025
3a1844c
fix: make license script portable and deterministic
SamMorrowDrums Dec 12, 2025
e7e2925
fix: update licenses-check to use new architecture-aware format
SamMorrowDrums Dec 12, 2025
adaa6a1
fix: use LC_ALL=C for consistent sorting across systems
SamMorrowDrums Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
112 changes: 112 additions & 0 deletions .github/agents/go-sdk-tool-migrator.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
---
name: go-sdk-tool-migrator
description: Agent specializing in migrating MCP tools from mark3labs/mcp-go to modelcontextprotocol/go-sdk
---

# Go SDK Tool Migrator Agent

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.

## Migration Process

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.

When generating the migration guide, consider the following aspects:

* 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.
* The import for `github.com/mark3labs/mcp-go/mcp` should be changed to `github.com/modelcontextprotocol/go-sdk/mcp`
* 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])`.
* 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)`.
* The `RequiredParam`, `RequiredInt`, `RequiredBigInt`, `OptionalParamOK`, `OptionalParam`, `OptionalIntParam`, `OptionalIntParamWithDefault`, `OptionalBoolParamWithDefault`, `OptionalStringArrayParam`, `OptionalBigIntArrayParam` and `OptionalCursorPaginationParams` functions should be changed to use the tool arguments that are now passed as a map in the tool handler function, rather than extracting them from the `mcp.CallToolRequest`.
* `mcp.NewToolResultText`, `mcp.NewToolResultError`, `mcp.NewToolResultErrorFromErr` and `mcp.NewToolResultResource` no longer available in `modelcontextprotocol/go-sdk`. There are a few helper functions available in `pkg/utils/result.go` that can be used to replace these, in the `utils` package.

### Schema Changes

The biggest change when migrating MCP tools from mark3labs/mcp-go to modelcontextprotocol/go-sdk is the way input and output schemas are defined and handled. In `mark3labs/mcp-go`, input and output schemas were often defined using a DSL provided by the library. In `modelcontextprotocol/go-sdk`, schemas are defined using `jsonschema.Schema` structures using `github.com/google/jsonschema-go`, which are more verbose.

When migrating a tool, you will need to convert the existing schema definitions to JSON Schema format. This involves defining the properties, types, and any validation rules using the JSON Schema specification.

#### Example Schema Guide

If we take an example of a tool that has the following input schema in mark3labs/mcp-go:

```go
...
return mcp.NewTool(
"list_dependabot_alerts",
mcp.WithDescription(t("TOOL_LIST_DEPENDABOT_ALERTS_DESCRIPTION", "List dependabot alerts in a GitHub repository.")),
mcp.WithToolAnnotation(mcp.ToolAnnotation{
Title: t("TOOL_LIST_DEPENDABOT_ALERTS_USER_TITLE", "List dependabot alerts"),
ReadOnlyHint: ToBoolPtr(true),
}),
mcp.WithString("owner",
mcp.Required(),
mcp.Description("The owner of the repository."),
),
mcp.WithString("repo",
mcp.Required(),
mcp.Description("The name of the repository."),
),
mcp.WithString("state",
mcp.Description("Filter dependabot alerts by state. Defaults to open"),
mcp.DefaultString("open"),
mcp.Enum("open", "fixed", "dismissed", "auto_dismissed"),
),
mcp.WithString("severity",
mcp.Description("Filter dependabot alerts by severity"),
mcp.Enum("low", "medium", "high", "critical"),
),
),
...
```

The corresponding input schema in modelcontextprotocol/go-sdk would look like this:

```go
...
return mcp.Tool{
Name: "list_dependabot_alerts",
Description: t("TOOL_LIST_DEPENDABOT_ALERTS_DESCRIPTION", "List dependabot alerts in a GitHub repository."),
Annotations: &mcp.ToolAnnotations{
Title: t("TOOL_LIST_DEPENDABOT_ALERTS_USER_TITLE", "List dependabot alerts"),
ReadOnlyHint: true,
},
InputSchema: &jsonschema.Schema{
Type: "object",
Properties: map[string]*jsonschema.Schema{
"owner": {
Type: "string",
Description: "The owner of the repository.",
},
"repo": {
Type: "string",
Description: "The name of the repository.",
},
"state": {
Type: "string",
Description: "Filter dependabot alerts by state. Defaults to open",
Enum: []any{"open", "fixed", "dismissed", "auto_dismissed"},
Default: "open",
},
"severity": {
Type: "string",
Description: "Filter dependabot alerts by severity",
Enum: []any{"low", "medium", "high", "critical"},
},
},
Required: []string{"owner", "repo"},
},
}
```

### Tests

After migrating the tool code and test file, ensure that all tests pass successfully. If any tests fail, review the error messages and adjust the migrated code as necessary to resolve any issues. If you encounter any challenges or need further assistance during the migration process, please let me know.

At the end of your changes, you will continue to have an issue with the `toolsnaps` tests, these validate that the schema has not changed unexpectedly. You can update the snapshots by setting `UPDATE_TOOLSNAPS=true` before running the tests, e.g.:

```bash
UPDATE_TOOLSNAPS=true go test ./...
```

You should however, only update the toolsnaps after confirming that the schema changes are intentional and correct. Some schema changes are unavoidable, such as argument ordering, however the schemas themselves should remain logically equivalent.
Loading