Skip to content

Commit d432335

Browse files
committed
docs: add list_repository_tree
1 parent 1699b4f commit d432335

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

src/gitlab/README.md

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ MCP Server for the GitLab API, enabling project management, file operations, and
3838
- `search` (string): Search query
3939
- `page` (optional number): Page number for pagination
4040
- `per_page` (optional number): Results per page (default 20)
41-
- Returns: Project search results
41+
- Returns: Project search results with total count
4242

4343
4. `create_repository`
4444
- Create a new GitLab project
@@ -49,15 +49,27 @@ MCP Server for the GitLab API, enabling project management, file operations, and
4949
- `initialize_with_readme` (optional boolean): Initialize with README
5050
- Returns: Created project details
5151

52-
5. `get_file_contents`
52+
5. `list_repository_tree`
53+
- List files and directories in a repository
54+
- Inputs:
55+
- `project_id` (string): Project ID or URL-encoded path
56+
- `path` (optional string): Path to list contents from
57+
- `ref` (optional string): Branch/tag/commit to list from
58+
- `recursive` (optional boolean): List recursively
59+
- `per_page` (optional number): Results per page
60+
- `page_token` (optional string): Token for pagination
61+
- `pagination` (optional string): Pagination type
62+
- Returns: List of files and directories with their metadata
63+
64+
6. `get_file_contents`
5365
- Get contents of a file or directory
5466
- Inputs:
5567
- `project_id` (string): Project ID or URL-encoded path
5668
- `file_path` (string): Path to file/directory
5769
- `ref` (optional string): Branch/tag/commit to get contents from
58-
- Returns: File/directory contents
70+
- Returns: File/directory contents with metadata
5971

60-
6. `create_issue`
72+
7. `create_issue`
6173
- Create a new issue
6274
- Inputs:
6375
- `project_id` (string): Project ID or URL-encoded path
@@ -68,7 +80,7 @@ MCP Server for the GitLab API, enabling project management, file operations, and
6880
- `milestone_id` (optional number): Milestone ID
6981
- Returns: Created issue details
7082

71-
7. `create_merge_request`
83+
8. `create_merge_request`
7284
- Create a new merge request
7385
- Inputs:
7486
- `project_id` (string): Project ID or URL-encoded path
@@ -80,14 +92,14 @@ MCP Server for the GitLab API, enabling project management, file operations, and
8092
- `allow_collaboration` (optional boolean): Allow commits from upstream members
8193
- Returns: Created merge request details
8294

83-
8. `fork_repository`
95+
9. `fork_repository`
8496
- Fork a project
8597
- Inputs:
8698
- `project_id` (string): Project ID or URL-encoded path
8799
- `namespace` (optional string): Namespace to fork to
88100
- Returns: Forked project details
89101

90-
9. `create_branch`
102+
10. `create_branch`
91103
- Create a new branch
92104
- Inputs:
93105
- `project_id` (string): Project ID or URL-encoded path

0 commit comments

Comments
 (0)