@mcp-consultant-tools/1password 29.0.0-beta.1
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/build/index.d.ts.map +1 -0
- package/build/index.js +43 -0
- package/build/index.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AASH;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI,CAG1D;AAGD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC"}
|
package/build/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* @mcp-consultant-tools/1password
|
|
4
|
+
*
|
|
5
|
+
* MCP server for 1Password vault and item management.
|
|
6
|
+
* Entry point: MCP server startup + backward-compatible registerOnePasswordTools().
|
|
7
|
+
*/
|
|
8
|
+
import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
|
|
9
|
+
import { pathToFileURL } from 'node:url';
|
|
10
|
+
import { realpathSync } from 'node:fs';
|
|
11
|
+
import { createMcpServer, createEnvLoader } from '@mcp-consultant-tools/core';
|
|
12
|
+
import { registerAllTools } from './tools/index.js';
|
|
13
|
+
import { createServiceContext } from './context-factory.js';
|
|
14
|
+
/**
|
|
15
|
+
* Register onepassword tools with an MCP server.
|
|
16
|
+
* Backward-compatible API for the meta package.
|
|
17
|
+
*/
|
|
18
|
+
export function registerOnePasswordTools(server) {
|
|
19
|
+
const ctx = createServiceContext();
|
|
20
|
+
registerAllTools(server, ctx);
|
|
21
|
+
}
|
|
22
|
+
// Re-exports for consumers
|
|
23
|
+
export { OnePasswordClient } from './onepassword-client.js';
|
|
24
|
+
/**
|
|
25
|
+
* Standalone MCP server (when run directly)
|
|
26
|
+
*/
|
|
27
|
+
if (import.meta.url === pathToFileURL(realpathSync(process.argv[1])).href) {
|
|
28
|
+
const loadEnv = createEnvLoader();
|
|
29
|
+
loadEnv();
|
|
30
|
+
const server = createMcpServer({
|
|
31
|
+
name: '@mcp-consultant-tools/1password',
|
|
32
|
+
version: '29.0.0-beta.1',
|
|
33
|
+
capabilities: { tools: {} },
|
|
34
|
+
});
|
|
35
|
+
registerOnePasswordTools(server);
|
|
36
|
+
const transport = new StdioServerTransport();
|
|
37
|
+
server.connect(transport).catch((error) => {
|
|
38
|
+
console.error('Failed to start onepassword MCP server:', error);
|
|
39
|
+
process.exit(1);
|
|
40
|
+
});
|
|
41
|
+
console.error('@mcp-consultant-tools/1password server running on stdio');
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,MAAW;IAClD,MAAM,GAAG,GAAG,oBAAoB,EAAE,CAAC;IACnC,gBAAgB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAChC,CAAC;AAED,2BAA2B;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D;;GAEG;AACH,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1E,MAAM,OAAO,GAAG,eAAe,EAAE,CAAC;IAClC,OAAO,EAAE,CAAC;IAEV,MAAM,MAAM,GAAG,eAAe,CAAC;QAC7B,IAAI,EAAE,iCAAiC;QACvC,OAAO,EAAE,eAAe;QACxB,YAAY,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;KAC5B,CAAC,CAAC;IAEH,wBAAwB,CAAC,MAAM,CAAC,CAAC;IAEjC,MAAM,SAAS,GAAG,IAAI,oBAAoB,EAAE,CAAC;IAC7C,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;QAC/C,OAAO,CAAC,KAAK,CAAC,yCAAyC,EAAE,KAAK,CAAC,CAAC;QAChE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,KAAK,CAAC,yDAAyD,CAAC,CAAC;AAC3E,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mcp-consultant-tools/1password",
|
|
3
|
+
"version": "29.0.0-beta.1",
|
|
4
|
+
"description": "MCP server for 1Password vault and item management",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./build/index.js",
|
|
7
|
+
"types": "./build/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./build/index.js",
|
|
11
|
+
"types": "./build/index.d.ts"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"build",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsc",
|
|
20
|
+
"clean": "rm -rf build *.tsbuildinfo",
|
|
21
|
+
"prepublishOnly": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"mcp",
|
|
25
|
+
"model-context-protocol",
|
|
26
|
+
"1password",
|
|
27
|
+
"onepassword",
|
|
28
|
+
"secrets",
|
|
29
|
+
"vault"
|
|
30
|
+
],
|
|
31
|
+
"author": "Klemens Stelk",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/klemensms/mcp-consultant-tools.git",
|
|
36
|
+
"directory": "packages/1password"
|
|
37
|
+
},
|
|
38
|
+
"engines": {
|
|
39
|
+
"node": ">=18.0.0"
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@1password/sdk": "~0.4.0",
|
|
43
|
+
"@mcp-consultant-tools/core": "28.0.0",
|
|
44
|
+
"@modelcontextprotocol/sdk": "^1.0.4",
|
|
45
|
+
"commander": "^14.0.3",
|
|
46
|
+
"zod": "^3.24.1"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@types/node": "^22.10.5",
|
|
50
|
+
"typescript": "^5.8.2"
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"mcp-op": "build/index.js",
|
|
54
|
+
"mcp-op-cli": "build/cli.js"
|
|
55
|
+
}
|
|
56
|
+
}
|