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
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1278,7 +1278,7 @@ The following sets of tools are available:
1278
1278
-**create_or_update_file** - Create or update file
1279
1279
-**Required OAuth Scopes**: `repo`
1280
1280
-`branch`: Branch to create/update the file in (string, required)
1281
-
-`content`: Content of the file (string, required)
1281
+
-`content`: Content of the file, exactly as it should appear once written. Do not base64-encode it; this server does that before calling the REST API. (string, required)
1282
1282
-`message`: Commit message (string, required)
1283
1283
-`owner`: Repository owner (username or organization) (string, required)
1284
1284
-`path`: Path where to create/update the file (string, required)
Copy file name to clipboardExpand all lines: pkg/github/__toolsnaps__/create_or_update_file.snap
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@
12
12
"type": "string"
13
13
},
14
14
"content": {
15
-
"description": "Content of the file",
15
+
"description": "Content of the file, exactly as it should appear once written. Do not base64-encode it; this server does that before calling the REST API.",
Copy file name to clipboardExpand all lines: pkg/github/repositories.go
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -436,7 +436,7 @@ SHA MUST be provided for existing file updates.
436
436
},
437
437
"content": {
438
438
Type: "string",
439
-
Description: "Content of the file",
439
+
Description: "Content of the file, exactly as it should appear once written. Do not base64-encode it; this server does that before calling the REST API.",
require.NoError(t, err, "expected server creation to succeed")
266
+
267
+
caps:=advertisedServerCapabilities(t, server)
268
+
269
+
require.NotNil(t, caps.Tools, "tools capability should be advertised")
270
+
assert.False(t, caps.Tools.ListChanged, "tools list-changed must not be advertised")
271
+
272
+
require.NotNil(t, caps.Prompts, "prompts capability should be advertised")
273
+
assert.False(t, caps.Prompts.ListChanged, "prompts list-changed must not be advertised")
274
+
275
+
require.NotNil(t, caps.Resources, "resources capability should be advertised")
276
+
assert.False(t, caps.Resources.ListChanged, "resources list-changed must not be advertised")
277
+
assert.False(t, caps.Resources.Subscribe, "resources subscribe must not be advertised")
278
+
279
+
assert.NotNil(t, caps.Completions, "completions capability should be preserved")
280
+
// Intentionally asserting the deprecated logging capability is absent.
281
+
assert.Nil(t, caps.Logging, "deprecated logging capability should not be advertised") //nolint:staticcheck // SA1019: verifying the deprecated capability is not advertised
282
+
})
283
+
}
284
+
}
285
+
194
286
// TestNewServer_NameAndTitleViaTranslation verifies that server name and title
195
287
// can be overridden via the translation helper (GITHUB_MCP_SERVER_NAME /
196
288
// GITHUB_MCP_SERVER_TITLE env vars or github-mcp-server-config.json) and
0 commit comments