@khanglvm/jira-mcp 1.3.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.
Files changed (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +126 -0
  3. package/dist/client.d.ts +287 -0
  4. package/dist/client.d.ts.map +1 -0
  5. package/dist/client.js +235 -0
  6. package/dist/client.js.map +1 -0
  7. package/dist/config-fetcher.d.ts +30 -0
  8. package/dist/config-fetcher.d.ts.map +1 -0
  9. package/dist/config-fetcher.js +279 -0
  10. package/dist/config-fetcher.js.map +1 -0
  11. package/dist/config.d.ts +54 -0
  12. package/dist/config.d.ts.map +1 -0
  13. package/dist/config.js +66 -0
  14. package/dist/config.js.map +1 -0
  15. package/dist/index.d.ts +12 -0
  16. package/dist/index.d.ts.map +1 -0
  17. package/dist/index.js +228 -0
  18. package/dist/index.js.map +1 -0
  19. package/dist/mcp-registry.d.ts +106 -0
  20. package/dist/mcp-registry.d.ts.map +1 -0
  21. package/dist/mcp-registry.js +168 -0
  22. package/dist/mcp-registry.js.map +1 -0
  23. package/dist/setup.d.ts +41 -0
  24. package/dist/setup.d.ts.map +1 -0
  25. package/dist/setup.js +263 -0
  26. package/dist/setup.js.map +1 -0
  27. package/dist/tools/index.d.ts +10 -0
  28. package/dist/tools/index.d.ts.map +1 -0
  29. package/dist/tools/index.js +10 -0
  30. package/dist/tools/index.js.map +1 -0
  31. package/dist/tools/issues.d.ts +364 -0
  32. package/dist/tools/issues.d.ts.map +1 -0
  33. package/dist/tools/issues.js +392 -0
  34. package/dist/tools/issues.js.map +1 -0
  35. package/dist/tools/projects.d.ts +70 -0
  36. package/dist/tools/projects.d.ts.map +1 -0
  37. package/dist/tools/projects.js +101 -0
  38. package/dist/tools/projects.js.map +1 -0
  39. package/dist/tools/search.d.ts +76 -0
  40. package/dist/tools/search.d.ts.map +1 -0
  41. package/dist/tools/search.js +111 -0
  42. package/dist/tools/search.js.map +1 -0
  43. package/dist/tools/transitions.d.ts +99 -0
  44. package/dist/tools/transitions.d.ts.map +1 -0
  45. package/dist/tools/transitions.js +121 -0
  46. package/dist/tools/transitions.js.map +1 -0
  47. package/dist/tools/users.d.ts +70 -0
  48. package/dist/tools/users.d.ts.map +1 -0
  49. package/dist/tools/users.js +96 -0
  50. package/dist/tools/users.js.map +1 -0
  51. package/dist/types/mcp-config.d.ts +154 -0
  52. package/dist/types/mcp-config.d.ts.map +1 -0
  53. package/dist/types/mcp-config.js +7 -0
  54. package/dist/types/mcp-config.js.map +1 -0
  55. package/dist/utils/path-resolver.d.ts +16 -0
  56. package/dist/utils/path-resolver.d.ts.map +1 -0
  57. package/dist/utils/path-resolver.js +37 -0
  58. package/dist/utils/path-resolver.js.map +1 -0
  59. package/package.json +61 -0
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @file mcp-config.ts
3
+ * @description Type definitions for dynamic MCP configuration system.
4
+ * Defines schemas for remote config fetcher and MCP client registry.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=mcp-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mcp-config.js","sourceRoot":"","sources":["../../src/types/mcp-config.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @file path-resolver.ts
3
+ * @description Shared utility for platform-specific path resolution
4
+ * Handles environment variable expansion and home directory substitution
5
+ */
6
+ /**
7
+ * Map Node.js platform to config schema platform key
8
+ * Remote config uses: macos, windows, linux (not darwin/win32)
9
+ */
10
+ export declare function mapPlatform(platform: NodeJS.Platform): 'macos' | 'windows' | 'linux';
11
+ /**
12
+ * Resolve platform-specific path with environment variable expansion
13
+ * Handles: ~, $HOME, %APPDATA%, %USERPROFILE%
14
+ */
15
+ export declare function resolvePlatformPath(pathStr: string): string;
16
+ //# sourceMappingURL=path-resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-resolver.d.ts","sourceRoot":"","sources":["../../src/utils/path-resolver.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;GAGG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,CAAC,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAEpF;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAuB3D"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * @file path-resolver.ts
3
+ * @description Shared utility for platform-specific path resolution
4
+ * Handles environment variable expansion and home directory substitution
5
+ */
6
+ import * as os from 'os';
7
+ /**
8
+ * Map Node.js platform to config schema platform key
9
+ * Remote config uses: macos, windows, linux (not darwin/win32)
10
+ */
11
+ export function mapPlatform(platform) {
12
+ return platform === 'win32' ? 'windows' : platform === 'darwin' ? 'macos' : 'linux';
13
+ }
14
+ /**
15
+ * Resolve platform-specific path with environment variable expansion
16
+ * Handles: ~, $HOME, %APPDATA%, %USERPROFILE%
17
+ */
18
+ export function resolvePlatformPath(pathStr) {
19
+ let resolved = pathStr;
20
+ // Replace ~ with home directory
21
+ resolved = resolved.replace(/^~/, os.homedir());
22
+ // Replace $HOME (Unix) or %HOME% (Windows-like)
23
+ resolved = resolved.replace(/\$HOME|%HOME%/gi, os.homedir());
24
+ // Windows-specific environment variables
25
+ if (process.platform === 'win32') {
26
+ resolved = resolved.replace(/%APPDATA%/gi, process.env.APPDATA || '');
27
+ resolved = resolved.replace(/%USERPROFILE%/gi, process.env.USERPROFILE || '');
28
+ resolved = resolved.replace(/%LOCALAPPDATA%/gi, process.env.LOCALAPPDATA || '');
29
+ }
30
+ // Unix-specific environment variables
31
+ if (process.platform !== 'win32') {
32
+ // Expand other environment variables in Unix format
33
+ resolved = resolved.replace(/\$([A-Z_]+)/gi, (_, name) => process.env[name] || '');
34
+ }
35
+ return resolved;
36
+ }
37
+ //# sourceMappingURL=path-resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-resolver.js","sourceRoot":"","sources":["../../src/utils/path-resolver.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AAC,IAAI,EAAE,CAAC,CAAC;IACvF,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "@khanglvm/jira-mcp",
3
+ "version": "1.3.0",
4
+ "description": "MCP server providing Jira tools with basic authentication support for legacy Jira Server (v7.x and older)",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "bin": {
9
+ "jira-mcp": "dist/index.js"
10
+ },
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "dev": "tsc --watch",
14
+ "start": "node dist/index.js",
15
+ "test": "npm run test:build && node dist-test/test/client.test.js",
16
+ "test:tools": "npm run test:build && node dist-test/test/tools.test.js",
17
+ "test:integration": "npm run test:build && node dist-test/test/integration.test.js",
18
+ "test:build": "tsc -p tsconfig.test.json",
19
+ "test:all": "npm run test:build && node dist-test/test/client.test.js && node dist-test/test/tools.test.js",
20
+ "prepublishOnly": "npm run build",
21
+ "clean": "rm -rf dist dist-test"
22
+ },
23
+ "keywords": [
24
+ "mcp",
25
+ "jira",
26
+ "model-context-protocol",
27
+ "ai-tools",
28
+ "claude",
29
+ "copilot",
30
+ "basic-auth",
31
+ "jira-server",
32
+ "legacy"
33
+ ],
34
+ "author": "khanglvm",
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git@github.com:khanglvm/jira-mcp.git"
39
+ },
40
+ "engines": {
41
+ "node": ">=18.0.0"
42
+ },
43
+ "files": [
44
+ "dist",
45
+ "README.md",
46
+ "LICENSE"
47
+ ],
48
+ "dependencies": {
49
+ "@modelcontextprotocol/sdk": "^1.0.0",
50
+ "zod": "^3.23.0"
51
+ },
52
+ "devDependencies": {
53
+ "@types/js-yaml": "^4.0.9",
54
+ "@types/node": "^20.0.0",
55
+ "dotenv": "^16.4.0",
56
+ "typescript": "^5.4.0"
57
+ },
58
+ "optionalDependencies": {
59
+ "js-yaml": "^4.1.1"
60
+ }
61
+ }