summaryrefslogtreecommitdiff
path: root/servers/gitlab_glab/README.md
diff options
context:
space:
mode:
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.