jira-cli-agent 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,36 @@
1
- # Temporary Holding Version
1
+ # jira-cli-agent
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Gives AI coding agents your Jira Cloud issues through the
4
+ [`jira` CLI](https://github.com/ejklock/jira-cli):
5
+
6
+ - **OpenCode**: registers the `jira mcp` server (named `jira-cli`) and the
7
+ `jira-ticket` skill.
8
+ - **Pi**: adds the `jira-ticket` skill, which drives `jira` with `--json`.
9
+
10
+ Unofficial; not affiliated with Atlassian.
11
+
12
+ ## Install
13
+
14
+ Install `jira` 0.2.0 or later, with the `mcp` subcommand, on your `PATH` first.
15
+
16
+ OpenCode, in `opencode.json`:
17
+
18
+ ```json
19
+ { "plugin": ["jira-cli-agent"] }
20
+ ```
21
+
22
+ Pi:
23
+
24
+ ```sh
25
+ pi install npm:jira-cli-agent
26
+ ```
27
+
28
+ A key in your own `mcp` config named `jira-cli` wins over the one this
29
+ plugin registers.
30
+
31
+ Claude Code and Codex install the same tools from the repository's plugin
32
+ marketplace; see the [project README](https://github.com/ejklock/jira-cli#plugins).
33
+
34
+ ## License
35
+
36
+ MIT
package/index.ts ADDED
@@ -0,0 +1,21 @@
1
+ import { fileURLToPath } from "node:url"
2
+
3
+ type McpEntry = { type: "local"; command: string[] } & Record<string, unknown>
4
+ type OpencodeConfig = {
5
+ mcp?: Record<string, McpEntry>
6
+ skills?: { paths?: string[] }
7
+ }
8
+
9
+ const skillsDir = fileURLToPath(new URL("./skills", import.meta.url))
10
+
11
+ // OpenCode 1.19 can register an MCP server and a skills directory only by
12
+ // mutating the merged config in the `config` hook. A user's own
13
+ // `jira-cli` entry wins over the default, and the skills directory is
14
+ // listed once however often the hook runs.
15
+ export const server = async () => ({
16
+ config: async (config: OpencodeConfig): Promise<void> => {
17
+ config.mcp = { "jira-cli": { type: "local", command: ["jira", "mcp"] }, ...config.mcp }
18
+ const paths = config.skills?.paths ?? []
19
+ config.skills = { ...config.skills, paths: paths.includes(skillsDir) ? paths : [...paths, skillsDir] }
20
+ },
21
+ })
package/package.json CHANGED
@@ -1,6 +1,20 @@
1
1
  {
2
2
  "name": "jira-cli-agent",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.0",
4
+ "description": "Jira Cloud for AI coding agents: gives OpenCode the jira-cli MCP server and the jira-ticket skill, and Pi the jira-ticket skill. Unofficial; not affiliated with Atlassian.",
5
+ "license": "MIT",
6
+ "repository": { "type": "git", "url": "git+https://github.com/ejklock/jira-cli.git", "directory": "packages/jira-cli-agent" },
7
+ "homepage": "https://github.com/ejklock/jira-cli#readme",
8
+ "type": "module",
9
+ "main": "./index.ts",
10
+ "exports": {
11
+ ".": "./index.ts",
12
+ "./server": "./index.ts"
13
+ },
14
+ "keywords": ["pi-package", "opencode", "opencode-plugin", "jira", "mcp", "model-context-protocol", "ai-agent", "skill", "issue-tracking"],
15
+ "pi": { "skills": ["skills"] },
16
+ "scripts": {
17
+ "test": "node --test"
18
+ },
19
+ "files": ["index.ts", "skills", "README.md"]
20
+ }
@@ -0,0 +1,16 @@
1
+ ---
2
+ name: jira-ticket
3
+ description: Read Jira Cloud issue data — an issue, your assignments, or a JQL search — as machine-readable JSON from the `jira` CLI, non-interactively without the TUI. Use when an agent or script needs to fetch an issue by key or URL, list the logged-in user's open issues, read the issue for the current git branch, or run a JQL search, and wants structured JSON instead of the interactive terminal UI. Covers `jira get`, `jira current`, `jira mine`, and `jira search` with `--json` — the curated minified schemas, the round-trippable `ref`, and the cache / `--no-comments` / `--refresh` flags. Also covers posting a comment with `jira comment`. Also covers downloading every issue attachment to local disk with `--download-attachments`.
4
+ ---
5
+
6
+ # jira-ticket (thin pointer)
7
+
8
+ The full, authoritative Jira Cloud `--json` read contract is served by the CLI itself.
9
+
10
+ Run:
11
+
12
+ jira skill jira-ticket
13
+
14
+ and follow its output. It documents the curated minified JSON schemas for
15
+ `jira get`, `jira current`, `jira mine`, and `jira search` with `--json`, the
16
+ round-trippable `ref`, and the cache / `--no-comments` / `--refresh` flags.