apphud-mcp 0.1.0
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/.env.example +23 -0
- package/CHANGELOG.md +21 -0
- package/CODE_OF_CONDUCT.md +27 -0
- package/CONTRIBUTING.md +73 -0
- package/LICENSE +21 -0
- package/README.md +75 -0
- package/SECURITY.md +25 -0
- package/SUPPORT.md +26 -0
- package/assets/apphud-mcp-logo.svg +6 -0
- package/dist/src/app.js +31 -0
- package/dist/src/cli.js +94 -0
- package/dist/src/config/env.js +249 -0
- package/dist/src/domain/constants.js +56 -0
- package/dist/src/domain/models.js +1 -0
- package/dist/src/errors/toolError.js +40 -0
- package/dist/src/http/server.js +24 -0
- package/dist/src/index.js +47 -0
- package/dist/src/mcp/server.js +435 -0
- package/dist/src/security/authResolver.js +43 -0
- package/dist/src/security/rateLimiter.js +22 -0
- package/dist/src/security/rbac.js +11 -0
- package/dist/src/security/secretStore.js +14 -0
- package/dist/src/services/analyticsService.js +934 -0
- package/dist/src/services/appService.js +15 -0
- package/dist/src/services/apphudClient.js +1632 -0
- package/dist/src/services/auditService.js +12 -0
- package/dist/src/services/toolGuard.js +30 -0
- package/package.json +61 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export class EnvSecretStore {
|
|
2
|
+
async getSecret(ref) {
|
|
3
|
+
return process.env[ref] ?? null;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
export class InMemorySecretStore {
|
|
7
|
+
values;
|
|
8
|
+
constructor(values) {
|
|
9
|
+
this.values = values;
|
|
10
|
+
}
|
|
11
|
+
async getSecret(ref) {
|
|
12
|
+
return this.values[ref] ?? null;
|
|
13
|
+
}
|
|
14
|
+
}
|