@hasna/mcps 0.0.13 → 0.0.15

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
@@ -7,7 +7,7 @@ export interface McpServerEntry {
7
7
  env: Record<string, string>;
8
8
  transport: "stdio" | "sse" | "streamable-http";
9
9
  url: string | null;
10
- source: "local" | "registry";
10
+ source: "local" | "registry" | "provider-profile";
11
11
  enabled: boolean;
12
12
  created_at: string;
13
13
  updated_at: string;
@@ -22,7 +22,7 @@ export interface AddServerOptions {
22
22
  env?: Record<string, string>;
23
23
  transport?: "stdio" | "sse" | "streamable-http";
24
24
  url?: string;
25
- source?: "local" | "registry";
25
+ source?: "local" | "registry" | "provider-profile";
26
26
  }
27
27
  export interface McpTool {
28
28
  server_id: string;
@@ -101,6 +101,91 @@ export interface AddSourceOptions {
101
101
  url: string;
102
102
  description?: string;
103
103
  }
104
+ export type ProviderProfileTransport = "stdio" | "sse" | "streamable-http";
105
+ export type ProviderProfileAuthType = "none" | "oauth2" | "api_key" | "bearer_token" | "custom";
106
+ export type ProviderProfileTokenMode = "none" | "user" | "workspace" | "service";
107
+ export type ProviderProfileBearerTokenMode = "none" | "optional" | "required";
108
+ export type ProviderProfileSource = "curated" | "official-registry" | "npm" | "github" | "manual";
109
+ export interface ProviderInstallFallback {
110
+ command?: string;
111
+ args?: string[];
112
+ env?: Record<string, string>;
113
+ packageName?: string;
114
+ registryId?: string;
115
+ url?: string;
116
+ }
117
+ export interface ProviderEndpointFallback {
118
+ transport: ProviderProfileTransport;
119
+ url: string;
120
+ notes?: string;
121
+ }
122
+ export interface ProviderAuthMetadata {
123
+ oauthVersion?: "2.0" | "2.1";
124
+ pkce?: boolean;
125
+ dynamicClientRegistration?: boolean;
126
+ bearerToken?: ProviderProfileBearerTokenMode;
127
+ notes?: string;
128
+ }
129
+ export interface ProviderSafetyMetadata {
130
+ readOnly?: boolean;
131
+ requiresApproval?: boolean;
132
+ destructiveTools?: string[];
133
+ sensitiveScopes?: string[];
134
+ dataClasses?: string[];
135
+ notes?: string;
136
+ }
137
+ export interface ProviderSourceProvenance {
138
+ source: ProviderProfileSource;
139
+ sourceUrl?: string;
140
+ repositoryUrl?: string;
141
+ packageName?: string;
142
+ verifiedAt?: string;
143
+ }
144
+ export interface ProviderProfile {
145
+ id: string;
146
+ displayName: string;
147
+ description: string | null;
148
+ endpoint: string | null;
149
+ transport: ProviderProfileTransport;
150
+ fallbackEndpoints: ProviderEndpointFallback[];
151
+ authType: ProviderProfileAuthType;
152
+ authMetadata: ProviderAuthMetadata;
153
+ scopes: string[];
154
+ tokenMode: ProviderProfileTokenMode;
155
+ installFallback: ProviderInstallFallback | null;
156
+ docsUrl: string | null;
157
+ safety: ProviderSafetyMetadata;
158
+ provenance: ProviderSourceProvenance;
159
+ enabled: boolean;
160
+ created_at: string;
161
+ updated_at: string;
162
+ }
163
+ export interface UpsertProviderProfileOptions {
164
+ id: string;
165
+ displayName: string;
166
+ description?: string;
167
+ endpoint?: string;
168
+ transport: ProviderProfileTransport;
169
+ fallbackEndpoints?: ProviderEndpointFallback[];
170
+ authType: ProviderProfileAuthType;
171
+ authMetadata?: ProviderAuthMetadata;
172
+ scopes?: string[];
173
+ tokenMode?: ProviderProfileTokenMode;
174
+ installFallback?: ProviderInstallFallback | null;
175
+ docsUrl?: string;
176
+ safety?: ProviderSafetyMetadata;
177
+ provenance: ProviderSourceProvenance;
178
+ enabled?: boolean;
179
+ }
180
+ export interface InstallProviderProfileOptions {
181
+ name?: string;
182
+ useFallback?: boolean;
183
+ localCommandConsent?: {
184
+ approved?: boolean;
185
+ allowRisky?: boolean;
186
+ source?: string;
187
+ };
188
+ }
104
189
  export type MachinePlatform = "linux" | "darwin" | "unknown";
105
190
  export type MachineArch = "arm64" | "x64" | "unknown";
106
191
  export type MachineInstaller = "auto" | "bun" | "npm";
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@hasna/mcps",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "Meta-MCP registry & CLI — discover, manage, and proxy MCP servers",
5
5
  "type": "module",
6
6
  "repository": {
7
7
  "type": "git",
8
- "url": "https://github.com/hasna/mcps.git"
8
+ "url": "git+https://github.com/hasna/mcps.git"
9
9
  },
10
10
  "main": "dist/index.js",
11
11
  "types": "dist/index.d.ts",