@bitwarden/mcp-server 2025.10.0 → 2025.10.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/README.md +252 -178
- package/dist/handlers/cli.d.ts +184 -8
- package/dist/handlers/cli.d.ts.map +1 -1
- package/dist/handlers/cli.js +583 -109
- package/dist/handlers/cli.js.map +1 -1
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/schemas/cli.d.ts +288 -15
- package/dist/schemas/cli.d.ts.map +1 -1
- package/dist/schemas/cli.js +437 -67
- package/dist/schemas/cli.js.map +1 -1
- package/dist/tools/cli.d.ts +23 -3
- package/dist/tools/cli.d.ts.map +1 -1
- package/dist/tools/cli.js +802 -48
- package/dist/tools/cli.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/utils/api.js +1 -1
- package/dist/utils/cli.d.ts +6 -2
- package/dist/utils/cli.d.ts.map +1 -1
- package/dist/utils/cli.js +40 -17
- package/dist/utils/cli.js.map +1 -1
- package/dist/utils/security.d.ts +11 -4
- package/dist/utils/security.d.ts.map +1 -1
- package/dist/utils/security.js +57 -9
- package/dist/utils/security.js.map +1 -1
- package/dist/utils/types.d.ts +54 -0
- package/dist/utils/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/handlers/cli.d.ts
CHANGED
|
@@ -8,56 +8,63 @@ export declare const handleLock: (args: unknown) => Promise<{
|
|
|
8
8
|
text: string;
|
|
9
9
|
}[];
|
|
10
10
|
}>;
|
|
11
|
-
export declare const
|
|
11
|
+
export declare const handleSync: (args: unknown) => Promise<{
|
|
12
12
|
isError: boolean;
|
|
13
13
|
content: {
|
|
14
14
|
type: string;
|
|
15
15
|
text: string;
|
|
16
16
|
}[];
|
|
17
17
|
}>;
|
|
18
|
-
export declare const
|
|
18
|
+
export declare const handleStatus: (args: unknown) => Promise<{
|
|
19
19
|
isError: boolean;
|
|
20
20
|
content: {
|
|
21
21
|
type: string;
|
|
22
22
|
text: string;
|
|
23
23
|
}[];
|
|
24
24
|
}>;
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const handleList: (args: unknown) => Promise<{
|
|
26
26
|
isError: boolean;
|
|
27
27
|
content: {
|
|
28
28
|
type: string;
|
|
29
29
|
text: string;
|
|
30
30
|
}[];
|
|
31
31
|
}>;
|
|
32
|
-
export declare const
|
|
32
|
+
export declare const handleGet: (args: unknown) => Promise<{
|
|
33
33
|
isError: boolean;
|
|
34
34
|
content: {
|
|
35
35
|
type: string;
|
|
36
36
|
text: string;
|
|
37
37
|
}[];
|
|
38
38
|
}>;
|
|
39
|
-
export declare const
|
|
39
|
+
export declare const handleGenerate: (args: unknown) => Promise<{
|
|
40
40
|
isError: boolean;
|
|
41
41
|
content: {
|
|
42
42
|
type: string;
|
|
43
43
|
text: string;
|
|
44
44
|
}[];
|
|
45
45
|
}>;
|
|
46
|
-
export declare const
|
|
46
|
+
export declare const handleCreateItem: (args: unknown) => Promise<{
|
|
47
47
|
isError: boolean;
|
|
48
48
|
content: {
|
|
49
49
|
type: string;
|
|
50
50
|
text: string;
|
|
51
51
|
}[];
|
|
52
52
|
}>;
|
|
53
|
-
export declare const
|
|
53
|
+
export declare const handleCreateFolder: (args: unknown) => Promise<{
|
|
54
54
|
isError: boolean;
|
|
55
55
|
content: {
|
|
56
56
|
type: string;
|
|
57
57
|
text: string;
|
|
58
58
|
}[];
|
|
59
59
|
}>;
|
|
60
|
-
export declare const
|
|
60
|
+
export declare const handleEditItem: (args: unknown) => Promise<{
|
|
61
|
+
isError: boolean;
|
|
62
|
+
content: {
|
|
63
|
+
type: string;
|
|
64
|
+
text: string;
|
|
65
|
+
}[];
|
|
66
|
+
}>;
|
|
67
|
+
export declare const handleEditFolder: (args: unknown) => Promise<{
|
|
61
68
|
isError: boolean;
|
|
62
69
|
content: {
|
|
63
70
|
type: string;
|
|
@@ -71,4 +78,173 @@ export declare const handleDelete: (args: unknown) => Promise<{
|
|
|
71
78
|
text: string;
|
|
72
79
|
}[];
|
|
73
80
|
}>;
|
|
81
|
+
export declare const handleConfirm: (args: unknown) => Promise<{
|
|
82
|
+
isError: boolean;
|
|
83
|
+
content: {
|
|
84
|
+
type: string;
|
|
85
|
+
text: string;
|
|
86
|
+
}[];
|
|
87
|
+
}>;
|
|
88
|
+
export declare const handleCreateOrgCollection: (args: unknown) => Promise<{
|
|
89
|
+
isError: boolean;
|
|
90
|
+
content: {
|
|
91
|
+
type: string;
|
|
92
|
+
text: string;
|
|
93
|
+
}[];
|
|
94
|
+
}>;
|
|
95
|
+
export declare const handleEditOrgCollection: (args: unknown) => Promise<{
|
|
96
|
+
isError: boolean;
|
|
97
|
+
content: {
|
|
98
|
+
type: string;
|
|
99
|
+
text: string;
|
|
100
|
+
}[];
|
|
101
|
+
}>;
|
|
102
|
+
export declare const handleEditItemCollections: (args: unknown) => Promise<{
|
|
103
|
+
isError: boolean;
|
|
104
|
+
content: {
|
|
105
|
+
type: string;
|
|
106
|
+
text: string;
|
|
107
|
+
}[];
|
|
108
|
+
}>;
|
|
109
|
+
/**
|
|
110
|
+
* Handles moving (sharing) a vault item to an organization.
|
|
111
|
+
*
|
|
112
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
113
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
114
|
+
*/
|
|
115
|
+
export declare const handleMove: (args: unknown) => Promise<{
|
|
116
|
+
isError: boolean;
|
|
117
|
+
content: {
|
|
118
|
+
type: string;
|
|
119
|
+
text: string;
|
|
120
|
+
}[];
|
|
121
|
+
}>;
|
|
122
|
+
/**
|
|
123
|
+
* Handles listing pending device approval requests for an organization.
|
|
124
|
+
*
|
|
125
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
126
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
127
|
+
*/
|
|
128
|
+
export declare const handleDeviceApprovalList: (args: unknown) => Promise<{
|
|
129
|
+
isError: boolean;
|
|
130
|
+
content: {
|
|
131
|
+
type: string;
|
|
132
|
+
text: string;
|
|
133
|
+
}[];
|
|
134
|
+
}>;
|
|
135
|
+
/**
|
|
136
|
+
* Handles approving a pending device authorization request.
|
|
137
|
+
*
|
|
138
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
139
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
140
|
+
*/
|
|
141
|
+
export declare const handleDeviceApprovalApprove: (args: unknown) => Promise<{
|
|
142
|
+
isError: boolean;
|
|
143
|
+
content: {
|
|
144
|
+
type: string;
|
|
145
|
+
text: string;
|
|
146
|
+
}[];
|
|
147
|
+
}>;
|
|
148
|
+
/**
|
|
149
|
+
* Handles approving all pending device authorization requests.
|
|
150
|
+
*
|
|
151
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
152
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
153
|
+
*/
|
|
154
|
+
export declare const handleDeviceApprovalApproveAll: (args: unknown) => Promise<{
|
|
155
|
+
isError: boolean;
|
|
156
|
+
content: {
|
|
157
|
+
type: string;
|
|
158
|
+
text: string;
|
|
159
|
+
}[];
|
|
160
|
+
}>;
|
|
161
|
+
/**
|
|
162
|
+
* Handles denying a pending device authorization request.
|
|
163
|
+
*
|
|
164
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
165
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
166
|
+
*/
|
|
167
|
+
export declare const handleDeviceApprovalDeny: (args: unknown) => Promise<{
|
|
168
|
+
isError: boolean;
|
|
169
|
+
content: {
|
|
170
|
+
type: string;
|
|
171
|
+
text: string;
|
|
172
|
+
}[];
|
|
173
|
+
}>;
|
|
174
|
+
/**
|
|
175
|
+
* Handles denying all pending device authorization requests.
|
|
176
|
+
*
|
|
177
|
+
* @param {Record<string, unknown>} args - Arguments from the tool call.
|
|
178
|
+
* @returns {Promise<McpResponse>} Promise resolving to the formatted result.
|
|
179
|
+
*/
|
|
180
|
+
export declare const handleDeviceApprovalDenyAll: (args: unknown) => Promise<{
|
|
181
|
+
isError: boolean;
|
|
182
|
+
content: {
|
|
183
|
+
type: string;
|
|
184
|
+
text: string;
|
|
185
|
+
}[];
|
|
186
|
+
}>;
|
|
187
|
+
export declare const handleRestore: (args: unknown) => Promise<{
|
|
188
|
+
isError: boolean;
|
|
189
|
+
content: {
|
|
190
|
+
type: string;
|
|
191
|
+
text: string;
|
|
192
|
+
}[];
|
|
193
|
+
}>;
|
|
194
|
+
export declare const handleCreateTextSend: (args: unknown) => Promise<{
|
|
195
|
+
isError: boolean;
|
|
196
|
+
content: {
|
|
197
|
+
type: string;
|
|
198
|
+
text: string;
|
|
199
|
+
}[];
|
|
200
|
+
}>;
|
|
201
|
+
export declare const handleCreateFileSend: (args: unknown) => Promise<{
|
|
202
|
+
isError: boolean;
|
|
203
|
+
content: {
|
|
204
|
+
type: string;
|
|
205
|
+
text: string;
|
|
206
|
+
}[];
|
|
207
|
+
}>;
|
|
208
|
+
export declare const handleListSend: (args: unknown) => Promise<{
|
|
209
|
+
isError: boolean;
|
|
210
|
+
content: {
|
|
211
|
+
type: string;
|
|
212
|
+
text: string;
|
|
213
|
+
}[];
|
|
214
|
+
}>;
|
|
215
|
+
export declare const handleGetSend: (args: unknown) => Promise<{
|
|
216
|
+
isError: boolean;
|
|
217
|
+
content: {
|
|
218
|
+
type: string;
|
|
219
|
+
text: string;
|
|
220
|
+
}[];
|
|
221
|
+
}>;
|
|
222
|
+
export declare const handleEditSend: (args: unknown) => Promise<{
|
|
223
|
+
isError: boolean;
|
|
224
|
+
content: {
|
|
225
|
+
type: string;
|
|
226
|
+
text: string;
|
|
227
|
+
}[];
|
|
228
|
+
}>;
|
|
229
|
+
export declare const handleDeleteSend: (args: unknown) => Promise<{
|
|
230
|
+
isError: boolean;
|
|
231
|
+
content: {
|
|
232
|
+
type: string;
|
|
233
|
+
text: string;
|
|
234
|
+
}[];
|
|
235
|
+
}>;
|
|
236
|
+
export declare const handleRemoveSendPassword: (args: unknown) => Promise<{
|
|
237
|
+
isError: boolean;
|
|
238
|
+
content: {
|
|
239
|
+
type: string;
|
|
240
|
+
text: string;
|
|
241
|
+
}[];
|
|
242
|
+
}>;
|
|
243
|
+
export declare const handleCreateAttachment: (args: unknown) => Promise<{
|
|
244
|
+
isError: boolean;
|
|
245
|
+
content: {
|
|
246
|
+
type: string;
|
|
247
|
+
text: string;
|
|
248
|
+
}[];
|
|
249
|
+
}>;
|
|
74
250
|
//# sourceMappingURL=cli.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/handlers/cli.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/handlers/cli.ts"],"names":[],"mappings":"AAAA;;GAEG;AA0DH,eAAO,MAAM,UAAU;;;;;;EAGrB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;EAGrB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;EAwBrB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;EAcpB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;EAqC1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;EAsF5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;EAW9B,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;EA+H1B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;EAe5B,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;;EAWxB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;EAYzB,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;EAgCrC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;EA0DnC,CA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