@hasna/mcps 0.0.14 → 0.0.16
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 +21 -0
- package/bin/index.js +967 -182
- package/bin/mcp.js +605 -95
- package/dist/index.d.ts +5 -2
- package/dist/index.js +523 -53
- package/dist/lib/credentials.d.ts +18 -0
- package/dist/lib/doctor.d.ts +4 -1
- package/dist/lib/install.d.ts +5 -1
- package/dist/lib/local-command-consent.d.ts +38 -0
- package/dist/lib/proxy.d.ts +6 -2
- package/dist/lib/registry.d.ts +4 -2
- package/dist/lib/remote.d.ts +4 -1
- package/dist/mcp/index.js +605 -95
- package/dist/types.d.ts +15 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export interface McpServerEntry {
|
|
|
5
5
|
command: string;
|
|
6
6
|
args: string[];
|
|
7
7
|
env: Record<string, string>;
|
|
8
|
+
credentialRefs?: CredentialReferenceMap;
|
|
8
9
|
transport: "stdio" | "sse" | "streamable-http";
|
|
9
10
|
url: string | null;
|
|
10
11
|
source: "local" | "registry" | "provider-profile";
|
|
@@ -20,10 +21,19 @@ export interface AddServerOptions {
|
|
|
20
21
|
command: string;
|
|
21
22
|
args?: string[];
|
|
22
23
|
env?: Record<string, string>;
|
|
24
|
+
credentialRefs?: CredentialReferenceMap;
|
|
23
25
|
transport?: "stdio" | "sse" | "streamable-http";
|
|
24
26
|
url?: string;
|
|
25
27
|
source?: "local" | "registry" | "provider-profile";
|
|
26
28
|
}
|
|
29
|
+
export type CredentialReferenceSource = "env" | "local-vault" | "hosted";
|
|
30
|
+
export interface CredentialReference {
|
|
31
|
+
source: CredentialReferenceSource;
|
|
32
|
+
name: string;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
description?: string;
|
|
35
|
+
}
|
|
36
|
+
export type CredentialReferenceMap = Record<string, CredentialReference>;
|
|
27
37
|
export interface McpTool {
|
|
28
38
|
server_id: string;
|
|
29
39
|
name: string;
|
|
@@ -180,6 +190,11 @@ export interface UpsertProviderProfileOptions {
|
|
|
180
190
|
export interface InstallProviderProfileOptions {
|
|
181
191
|
name?: string;
|
|
182
192
|
useFallback?: boolean;
|
|
193
|
+
localCommandConsent?: {
|
|
194
|
+
approved?: boolean;
|
|
195
|
+
allowRisky?: boolean;
|
|
196
|
+
source?: string;
|
|
197
|
+
};
|
|
183
198
|
}
|
|
184
199
|
export type MachinePlatform = "linux" | "darwin" | "unknown";
|
|
185
200
|
export type MachineArch = "arm64" | "x64" | "unknown";
|