summaryrefslogtreecommitdiff
path: root/servers/gitlab_glab/README.md
diff options
context:
space:
mode:
authorDawid Rycerz <dawid@rycerz.xyz>2025-03-31 23:38:35 +0200
committerDawid Rycerz <dawid@rycerz.xyz>2025-03-31 23:38:35 +0200
commitfa91e3fcbdd3b1d70f01de256e1c48fe7726ebd4 (patch)
tree5a76ae36e6fa37af9fb4a9879e6db9aa375c2654 /servers/gitlab_glab/README.md
parent73ee5037001cee54f6364f41e1011099308a15a3 (diff)
Add create_issue tool action
Diffstat (limited to 'servers/gitlab_glab/README.md')
-rw-r--r--servers/gitlab_glab/README.md26
1 files changed, 26 insertions, 0 deletions
diff --git a/servers/gitlab_glab/README.md b/servers/gitlab_glab/README.md
index 5a6fff1..55ac6bb 100644
--- a/servers/gitlab_glab/README.md
+++ b/servers/gitlab_glab/README.md
@@ -78,6 +78,32 @@ The function returns a list of matching projects, each containing the following
- `web_url`: The project web URL
- `description`: The project description
+### create_issue
+
+Creates a new GitLab issue and returns its URL.
+
+```python
+result = use_mcp_tool(
+ server_name="gitlab_glab",
+ tool_name="create_issue",
+ arguments={
+ "title": "Issue title",
+ "description": "Issue description",
+ "working_directory": "/path/to/current/directory",
+ # Optional parameters
+ "labels": ["bug", "critical"], # List of labels
+ "assignee": ["username1", "username2"], # List of usernames
+ "milestone": "v1.0", # Milestone title or ID
+ "epic_id": 123, # Epic ID
+ "project": "group/project" # Project path with namespace
+ }
+)
+```
+
+The function returns a dictionary containing:
+- `url`: The URL of the created issue
+- `error`: Error message if the operation failed
+
## Working Directory Context
All tools require a `working_directory` parameter that specifies the directory context in which the GitLab CLI commands should be executed. This ensures that commands are run in the same directory as the agent, maintaining proper context for repository operations.