jira-connect
Set up and verify JIRA integration. Use when the user says 'connect to JIRA', 'set up JIRA', or 'configure JIRA'.
- License 许可
- MIT
- 最近更新
- 2026-05-12
- Stars
- ★ 8
- Forks
- 1
01 前言 Front Matter
- name
- jira-connect
- description
- Set up and verify JIRA integration. Use when the user says 'connect to JIRA', 'set up JIRA', or 'configure JIRA'.
03 SKILL.md 正文
JIRA — Connect and Verify
Goal
Validate JIRA connectivity and store working credentials in _superml/config.yml so all other JIRA skills work without re-prompting.
Supports two connection modes:
- REST API — direct HTTP calls using email + API token (Atlassian Cloud or Server)
- MCP Server — uses an Atlassian MCP server; AI uses tool calls instead of curl
Important: Credential Security
Credentials go in {project-root}/_superml/config.yml which must be in .gitignore.
Before proceeding, verify:
cat {project-root}/.gitignore | grep _superml
If not present, add it:
echo "_superml/config.yml" >> {project-root}/.gitignore
⏸️ STOP — confirm .gitignore is updated before collecting any credentials.
Step 1: Choose Connection Mode
Ask the user:
"How would you like to connect to JIRA?
- REST API — email + API token, direct HTTP calls (works everywhere)
- MCP Server — Atlassian Remote MCP Server or a self-hosted MCP package; AI uses MCP tool calls natively
Which would you like to use? (1 or 2)"
Proceed to the matching path below.
Path A: REST API Connection
A1: Collect JIRA Details
Ask the user:
- JIRA base URL: e.g.,
https://yourorg.atlassian.net - JIRA project key: e.g.,
PROJ(the prefix on all tickets) - Your JIRA email: the email on the Atlassian account
- API token: Generate at https://id.atlassian.com/manage-profile/security/api-tokens
A2: Test Connectivity
Run the following to verify the credentials work:
curl -s -u "{email}:{api_token}" \
"{jira_url}/rest/api/3/project/{project_key}" \
-H "Accept: application/json" | python3 -c "import sys,json; d=json.load(sys.stdin); print('✅ Connected to:', d['name'])"
If the command fails, show the error and suggest:
- API token may be expired → generate a new one at https://id.atlassian.com/manage-profile/security/api-tokens
- Project key may be wrong → list projects to find the right key
- URL may be missing or wrong
List available projects if key is unknown:
curl -s -u "{email}:{api_token}" \
"{jira_url}/rest/api/3/project/search" \
-H "Accept: application/json" | python3 -c "import sys,json; [print(p['key'], '-', p['name']) for p in json.load(sys.stdin)['values']]"
⏸️ STOP — connectivity must succeed before saving.
A3: Save to Config
Update {project-root}/_superml/config.yml under the jira: key:
jira:
enabled: true
connection_mode: rest
base_url: "{jira_url}"
project_key: "{project_key}"
email: "{email}"
api_token: "{api_token}"
epic_issue_type: "Epic"
story_issue_type: "Story"
task_issue_type: "Task"
board_id: ""
default_assignee: ""
Path B: MCP Server Connection
MCP Server mode means Copilot uses MCP tool calls to interact with JIRA — no curl commands, no API tokens stored locally (auth is handled by the MCP server).
B1: Choose MCP Server Type
Ask:
"Which Atlassian MCP server would you like to use?
- Atlassian Remote MCP — official cloud-hosted server at
mcp.atlassian.com(Atlassian Cloud only, OAuth-based)- npm package — self-hosted, runs locally (e.g.,
@sooperset/mcp-atlassian— supports Cloud and Server)- Custom URL — a company-hosted MCP endpoint
Which? (1, 2, or 3)"
B2: Configure the MCP Server
If option 1 (Atlassian Remote MCP):
Guide the user to:
- Go to https://developer.atlassian.com/cloud/jira/platform/mcp-server/ and follow the OAuth setup
- Copy the MCP endpoint URL provided (format:
https://mcp.atlassian.com/...) - In VS Code settings or
.vscode/mcp.json, add:
{
"servers": {
"atlassian": {
"url": "{mcp_endpoint_url}"
}
}
}
If option 2 (npm package — @sooperset/mcp-atlassian):
Install and configure:
# Verify Node.js is available
node --version
Add to .vscode/mcp.json (create if absent):
{
"servers": {
"atlassian": {
"command": "npx",
"args": ["-y", "@sooperset/mcp-atlassian"],
"env": {
"JIRA_URL": "{jira_url}",
"JIRA_USERNAME": "{email}",
"JIRA_API_TOKEN": "{api_token}"
}
}
}
}
⚠️ Security: .vscode/mcp.json contains credentials — add it to .gitignore:
echo ".vscode/mcp.json" >> {project-root}/.gitignore
If option 3 (Custom URL):
Ask for:
- MCP server URL
- Authentication header name and value (if any)
Add to .vscode/mcp.json:
{
"servers": {
"atlassian": {
"url": "{custom_mcp_url}",
"headers": {
"{auth_header_name}": "{auth_header_value}"
}
}
}
}
B3: Verify MCP Connection
Ask the user to run a quick test using the MCP tools:
"In a new Copilot chat, type:
@atlassian list my JIRA projectsIf the MCP server responds with your projects, the connection is working."
⏸️ STOP — confirm the MCP test succeeded before saving.
B4: Save to Config
Update {project-root}/_superml/config.yml:
jira:
enabled: true
connection_mode: mcp
project_key: "{project_key}"
mcp_server:
type: "{atlassian_remote | npm_package | custom}"
name: "atlassian" # matches the server key in .vscode/mcp.json
epic_issue_type: "Epic"
story_issue_type: "Story"
task_issue_type: "Task"
board_id: ""
default_assignee: ""
Note: No base_url, email, or api_token are stored — those are managed by the MCP server configuration.
Step 4: Confirm
Show a summary appropriate to the connection mode:
REST mode:
"✅ JIRA connected (REST API). Project: {project_name} ({project_key}) — {jira_url}
MCP mode:
"✅ JIRA connected (MCP Server: {type}). Project key: {project_key} MCP server:
{name}in.vscode/mcp.json
Either way, the available JIRA skills are the same:
jira-create-epic— create epics from your planning artifactsjira-create-story— create individual storiesjira-sync— bulk sync all epics and storiesjira-conflict-detect— check if a story is already claimedSkills will automatically use your configured connection mode."
04 同仓库更多 Skills
jira-sync
Bulk sync all epics and stories from the local backlog to JIRA. Use when the user says 'sync to JIRA', 'push everything to JIRA', or 'create all JIRA tickets'.
jira-create-story
Create a single story ticket in JIRA from a local story file. Use when the user says 'create this story in JIRA' or 'push story to JIRA'.
jira-create-epic
Create an epic in JIRA from a planning artifact. Use when the user says 'create this epic in JIRA' or 'push epic to JIRA'.
jira-conflict-detect
Check if a story is already being worked on by another team member. Use before starting any story implementation.
gitlab-create-mr
Create a GitLab Merge Request for the current story branch. Use when the user says 'create an MR', 'open a merge request', or 'ready for review' in a GitLab project.
gitlab-create-branch
Create a GitLab feature branch for a story. Use when the user says 'create a branch', 'start a branch for story X', or 'create feature branch' in a GitLab project.