@rui.branco/jira-mcp 1.7.13 → 1.7.14
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 +397 -397
- package/assets/icon.svg +1 -0
- package/config-store.js +553 -553
- package/icons.js +22 -0
- package/index.js +5907 -5906
- package/package.json +38 -36
- package/setup.js +393 -393
package/icons.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// serverInfo.icons for the MCP handshake: one single-colour silhouette sent
|
|
2
|
+
// twice, black for light backgrounds and white for dark ones.
|
|
3
|
+
// assets/icon.svg is the Jira logo from Simple Icons v13.21.0
|
|
4
|
+
// (https://simpleicons.org), CC0-1.0.
|
|
5
|
+
const fs = require("fs");
|
|
6
|
+
const path = require("path");
|
|
7
|
+
|
|
8
|
+
const SVG = fs.readFileSync(path.join(__dirname, "assets", "icon.svg"), "utf8").trim();
|
|
9
|
+
|
|
10
|
+
function icon(fill, theme) {
|
|
11
|
+
const svg = SVG.replace('fill="#000000"', `fill="${fill}"`);
|
|
12
|
+
return {
|
|
13
|
+
src: `data:image/svg+xml;base64,${Buffer.from(svg).toString("base64")}`,
|
|
14
|
+
mimeType: "image/svg+xml",
|
|
15
|
+
sizes: ["any"],
|
|
16
|
+
theme,
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const ICONS = [icon("#000000", "light"), icon("#FFFFFF", "dark")];
|
|
21
|
+
|
|
22
|
+
module.exports = { ICONS };
|