Skip to content

Commit 766e440

Browse files
authored
Merge branch 'main' into copilot/work-on-issue-1492-comment
2 parents d485855 + 905a08f commit 766e440

File tree

2 files changed

+4
-48
lines changed

2 files changed

+4
-48
lines changed

README.md

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -492,40 +492,6 @@ The following sets of tools are available:
492492

493493
<summary><picture><source media="(prefers-color-scheme: dark)" srcset="pkg/octicons/icons/workflow-dark.png"><source media="(prefers-color-scheme: light)" srcset="pkg/octicons/icons/workflow-light.png"><img src="pkg/octicons/icons/workflow-light.png" width="20" height="20" alt="workflow"></picture> Actions</summary>
494494

495-
- **actions_get** - Get details of GitHub Actions resources (workflows, workflow runs, jobs, and artifacts)
496-
- `method`: The method to execute (string, required)
497-
- `owner`: Repository owner (string, required)
498-
- `repo`: Repository name (string, required)
499-
- `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
500-
- Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'get_workflow' method.
501-
- Provide a workflow run ID for 'get_workflow_run', 'get_workflow_run_usage', and 'get_workflow_run_logs_url' methods.
502-
- Provide an artifact ID for 'download_workflow_run_artifact' method.
503-
- Provide a job ID for 'get_workflow_job' method.
504-
(string, required)
505-
506-
- **actions_list** - List GitHub Actions workflows in a repository
507-
- `method`: The action to perform (string, required)
508-
- `owner`: Repository owner (string, required)
509-
- `page`: Page number for pagination (default: 1) (number, optional)
510-
- `per_page`: Results per page for pagination (default: 30, max: 100) (number, optional)
511-
- `repo`: Repository name (string, required)
512-
- `resource_id`: The unique identifier of the resource. This will vary based on the "method" provided, so ensure you provide the correct ID:
513-
- Do not provide any resource ID for 'list_workflows' method.
514-
- Provide a workflow ID or workflow file name (e.g. ci.yaml) for 'list_workflow_runs' method, or omit to list all workflow runs in the repository.
515-
- Provide a workflow run ID for 'list_workflow_jobs' and 'list_workflow_run_artifacts' methods.
516-
(string, optional)
517-
- `workflow_jobs_filter`: Filters for workflow jobs. **ONLY** used when method is 'list_workflow_jobs' (object, optional)
518-
- `workflow_runs_filter`: Filters for workflow runs. **ONLY** used when method is 'list_workflow_runs' (object, optional)
519-
520-
- **actions_run_trigger** - Trigger GitHub Actions workflow actions
521-
- `inputs`: Inputs the workflow accepts. Only used for 'run_workflow' method. (object, optional)
522-
- `method`: The method to execute (string, required)
523-
- `owner`: Repository owner (string, required)
524-
- `ref`: The git reference for the workflow. The reference can be a branch or tag name. Required for 'run_workflow' method. (string, optional)
525-
- `repo`: Repository name (string, required)
526-
- `run_id`: The ID of the workflow run. Required for all methods except 'run_workflow'. (number, optional)
527-
- `workflow_id`: The workflow ID (numeric) or workflow file name (e.g., main.yml, ci.yaml). Required for 'run_workflow' method. (string, optional)
528-
529495
- **cancel_workflow_run** - Cancel workflow run
530496
- `owner`: Repository owner (string, required)
531497
- `repo`: Repository name (string, required)
@@ -550,15 +516,6 @@ The following sets of tools are available:
550516
- `run_id`: Workflow run ID (required when using failed_only) (number, optional)
551517
- `tail_lines`: Number of lines to return from the end of the log (number, optional)
552518

553-
- **get_job_logs** - Get GitHub Actions workflow job logs
554-
- `failed_only`: When true, gets logs for all failed jobs in the workflow run specified by run_id. Requires run_id to be provided. (boolean, optional)
555-
- `job_id`: The unique identifier of the workflow job. Required when getting logs for a single job. (number, optional)
556-
- `owner`: Repository owner (string, required)
557-
- `repo`: Repository name (string, required)
558-
- `return_content`: Returns actual log content instead of URLs (boolean, optional)
559-
- `run_id`: The unique identifier of the workflow run. Required when failed_only is true to get logs for all failed jobs in the run. (number, optional)
560-
- `tail_lines`: Number of lines to return from the end of the log (number, optional)
561-
562519
- **get_workflow_run** - Get workflow run
563520
- `owner`: Repository owner (string, required)
564521
- `repo`: Repository name (string, required)

cmd/github-mcp-server/generate_docs.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package main
22

33
import (
4+
"context"
45
"fmt"
56
"net/url"
67
"os"
@@ -50,8 +51,8 @@ func generateReadmeDocs(readmePath string) error {
5051
// Create translation helper
5152
t, _ := translations.TranslationHelper()
5253

53-
// Build inventory - stateless, no dependencies needed for doc generation
54-
r := github.NewInventory(t).Build()
54+
// (not available to regular users) while including tools with FeatureFlagDisable.
55+
r := github.NewInventory(t).WithToolsets([]string{"all"}).Build()
5556

5657
// Generate toolsets documentation
5758
toolsetsDoc := generateToolsetsDoc(r)
@@ -153,9 +154,7 @@ func generateToolsetsDoc(i *inventory.Inventory) string {
153154
}
154155

155156
func generateToolsDoc(r *inventory.Inventory) string {
156-
// AllTools() returns tools sorted by toolset ID then tool name.
157-
// We iterate once, grouping by toolset as we encounter them.
158-
tools := r.AllTools()
157+
tools := r.AvailableTools(context.Background())
159158
if len(tools) == 0 {
160159
return ""
161160
}

0 commit comments

Comments
 (0)