MetorialDocs

Set up Leiga in Metorial for Claude, ChatGPT and Cursor

Share Leiga with your team in Claude, ChatGPT and Cursor through Metorial: client credentials sign-in, 37 tools (13 read-only).

To give your team Leiga in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Leiga integration in a Metorial portal, and each person connects with client credentials. Agents can manage Leiga issues, subtasks, issue relations, sprints, epics, organization releases, comments, and tags. The integration has 37 tools, 13 read-only, 16 write and 8 destructive, plus 5 triggers.

What you'll learn

  • How an admin shares Leiga in a portal and how each person connects
  • What Leiga asks for when you connect, and where to find it
  • How to keep the 13 read-only tools and reject the other 24

Before you start

Sign-in method

MethodTypeWhat a person provides
Client CredentialsCustom credentialsclientId and secretKey

Client Credentials

To connect, a person enters these values:

  • clientId: Client ID from Leiga API settings
  • secretKey: Secret Key from Leiga API settings

Admin: share Leiga in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Leiga. For how members connect, choose Each person connects so everyone enters their own client credentials, or Shared connection to enter the client credentials once for everyone.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Leiga.

Choose who gets it

Add the access groups that should see Leiga. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Leiga integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search leiga

Employee: connect Leiga

In the portal

Open Leiga in the catalog

Sign in to your portal and open Leiga. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your client credentials (clientId and secretKey).

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search leiga
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Leiga connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list leiga
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 13 read-only tools, such as get_issue and list_tags, and lose the 16 write tools, such as create_tag or update_tag, and the 8 destructive tools, such as delete_tag or delete_epic.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list leiga
metorial tools <integration-id>
metorial call <integration-id> list_projects -d '{}'

metorial tools lists the 37 tools, minus any you rejected. list_projects takes no input. It lists all projects in the Leiga workspace.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (13)

  • list_projects: List all projects in the Leiga workspace.
  • query_issues: Search and filter issues in a Leiga project. Needs projectId.
  • get_issue: Retrieve detailed information about a specific issue by its ID or issue number.
  • list_versions: List one page of organization versions (releases). Needs projectId.
  • list_project_members: List all members of a specific project with their roles. Needs projectId.
  • list_tags: List all tags in a project. Needs projectId.
  • list_epics: List one page of epics in a project. Needs projectId.
  • list_issue_types: List available issue types for a project (e.g. Needs projectId.
  • list_sprints: List all sprints for a project. Needs projectId.
  • list_comments: List one page of comments on an issue. Needs issueId.
  • list_org_members: List one page of organization members.
  • get_issue_schema: Discover issue field codes, required fields, and valid option IDs for create_issue and update_issue.
  • list_subtasks: List an issue's subtasks with their IDs, assignees, dates, estimates, and completion state.

Write tools (16)

  • update_version: Update a version's name, owner, description, or dates. Needs versionId.
  • update_issue: Update an existing issue in Leiga. Needs issueId and fields.
  • create_version: Create an organization version (release). Needs projectId and name.
  • add_issue_relation: Link two issues with a relationship type (e.g. "blocks", "is blocked by", "duplicates"). Needs sourceIssueId, destinationIssueId and relationType.
  • add_comment: Add a comment to an issue. Needs issueId and content.
  • create_sprint: Create a new sprint in a Leiga project. Needs projectId and name.
  • create_tag: Create a new tag in a project for labeling issues. Needs projectId and name.
  • add_subtask: Add a subtask to an existing issue. Needs issueId and summary.
  • update_subtask: Update a subtask's fields including summary, status, assignee, due date, or estimate. Needs subtaskId.
  • update_sprint: Update an existing sprint's name, goal, dates, or assignee. Needs sprintId.
  • update_comment: Update the content of an existing comment. Needs commentId and content.
  • create_epic: Create a new epic in a Leiga project. Needs projectId and name.
  • create_issue: Create a new issue (work item) in a Leiga project. Needs projectId, issueTypeId and fields.
  • manage_version_lifecycle: Change a version's lifecycle status. Needs versionId and action.
  • update_epic: Update an epic's name or description. Needs epicId.
  • update_tag: Rename a project tag.

Destructive tools (8)

  • delete_comment: Delete a comment from an issue. Needs commentId.
  • delete_subtask: Delete a subtask from an issue. Needs subtaskId.
  • delete_issue: Delete an issue from a Leiga project. Needs issueId.
  • delete_version: Delete an organization-wide version (release). Needs versionId.
  • delete_tag: Delete a tag from a project. Needs tagId.
  • delete_sprint: Delete a sprint from a project. Needs sprintId.
  • delete_epic: Delete an epic from a project. Needs epicId.
  • remove_issue_relation: Remove a relationship between two linked issues. Needs sourceIssueId, destinationIssueId and relationType.

Triggers

Leiga has 5 triggers, which fire on events in Leiga:

  • subtask_events: Triggered when subtasks are added, updated, or deleted on issues in a Leiga project.
  • attachment_events: Triggered when attachments are uploaded to or deleted from issues in a Leiga project.
  • sprint_events: Triggered when sprints are created, started, completed, or deleted in a Leiga project.
  • comment_events: Triggered when comments are added, updated, or deleted on issues in a Leiga project.
  • issue_events: Triggered when issues are created, updated, or deleted in a Leiga project.

Next steps