Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
edbdf4b
docs: Add Google Gemini CLI installation guide and integration
ipapapa Jul 26, 2025
89ec9f5
Fix Gemini CLI command syntax and add remote server method
ipapapa Aug 2, 2025
526a6c1
Merge branch 'main' into add-gemini-cli-docs
ipapapa Aug 3, 2025
0127628
Emphasize official Gemini CLI documentation link
ipapapa Aug 5, 2025
a6e2426
Fix Gemini CLI configuration file name: config.json -> settings.json
ipapapa Aug 8, 2025
bc96391
Remove Gemini CLI installation and authentication sections
ipapapa Aug 8, 2025
79e0782
Add Podman as Docker alternative in prerequisites
ipapapa Aug 8, 2025
6bfae0d
Remove references to deprecated npm package
ipapapa Aug 8, 2025
c52a1de
Add comprehensive ~/.gemini/.env file example
ipapapa Aug 8, 2025
e5e7bfd
Fix authorization header to use literal token placeholder
ipapapa Aug 8, 2025
d6696f6
Merge branch 'main' into add-gemini-cli-docs
ipapapa Aug 14, 2025
7e73679
Add issue types (#869)
JoannaaKL Aug 14, 2025
8f794ab
Enable Dependabot (#654)
zkoppert Aug 14, 2025
660967c
Bump SDK version to 0.36.0 (#863)
almaleksia Aug 14, 2025
83c67d1
Use server.ServerResourceTemplate and server.ServerPrompt wrappers (#…
almaleksia Aug 14, 2025
0d4dca9
Update "Close inactive issues" workflow to close issues after 180 day…
tommaso-moro Aug 18, 2025
34434aa
Update Claude MCP install guide after testing (#706)
D1M1TR10S Aug 18, 2025
fc381f8
Add actions job log buffer and profiler (#866)
mattdholloway Aug 19, 2025
615cc60
Add get_release_by_tag tool (#938)
tommaso-moro Aug 21, 2025
72a7214
docs(readme): Update readme to point to correct installation guides i…
beccccaboo Aug 21, 2025
cd4454e
Add Global Security Advisories Toolset (#919)
jurre Aug 21, 2025
ad3bf32
Repository security advisories (#925)
jurre Aug 21, 2025
6d4e070
Update Cursor installation link (#940)
tommaso-moro Aug 21, 2025
b33df25
Change role from "system" to "user" in prompt messages for `AssignCod…
tommaso-moro Aug 21, 2025
7acaad0
Resolve merge conflict with latest upstream main
ipapapa Aug 28, 2025
60fa301
Merge branch 'main' into add-gemini-cli-docs
LuluBeatson Aug 29, 2025
39db9e7
Local MCP is supported
LuluBeatson Aug 29, 2025
ff86293
Refactor Gemini CLI install guide
LuluBeatson Aug 29, 2025
f2e5ad7
Remove Bearer from Authorization header
ipapapa Aug 29, 2025
26d9139
Add reference to main README for latest config
ipapapa Aug 31, 2025
f86124e
Bearer needed for headers, add references
LuluBeatson Sep 2, 2025
12040db
Add minimal response to CRUD tools, `repositories` and `search` tools…
mattdholloway Sep 1, 2025
f898f17
initial org repo create support (#1023)
mattdholloway Sep 2, 2025
f6718c7
Merge branch 'main' into add-gemini-cli-docs
LuluBeatson Sep 2, 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
Prev Previous commit
Next Next commit
initial org repo create support (#1023)
  • Loading branch information
mattdholloway authored and LuluBeatson committed Sep 2, 2025
commit f898f17da0d08b0c9dad3860b7c067bb00706c0e
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ The following sets of tools are available (all are on by default):
- `autoInit`: Initialize with README (boolean, optional)
- `description`: Repository description (string, optional)
- `name`: Repository name (string, required)
- `organization`: Organization to create the repository in (omit to create in your personal account) (string, optional)
- `private`: Whether repo should be private (boolean, optional)

- **delete_file** - Delete file
Expand Down
6 changes: 5 additions & 1 deletion pkg/github/__toolsnaps__/create_repository.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Create repository",
"readOnlyHint": false
},
"description": "Create a new GitHub repository in your account",
"description": "Create a new GitHub repository in your account or specified organization",
"inputSchema": {
"properties": {
"autoInit": {
Expand All @@ -18,6 +18,10 @@
"description": "Repository name",
"type": "string"
},
"organization": {
"description": "Organization to create the repository in (omit to create in your personal account)",
"type": "string"
},
"private": {
"description": "Whether repo should be private",
"type": "boolean"
Expand Down
11 changes: 9 additions & 2 deletions pkg/github/repositories.go
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ func CreateOrUpdateFile(getClient GetClientFn, t translations.TranslationHelperF
// CreateRepository creates a tool to create a new GitHub repository.
func CreateRepository(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
return mcp.NewTool("create_repository",
mcp.WithDescription(t("TOOL_CREATE_REPOSITORY_DESCRIPTION", "Create a new GitHub repository in your account")),
mcp.WithDescription(t("TOOL_CREATE_REPOSITORY_DESCRIPTION", "Create a new GitHub repository in your account or specified organization")),
mcp.WithToolAnnotation(mcp.ToolAnnotation{
Title: t("TOOL_CREATE_REPOSITORY_USER_TITLE", "Create repository"),
ReadOnlyHint: ToBoolPtr(false),
Expand All @@ -405,6 +405,9 @@ func CreateRepository(getClient GetClientFn, t translations.TranslationHelperFun
mcp.WithString("description",
mcp.Description("Repository description"),
),
mcp.WithString("organization",
mcp.Description("Organization to create the repository in (omit to create in your personal account)"),
),
mcp.WithBoolean("private",
mcp.Description("Whether repo should be private"),
),
Expand All @@ -421,6 +424,10 @@ func CreateRepository(getClient GetClientFn, t translations.TranslationHelperFun
if err != nil {
return mcp.NewToolResultError(err.Error()), nil
}
organization, err := OptionalParam[string](request, "organization")
if err != nil {
return mcp.NewToolResultError(err.Error()), nil
}
private, err := OptionalParam[bool](request, "private")
if err != nil {
return mcp.NewToolResultError(err.Error()), nil
Expand All @@ -441,7 +448,7 @@ func CreateRepository(getClient GetClientFn, t translations.TranslationHelperFun
if err != nil {
return nil, fmt.Errorf("failed to get GitHub client: %w", err)
}
createdRepo, resp, err := client.Repositories.Create(ctx, "", repo)
createdRepo, resp, err := client.Repositories.Create(ctx, organization, repo)
if err != nil {
return ghErrors.NewGitHubAPIErrorResponse(ctx,
"failed to create repository",
Expand Down
29 changes: 29 additions & 0 deletions pkg/github/repositories_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ func Test_CreateRepository(t *testing.T) {
assert.NotEmpty(t, tool.Description)
assert.Contains(t, tool.InputSchema.Properties, "name")
assert.Contains(t, tool.InputSchema.Properties, "description")
assert.Contains(t, tool.InputSchema.Properties, "organization")
assert.Contains(t, tool.InputSchema.Properties, "private")
assert.Contains(t, tool.InputSchema.Properties, "autoInit")
assert.ElementsMatch(t, tool.InputSchema.Required, []string{"name"})
Expand Down Expand Up @@ -1166,6 +1167,34 @@ func Test_CreateRepository(t *testing.T) {
expectError: false,
expectedRepo: mockRepo,
},
{
name: "successful repository creation in organization",
mockedClient: mock.NewMockedHTTPClient(
mock.WithRequestMatchHandler(
mock.EndpointPattern{
Pattern: "/orgs/testorg/repos",
Method: "POST",
},
expectRequestBody(t, map[string]interface{}{
"name": "test-repo",
"description": "Test repository",
"private": false,
"auto_init": true,
}).andThen(
mockResponse(t, http.StatusCreated, mockRepo),
),
),
),
requestArgs: map[string]interface{}{
"name": "test-repo",
"description": "Test repository",
"organization": "testorg",
"private": false,
"autoInit": true,
},
expectError: false,
expectedRepo: mockRepo,
},
{
name: "successful repository creation with minimal parameters",
mockedClient: mock.NewMockedHTTPClient(
Expand Down