@vira_m/jira-mcp-server 1.0.1 → 1.0.2

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/dist/index.js CHANGED
@@ -5,10 +5,6 @@ import { z } from "zod";
5
5
  // Support both direct env vars (local) and Codemie platform integration env vars
6
6
  const JIRA_BASE_URL = process.env.JIRA_BASE_URL || process.env.url;
7
7
  const JIRA_PAT = process.env.JIRA_PAT || process.env.token;
8
- if (!JIRA_BASE_URL || !JIRA_PAT) {
9
- console.error("Missing Jira credentials. Set JIRA_BASE_URL + JIRA_PAT (local) or url + token (Codemie integration)");
10
- process.exit(1);
11
- }
12
8
  const jira = axios.create({
13
9
  baseURL: `${JIRA_BASE_URL}/rest/api/2`,
14
10
  headers: {
@@ -20,6 +16,10 @@ const server = new McpServer({
20
16
  name: "jira-mcp-server",
21
17
  version: "1.0.0",
22
18
  });
19
+ server.tool("debug_env", "Debug: show which env variables are set (keys only, no values)", {}, async () => {
20
+ const keys = Object.keys(process.env).sort();
21
+ return { content: [{ type: "text", text: keys.join("\n") }] };
22
+ });
23
23
  server.tool("get_jira_issue", "Fetch a Jira issue by its key (e.g. PROJ-123)", { issue_key: z.string().describe("Jira issue key, e.g. PROJ-123") }, async ({ issue_key }) => {
24
24
  const { data } = await jira.get(`/issue/${issue_key}`);
25
25
  const f = data.fields;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vira_m/jira-mcp-server",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "MCP server for fetching Jira issues",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/index.ts CHANGED
@@ -7,11 +7,6 @@ import { z } from "zod";
7
7
  const JIRA_BASE_URL = process.env.JIRA_BASE_URL || process.env.url;
8
8
  const JIRA_PAT = process.env.JIRA_PAT || process.env.token;
9
9
 
10
- if (!JIRA_BASE_URL || !JIRA_PAT) {
11
- console.error("Missing Jira credentials. Set JIRA_BASE_URL + JIRA_PAT (local) or url + token (Codemie integration)");
12
- process.exit(1);
13
- }
14
-
15
10
  const jira = axios.create({
16
11
  baseURL: `${JIRA_BASE_URL}/rest/api/2`,
17
12
  headers: {
@@ -25,6 +20,16 @@ const server = new McpServer({
25
20
  version: "1.0.0",
26
21
  });
27
22
 
23
+ server.tool(
24
+ "debug_env",
25
+ "Debug: show which env variables are set (keys only, no values)",
26
+ {},
27
+ async () => {
28
+ const keys = Object.keys(process.env).sort();
29
+ return { content: [{ type: "text", text: keys.join("\n") }] };
30
+ }
31
+ );
32
+
28
33
  server.tool(
29
34
  "get_jira_issue",
30
35
  "Fetch a Jira issue by its key (e.g. PROJ-123)",