MCPcopy Create free account
hub / github.com/github/gh-aw / getMCPScriptsModeCodemod

Function getMCPScriptsModeCodemod

pkg/cli/codemod_mcp_scripts.go:10–21  ·  view source on GitHub ↗

getMCPScriptsModeCodemod creates a codemod for removing the deprecated mcp-scripts.mode field

()

Source from the content-addressed store, hash-verified

8
9// getMCPScriptsModeCodemod creates a codemod for removing the deprecated mcp-scripts.mode field
10func getMCPScriptsModeCodemod() Codemod {
11 return newFieldRemovalCodemod(fieldRemovalCodemodConfig{
12 ID: "mcp-scripts-mode-removal",
13 Name: "Remove deprecated mcp-scripts.mode field",
14 Description: "Removes the deprecated 'mcp-scripts.mode' field (HTTP is now the only supported mode)",
15 IntroducedIn: "0.2.0",
16 ParentKey: "mcp-scripts",
17 FieldKey: "mode",
18 LogMsg: "Applied mcp-scripts.mode removal",
19 Log: mcpScriptsModeCodemodLog,
20 })
21}

Calls 1

newFieldRemovalCodemodFunction · 0.85