@rui.branco/1password-mcp 0.1.8 → 0.1.9
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/assets/icon.svg +1 -0
- package/icons.js +22 -0
- package/index.js +2 -1
- package/package.json +4 -2
package/assets/icon.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="#000000"><path d="M12 .007C5.373.007 0 5.376 0 11.999c0 6.624 5.373 11.994 12 11.994S24 18.623 24 12C24 5.376 18.627.007 12 .007Zm-.895 4.857h1.788c.484 0 .729.002.914.096a.86.86 0 0 1 .377.377c.094.185.095.428.095.912v6.016c0 .12 0 .182-.015.238a.427.427 0 0 1-.067.137.923.923 0 0 1-.174.162l-.695.564c-.113.092-.17.138-.191.194a.216.216 0 0 0 0 .15c.02.055.078.101.191.193l.695.565c.094.076.14.115.174.162.03.042.053.087.067.137a.936.936 0 0 1 .015.238v2.746c0 .484-.001.727-.095.912a.86.86 0 0 1-.377.377c-.185.094-.43.096-.914.096h-1.788c-.484 0-.726-.002-.912-.096a.86.86 0 0 1-.377-.377c-.094-.185-.095-.428-.095-.912v-6.016c0-.12 0-.182.015-.238a.437.437 0 0 1 .067-.139c.034-.047.08-.083.174-.16l.695-.564c.113-.092.17-.138.191-.194a.216.216 0 0 0 0-.15c-.02-.055-.078-.101-.191-.193l-.695-.565a.92.92 0 0 1-.174-.162.437.437 0 0 1-.067-.139.92.92 0 0 1-.015-.236V6.25c0-.484.001-.727.095-.912a.86.86 0 0 1 .377-.377c.186-.094.428-.096.912-.096z"/></svg>
|
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 1Password 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 };
|
package/index.js
CHANGED
|
@@ -29,6 +29,7 @@ const fs = require("fs");
|
|
|
29
29
|
const os = require("os");
|
|
30
30
|
const path = require("path");
|
|
31
31
|
const sdk = require("@1password/sdk");
|
|
32
|
+
const { ICONS } = require("./icons.js");
|
|
32
33
|
const { spawn } = require("child_process");
|
|
33
34
|
|
|
34
35
|
const PKG_VERSION = require("./package.json").version;
|
|
@@ -1216,7 +1217,7 @@ const HANDLERS = {
|
|
|
1216
1217
|
// ============================================================================
|
|
1217
1218
|
|
|
1218
1219
|
const server = new Server(
|
|
1219
|
-
{ name: INTEGRATION_NAME, version: PKG_VERSION },
|
|
1220
|
+
{ name: INTEGRATION_NAME, version: PKG_VERSION, icons: ICONS },
|
|
1220
1221
|
{ capabilities: { tools: {} } },
|
|
1221
1222
|
);
|
|
1222
1223
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rui.branco/1password-mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.9",
|
|
4
4
|
"description": "1Password MCP server for any MCP-compatible AI client (Claude Code, Codex, Antigravity, Cursor, etc.) - list vaults and items, get secrets, generate passwords, manage items via service accounts. Multi-instance like jira-mcp.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"index.js",
|
|
11
|
-
"setup.js"
|
|
11
|
+
"setup.js",
|
|
12
|
+
"icons.js",
|
|
13
|
+
"assets/icon.svg"
|
|
12
14
|
],
|
|
13
15
|
"scripts": {
|
|
14
16
|
"setup": "node setup.js",
|