@tenkeybridge/mcp 0.2.0 → 0.4.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/README.md +4 -4
- package/dist/cli.js +623 -142
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +620 -140
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +620 -140
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -10,6 +10,10 @@ interface EntityAccessorLike {
|
|
|
10
10
|
Id: string;
|
|
11
11
|
SyncToken?: string;
|
|
12
12
|
}): Promise<unknown>;
|
|
13
|
+
void?(args: {
|
|
14
|
+
Id: string;
|
|
15
|
+
SyncToken: string;
|
|
16
|
+
}): Promise<unknown>;
|
|
13
17
|
}
|
|
14
18
|
type GatewayClient = Record<string, unknown> & {
|
|
15
19
|
query(entity: string, opts?: QueryOptions): Promise<unknown>;
|
|
@@ -29,12 +33,14 @@ type McpAuth = {
|
|
|
29
33
|
refreshToken: string;
|
|
30
34
|
};
|
|
31
35
|
interface McpConfig {
|
|
32
|
-
|
|
36
|
+
companyId: string;
|
|
33
37
|
baseUrl?: string;
|
|
34
38
|
auth: McpAuth;
|
|
35
39
|
tokenFile?: string;
|
|
40
|
+
/** Human-readable notes the CLI prints to stderr (deprecated env vars). */
|
|
41
|
+
deprecations: string[];
|
|
36
42
|
}
|
|
37
|
-
declare function defaultTokenFile(
|
|
43
|
+
declare function defaultTokenFile(companyId: string): string;
|
|
38
44
|
declare function loadConfig(env: Record<string, string | undefined>): McpConfig;
|
|
39
45
|
declare function readStoredRefreshToken(file: string): string | undefined;
|
|
40
46
|
declare function persistRefreshToken(file: string, refreshToken: string): void;
|
|
@@ -69,6 +75,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
|
|
|
69
75
|
type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
|
|
70
76
|
declare function catalogSummary(): CatalogSummaryRow[];
|
|
71
77
|
|
|
72
|
-
declare const PKG_VERSION = "0.
|
|
78
|
+
declare const PKG_VERSION = "0.4.0";
|
|
73
79
|
|
|
74
80
|
export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName };
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,10 @@ interface EntityAccessorLike {
|
|
|
10
10
|
Id: string;
|
|
11
11
|
SyncToken?: string;
|
|
12
12
|
}): Promise<unknown>;
|
|
13
|
+
void?(args: {
|
|
14
|
+
Id: string;
|
|
15
|
+
SyncToken: string;
|
|
16
|
+
}): Promise<unknown>;
|
|
13
17
|
}
|
|
14
18
|
type GatewayClient = Record<string, unknown> & {
|
|
15
19
|
query(entity: string, opts?: QueryOptions): Promise<unknown>;
|
|
@@ -29,12 +33,14 @@ type McpAuth = {
|
|
|
29
33
|
refreshToken: string;
|
|
30
34
|
};
|
|
31
35
|
interface McpConfig {
|
|
32
|
-
|
|
36
|
+
companyId: string;
|
|
33
37
|
baseUrl?: string;
|
|
34
38
|
auth: McpAuth;
|
|
35
39
|
tokenFile?: string;
|
|
40
|
+
/** Human-readable notes the CLI prints to stderr (deprecated env vars). */
|
|
41
|
+
deprecations: string[];
|
|
36
42
|
}
|
|
37
|
-
declare function defaultTokenFile(
|
|
43
|
+
declare function defaultTokenFile(companyId: string): string;
|
|
38
44
|
declare function loadConfig(env: Record<string, string | undefined>): McpConfig;
|
|
39
45
|
declare function readStoredRefreshToken(file: string): string | undefined;
|
|
40
46
|
declare function persistRefreshToken(file: string, refreshToken: string): void;
|
|
@@ -69,6 +75,6 @@ declare function resolveEntityName(name: string): EntityName | undefined;
|
|
|
69
75
|
type CatalogSummaryRow = Pick<CatalogEntry, "entity" | "verdict" | "group" | "read" | "write" | "headline" | "usage">;
|
|
70
76
|
declare function catalogSummary(): CatalogSummaryRow[];
|
|
71
77
|
|
|
72
|
-
declare const PKG_VERSION = "0.
|
|
78
|
+
declare const PKG_VERSION = "0.4.0";
|
|
73
79
|
|
|
74
80
|
export { CATALOG, type CatalogEntry, type CatalogField, type CatalogSummaryRow, type CatalogUnsupported, type EntityAccessorLike, type GatewayClient, type McpAuth, type McpConfig, PKG_VERSION, SERVER_NAME, buildServer, catalogSummary, defaultTokenFile, loadConfig, persistRefreshToken, readStoredRefreshToken, registerResources, registerTools, resolveCatalog, resolveEntityName };
|