From fa91e3fcbdd3b1d70f01de256e1c48fe7726ebd4 Mon Sep 17 00:00:00 2001 From: Dawid Rycerz Date: Mon, 31 Mar 2025 23:38:35 +0200 Subject: Add create_issue tool action --- servers/gitlab_glab/README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'servers/gitlab_glab/README.md') 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. -- cgit v1.2.3