@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/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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hasna/mcps",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "Meta-MCP registry & CLI — discover, manage, and proxy MCP servers",
5
5
  "type": "module",
6
6
  "repository": {