@mcp-consultant-tools/powerplatform 32.0.0 → 33.0.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/build/cli/commands/metadata-commands.js +2 -2
- package/build/cli/commands/metadata-commands.js.map +1 -1
- package/build/cli.js +0 -0
- package/build/http-server.js +0 -0
- package/build/index.js +0 -0
- package/package.json +3 -3
- package/build/PowerPlatformService.d.ts +0 -201
- package/build/PowerPlatformService.js +0 -305
- package/build/PowerPlatformService.js.map +0 -1
- package/build/auth/index.d.ts +0 -64
- package/build/auth/index.d.ts.map +0 -1
- package/build/auth/index.js +0 -39
- package/build/auth/index.js.map +0 -1
- package/build/auth/interactive-auth.d.ts +0 -60
- package/build/auth/interactive-auth.d.ts.map +0 -1
- package/build/auth/interactive-auth.js +0 -429
- package/build/auth/interactive-auth.js.map +0 -1
- package/build/auth/service-principal-auth.d.ts +0 -26
- package/build/auth/service-principal-auth.d.ts.map +0 -1
- package/build/auth/service-principal-auth.js +0 -60
- package/build/auth/service-principal-auth.js.map +0 -1
- package/build/auth/token-cache.d.ts +0 -40
- package/build/auth/token-cache.d.ts.map +0 -1
- package/build/auth/token-cache.js +0 -108
- package/build/auth/token-cache.js.map +0 -1
- package/build/cli/commands/app-commands.d.ts +0 -7
- package/build/cli/commands/field-security-commands.d.ts +0 -8
- package/build/cli/commands/flow-commands.d.ts +0 -7
- package/build/cli/commands/form-commands.d.ts +0 -7
- package/build/cli/commands/index.d.ts +0 -16
- package/build/cli/commands/index.js +0 -33
- package/build/cli/commands/index.js.map +0 -1
- package/build/cli/commands/integration-commands.d.ts +0 -7
- package/build/cli/commands/metadata-commands.d.ts +0 -7
- package/build/cli/commands/plugin-commands.d.ts +0 -7
- package/build/cli/commands/security-commands.d.ts +0 -7
- package/build/cli/commands/solution-commands.d.ts +0 -7
- package/build/cli/output.d.ts +0 -11
- package/build/cli.d.ts +0 -9
- package/build/context-factory.d.ts +0 -11
- package/build/context-factory.js +0 -39
- package/build/context-factory.js.map +0 -1
- package/build/http-server.d.ts +0 -3
- package/build/index.d.ts +0 -18
- package/build/prompts/analysis-prompts.d.ts +0 -3
- package/build/prompts/analysis-prompts.js +0 -286
- package/build/prompts/analysis-prompts.js.map +0 -1
- package/build/prompts/entity-prompts.d.ts +0 -3
- package/build/prompts/entity-prompts.js +0 -304
- package/build/prompts/entity-prompts.js.map +0 -1
- package/build/prompts/index.d.ts +0 -8
- package/build/prompts/index.js +0 -11
- package/build/prompts/index.js.map +0 -1
- package/build/services/index.d.ts +0 -5
- package/build/services/index.js +0 -5
- package/build/services/index.js.map +0 -1
- package/build/tool-examples.d.ts +0 -48
- package/build/tools/app-tools.d.ts +0 -3
- package/build/tools/app-tools.js +0 -127
- package/build/tools/app-tools.js.map +0 -1
- package/build/tools/field-security-tools.d.ts +0 -3
- package/build/tools/field-security-tools.js +0 -84
- package/build/tools/field-security-tools.js.map +0 -1
- package/build/tools/flow-tools.d.ts +0 -3
- package/build/tools/flow-tools.js +0 -374
- package/build/tools/flow-tools.js.map +0 -1
- package/build/tools/form-view-tools.d.ts +0 -3
- package/build/tools/form-view-tools.js +0 -162
- package/build/tools/form-view-tools.js.map +0 -1
- package/build/tools/index.d.ts +0 -14
- package/build/tools/index.js +0 -31
- package/build/tools/index.js.map +0 -1
- package/build/tools/integration-tools.d.ts +0 -3
- package/build/tools/integration-tools.js +0 -325
- package/build/tools/integration-tools.js.map +0 -1
- package/build/tools/metadata-tools.d.ts +0 -3
- package/build/tools/metadata-tools.js +0 -166
- package/build/tools/metadata-tools.js.map +0 -1
- package/build/tools/plugin-tools.d.ts +0 -3
- package/build/tools/plugin-tools.js +0 -138
- package/build/tools/plugin-tools.js.map +0 -1
- package/build/tools/security-tools.d.ts +0 -3
- package/build/tools/security-tools.js +0 -188
- package/build/tools/security-tools.js.map +0 -1
- package/build/tools/solution-tools.d.ts +0 -3
- package/build/tools/solution-tools.js +0 -318
- package/build/tools/solution-tools.js.map +0 -1
- package/build/types.d.ts +0 -9
- package/build/types.js +0 -2
- package/build/types.js.map +0 -1
- package/build/utils/best-practices-formatters.d.ts +0 -26
- package/build/utils/best-practices-formatters.d.ts.map +0 -1
- package/build/utils/best-practices-formatters.js +0 -238
- package/build/utils/best-practices-formatters.js.map +0 -1
- package/build/utils/bestPractices.d.ts +0 -152
- package/build/utils/bestPractices.d.ts.map +0 -1
- package/build/utils/bestPractices.js +0 -338
- package/build/utils/bestPractices.js.map +0 -1
- package/build/utils/iconManager.d.ts +0 -84
- package/build/utils/iconManager.d.ts.map +0 -1
- package/build/utils/iconManager.js +0 -342
- package/build/utils/iconManager.js.map +0 -1
- package/build/utils/prompt-templates.d.ts +0 -9
- package/build/utils/prompt-templates.d.ts.map +0 -1
- package/build/utils/prompt-templates.js +0 -31
- package/build/utils/prompt-templates.js.map +0 -1
- package/build/utils/rate-limiter.d.ts +0 -108
- package/build/utils/rate-limiter.d.ts.map +0 -1
- package/build/utils/rate-limiter.js +0 -241
- package/build/utils/rate-limiter.js.map +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Cache for Interactive Authentication
|
|
3
|
-
*
|
|
4
|
-
* Provides encrypted file-based storage for MSAL tokens.
|
|
5
|
-
* Tokens are encrypted using AES-256-GCM with a machine-specific key.
|
|
6
|
-
*
|
|
7
|
-
* Storage location: ~/.mcp-consultant-tools/token-cache-{clientId}.enc
|
|
8
|
-
*/
|
|
9
|
-
import type { ICachePlugin } from '@azure/msal-node';
|
|
10
|
-
export declare class TokenCache {
|
|
11
|
-
private cacheFile;
|
|
12
|
-
private encryptionKey;
|
|
13
|
-
private cacheDir;
|
|
14
|
-
constructor(clientId: string);
|
|
15
|
-
/**
|
|
16
|
-
* Create MSAL cache plugin for automatic token persistence
|
|
17
|
-
*/
|
|
18
|
-
createPlugin(): ICachePlugin;
|
|
19
|
-
/**
|
|
20
|
-
* Encrypt data using AES-256-GCM
|
|
21
|
-
*/
|
|
22
|
-
private encrypt;
|
|
23
|
-
/**
|
|
24
|
-
* Decrypt data using AES-256-GCM
|
|
25
|
-
*/
|
|
26
|
-
private decrypt;
|
|
27
|
-
/**
|
|
28
|
-
* Clear the token cache (logout)
|
|
29
|
-
*/
|
|
30
|
-
clear(): void;
|
|
31
|
-
/**
|
|
32
|
-
* Check if a token cache exists
|
|
33
|
-
*/
|
|
34
|
-
exists(): boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Get the cache file path (for diagnostics)
|
|
37
|
-
*/
|
|
38
|
-
getCachePath(): string;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=token-cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-cache.d.ts","sourceRoot":"","sources":["../../src/auth/token-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAqB,MAAM,kBAAkB,CAAC;AAMxE,qBAAa,UAAU;IACrB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,aAAa,CAAS;IAC9B,OAAO,CAAC,QAAQ,CAAS;gBAEb,QAAQ,EAAE,MAAM;IAgB5B;;OAEG;IACH,YAAY,IAAI,YAAY;IA6B5B;;OAEG;IACH,OAAO,CAAC,OAAO;IASf;;OAEG;IACH,OAAO,CAAC,OAAO;IAef;;OAEG;IACH,KAAK,IAAI,IAAI;IAMb;;OAEG;IACH,MAAM,IAAI,OAAO;IAIjB;;OAEG;IACH,YAAY,IAAI,MAAM;CAGvB"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Token Cache for Interactive Authentication
|
|
3
|
-
*
|
|
4
|
-
* Provides encrypted file-based storage for MSAL tokens.
|
|
5
|
-
* Tokens are encrypted using AES-256-GCM with a machine-specific key.
|
|
6
|
-
*
|
|
7
|
-
* Storage location: ~/.mcp-consultant-tools/token-cache-{clientId}.enc
|
|
8
|
-
*/
|
|
9
|
-
import fs from 'node:fs';
|
|
10
|
-
import path from 'node:path';
|
|
11
|
-
import os from 'node:os';
|
|
12
|
-
import crypto from 'node:crypto';
|
|
13
|
-
export class TokenCache {
|
|
14
|
-
cacheFile;
|
|
15
|
-
encryptionKey;
|
|
16
|
-
cacheDir;
|
|
17
|
-
constructor(clientId) {
|
|
18
|
-
this.cacheDir = path.join(os.homedir(), '.mcp-consultant-tools');
|
|
19
|
-
// Create cache directory if it doesn't exist
|
|
20
|
-
if (!fs.existsSync(this.cacheDir)) {
|
|
21
|
-
fs.mkdirSync(this.cacheDir, { recursive: true, mode: 0o700 });
|
|
22
|
-
}
|
|
23
|
-
this.cacheFile = path.join(this.cacheDir, `token-cache-${clientId}.enc`);
|
|
24
|
-
// Derive encryption key from machine-specific data
|
|
25
|
-
// Uses hostname + username as salt for key derivation
|
|
26
|
-
const machineId = os.hostname() + os.userInfo().username;
|
|
27
|
-
this.encryptionKey = crypto.scryptSync(machineId, 'mcp-powerplatform-auth', 32);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Create MSAL cache plugin for automatic token persistence
|
|
31
|
-
*/
|
|
32
|
-
createPlugin() {
|
|
33
|
-
return {
|
|
34
|
-
beforeCacheAccess: async (context) => {
|
|
35
|
-
if (fs.existsSync(this.cacheFile)) {
|
|
36
|
-
try {
|
|
37
|
-
const encrypted = fs.readFileSync(this.cacheFile);
|
|
38
|
-
const decrypted = this.decrypt(encrypted);
|
|
39
|
-
context.tokenCache.deserialize(decrypted);
|
|
40
|
-
}
|
|
41
|
-
catch (error) {
|
|
42
|
-
// Cache corrupted or from different machine, ignore
|
|
43
|
-
// MSAL will proceed with empty cache
|
|
44
|
-
console.error('Token cache read error (will re-authenticate):', error.message);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
afterCacheAccess: async (context) => {
|
|
49
|
-
if (context.cacheHasChanged) {
|
|
50
|
-
try {
|
|
51
|
-
const data = context.tokenCache.serialize();
|
|
52
|
-
const encrypted = this.encrypt(data);
|
|
53
|
-
fs.writeFileSync(this.cacheFile, encrypted, { mode: 0o600 });
|
|
54
|
-
}
|
|
55
|
-
catch (error) {
|
|
56
|
-
console.error('Token cache write error:', error.message);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Encrypt data using AES-256-GCM
|
|
64
|
-
*/
|
|
65
|
-
encrypt(data) {
|
|
66
|
-
const iv = crypto.randomBytes(16);
|
|
67
|
-
const cipher = crypto.createCipheriv('aes-256-gcm', this.encryptionKey, iv);
|
|
68
|
-
const encrypted = Buffer.concat([cipher.update(data, 'utf8'), cipher.final()]);
|
|
69
|
-
const tag = cipher.getAuthTag();
|
|
70
|
-
// Format: IV (16 bytes) + Auth Tag (16 bytes) + Encrypted Data
|
|
71
|
-
return Buffer.concat([iv, tag, encrypted]);
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Decrypt data using AES-256-GCM
|
|
75
|
-
*/
|
|
76
|
-
decrypt(data) {
|
|
77
|
-
if (data.length < 33) {
|
|
78
|
-
throw new Error('Invalid encrypted data: too short');
|
|
79
|
-
}
|
|
80
|
-
const iv = data.subarray(0, 16);
|
|
81
|
-
const tag = data.subarray(16, 32);
|
|
82
|
-
const encrypted = data.subarray(32);
|
|
83
|
-
const decipher = crypto.createDecipheriv('aes-256-gcm', this.encryptionKey, iv);
|
|
84
|
-
decipher.setAuthTag(tag);
|
|
85
|
-
return decipher.update(encrypted) + decipher.final('utf8');
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Clear the token cache (logout)
|
|
89
|
-
*/
|
|
90
|
-
clear() {
|
|
91
|
-
if (fs.existsSync(this.cacheFile)) {
|
|
92
|
-
fs.unlinkSync(this.cacheFile);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Check if a token cache exists
|
|
97
|
-
*/
|
|
98
|
-
exists() {
|
|
99
|
-
return fs.existsSync(this.cacheFile);
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Get the cache file path (for diagnostics)
|
|
103
|
-
*/
|
|
104
|
-
getCachePath() {
|
|
105
|
-
return this.cacheFile;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=token-cache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"token-cache.js","sourceRoot":"","sources":["../../src/auth/token-cache.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,MAAM,MAAM,aAAa,CAAC;AAEjC,MAAM,OAAO,UAAU;IACb,SAAS,CAAS;IAClB,aAAa,CAAS;IACtB,QAAQ,CAAS;IAEzB,YAAY,QAAgB;QAC1B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,uBAAuB,CAAC,CAAC;QAEjE,6CAA6C;QAC7C,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;YAClC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAChE,CAAC;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,eAAe,QAAQ,MAAM,CAAC,CAAC;QAEzE,mDAAmD;QACnD,sDAAsD;QACtD,MAAM,SAAS,GAAG,EAAE,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC;QACzD,IAAI,CAAC,aAAa,GAAG,MAAM,CAAC,UAAU,CAAC,SAAS,EAAE,wBAAwB,EA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,CAAC,CAAC;QAChC,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvC,CAAC;IAED;;OAEG;IACH,YAAY;QACV,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;CACF"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* App CLI Commands - 4 commands for model-driven app inspection
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerAppCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=app-commands.d.ts.map
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Field Security CLI Commands (read-only) - 3 commands
|
|
3
|
-
* Subcommand group: `fsp`
|
|
4
|
-
*/
|
|
5
|
-
import type { Command } from 'commander';
|
|
6
|
-
import type { ServiceContext } from '../../types.js';
|
|
7
|
-
export declare function registerFieldSecurityCommands(program: Command, ctx: ServiceContext): void;
|
|
8
|
-
//# sourceMappingURL=field-security-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Flow CLI Commands - 9 commands for flow/workflow/business rule inspection
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerFlowCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=flow-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Form/View CLI Commands - 7 commands for forms, views, and web resources
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerFormCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=form-commands.d.ts.map
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Commands barrel export + combined registration
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerAllCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
export { registerMetadataCommands } from './metadata-commands.js';
|
|
8
|
-
export { registerPluginCommands } from './plugin-commands.js';
|
|
9
|
-
export { registerFlowCommands } from './flow-commands.js';
|
|
10
|
-
export { registerAppCommands } from './app-commands.js';
|
|
11
|
-
export { registerFormCommands } from './form-commands.js';
|
|
12
|
-
export { registerSolutionCommands } from './solution-commands.js';
|
|
13
|
-
export { registerIntegrationCommands } from './integration-commands.js';
|
|
14
|
-
export { registerSecurityCommands } from './security-commands.js';
|
|
15
|
-
export { registerFieldSecurityCommands } from './field-security-commands.js';
|
|
16
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI Commands barrel export + combined registration
|
|
3
|
-
*/
|
|
4
|
-
import { registerMetadataCommands } from './metadata-commands.js';
|
|
5
|
-
import { registerPluginCommands } from './plugin-commands.js';
|
|
6
|
-
import { registerFlowCommands } from './flow-commands.js';
|
|
7
|
-
import { registerAppCommands } from './app-commands.js';
|
|
8
|
-
import { registerFormCommands } from './form-commands.js';
|
|
9
|
-
import { registerSolutionCommands } from './solution-commands.js';
|
|
10
|
-
import { registerIntegrationCommands } from './integration-commands.js';
|
|
11
|
-
import { registerSecurityCommands } from './security-commands.js';
|
|
12
|
-
import { registerFieldSecurityCommands } from './field-security-commands.js';
|
|
13
|
-
export function registerAllCommands(program, ctx) {
|
|
14
|
-
registerMetadataCommands(program, ctx);
|
|
15
|
-
registerPluginCommands(program, ctx);
|
|
16
|
-
registerFlowCommands(program, ctx);
|
|
17
|
-
registerAppCommands(program, ctx);
|
|
18
|
-
registerFormCommands(program, ctx);
|
|
19
|
-
registerSolutionCommands(program, ctx);
|
|
20
|
-
registerIntegrationCommands(program, ctx);
|
|
21
|
-
registerSecurityCommands(program, ctx);
|
|
22
|
-
registerFieldSecurityCommands(program, ctx);
|
|
23
|
-
}
|
|
24
|
-
export { registerMetadataCommands } from './metadata-commands.js';
|
|
25
|
-
export { registerPluginCommands } from './plugin-commands.js';
|
|
26
|
-
export { registerFlowCommands } from './flow-commands.js';
|
|
27
|
-
export { registerAppCommands } from './app-commands.js';
|
|
28
|
-
export { registerFormCommands } from './form-commands.js';
|
|
29
|
-
export { registerSolutionCommands } from './solution-commands.js';
|
|
30
|
-
export { registerIntegrationCommands } from './integration-commands.js';
|
|
31
|
-
export { registerSecurityCommands } from './security-commands.js';
|
|
32
|
-
export { registerFieldSecurityCommands } from './field-security-commands.js';
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/cli/commands/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAE7E,MAAM,UAAU,mBAAmB,CAAC,OAAgB,EAAE,GAAmB;IACvE,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACvC,sBAAsB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACrC,oBAAoB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACnC,mBAAmB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAClC,oBAAoB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACnC,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACvC,2BAA2B,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IAC1C,wBAAwB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACvC,6BAA6B,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;AAC9C,CAAC;AAED,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Integration CLI Commands - 5 commands for integration audit and environment variables
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerIntegrationCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=integration-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Metadata CLI Commands - 5 commands for entity metadata inspection
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerMetadataCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=metadata-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Plugin CLI Commands - 4 commands for plugin inspection
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerPluginCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=plugin-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Security CLI Commands - 4 commands for connection references and security roles
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerSecurityCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=security-commands.d.ts.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Solution CLI Commands - 8 commands for solution management and validation
|
|
3
|
-
*/
|
|
4
|
-
import type { Command } from 'commander';
|
|
5
|
-
import type { ServiceContext } from '../../types.js';
|
|
6
|
-
export declare function registerSolutionCommands(program: Command, ctx: ServiceContext): void;
|
|
7
|
-
//# sourceMappingURL=solution-commands.d.ts.map
|
package/build/cli/output.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CLI output helper for powerplatform package.
|
|
3
|
-
* Thin wrapper setting the package-specific cache directory.
|
|
4
|
-
*/
|
|
5
|
-
import { type GlobalFlags } from '@mcp-consultant-tools/core';
|
|
6
|
-
export declare function outputResult(opts: {
|
|
7
|
-
fileName: string;
|
|
8
|
-
data: unknown;
|
|
9
|
-
summary: string;
|
|
10
|
-
}, flags: GlobalFlags): void;
|
|
11
|
-
//# sourceMappingURL=output.d.ts.map
|
package/build/cli.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared ServiceContext factory for PowerPlatform.
|
|
3
|
-
* Used by both MCP server (index.ts) and CLI (cli.ts).
|
|
4
|
-
*/
|
|
5
|
-
import { PowerPlatformService } from './PowerPlatformService.js';
|
|
6
|
-
import type { ServiceContext } from './types.js';
|
|
7
|
-
/**
|
|
8
|
-
* Build a ServiceContext from environment variables (lazy client initialization).
|
|
9
|
-
*/
|
|
10
|
-
export declare function createServiceContext(service?: PowerPlatformService): ServiceContext;
|
|
11
|
-
//# sourceMappingURL=context-factory.d.ts.map
|
package/build/context-factory.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared ServiceContext factory for PowerPlatform.
|
|
3
|
-
* Used by both MCP server (index.ts) and CLI (cli.ts).
|
|
4
|
-
*/
|
|
5
|
-
import { PowerPlatformService } from './PowerPlatformService.js';
|
|
6
|
-
/**
|
|
7
|
-
* Build a ServiceContext from environment variables (lazy client initialization).
|
|
8
|
-
*/
|
|
9
|
-
export function createServiceContext(service) {
|
|
10
|
-
let ppService = service || null;
|
|
11
|
-
function getPowerPlatformService() {
|
|
12
|
-
if (!ppService) {
|
|
13
|
-
const coreRequiredVars = [
|
|
14
|
-
'POWERPLATFORM_URL',
|
|
15
|
-
'POWERPLATFORM_CLIENT_ID',
|
|
16
|
-
'POWERPLATFORM_TENANT_ID'
|
|
17
|
-
];
|
|
18
|
-
const missing = coreRequiredVars.filter(v => !process.env[v]);
|
|
19
|
-
if (missing.length > 0) {
|
|
20
|
-
throw new Error(`Missing required PowerPlatform configuration: ${missing.join(', ')}`);
|
|
21
|
-
}
|
|
22
|
-
const hasClientSecret = !!process.env.POWERPLATFORM_CLIENT_SECRET;
|
|
23
|
-
const config = {
|
|
24
|
-
organizationUrl: process.env.POWERPLATFORM_URL,
|
|
25
|
-
clientId: process.env.POWERPLATFORM_CLIENT_ID,
|
|
26
|
-
clientSecret: process.env.POWERPLATFORM_CLIENT_SECRET,
|
|
27
|
-
tenantId: process.env.POWERPLATFORM_TENANT_ID,
|
|
28
|
-
};
|
|
29
|
-
ppService = new PowerPlatformService(config);
|
|
30
|
-
const authMode = hasClientSecret ? 'service-principal' : 'interactive';
|
|
31
|
-
console.error(`PowerPlatform auth mode: ${authMode}`);
|
|
32
|
-
}
|
|
33
|
-
return ppService;
|
|
34
|
-
}
|
|
35
|
-
return {
|
|
36
|
-
get pp() { return getPowerPlatformService(); }
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=context-factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context-factory.js","sourceRoot":"","sources":["../src/context-factory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,oBAAoB,EAA4B,MAAM,2BAA2B,CAAC;AAG3F;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAA8B;IACjE,IAAI,SAAS,GAAgC,OAAO,IAAI,IAAI,CAAC;IAE7D,SAAS,uBAAuB;QAC9B,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,MAAM,gBAAgB,GAAG;gBACvB,mBAAmB;gBACnB,yBAAyB;gBACzB,yBAAyB;aAC1B,CAAC;YAEF,MAAM,OAAO,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9D,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACvB,MAAM,IAAI,KAAK,CAAC,iDAAiD,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACzF,CAAC;YAED,MAAM,eAAe,GAAG,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,CAAC;YAElE,MAAM,MAAM,GAAwB;gBAClC,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAkB;gBAC/C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAwB;gBAC9C,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;gBACrD,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,uBAAwB;aAC/C,CAAC;YAEF,SAAS,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;YAE7C,MAAM,QAAQ,GAAG,eAAe,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,aAAa,CAAC;YACvE,OAAO,CAAC,KAAK,CAAC,4BAA4B,QAAQ,EAAE,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO;QACL,IAAI,EAAE,KAAK,OAAO,uBAAuB,EAAE,CAAC,CAAC,CAAC;KAC/C,CAAC;AACJ,CAAC"}
|
package/build/http-server.d.ts
DELETED
package/build/index.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* @mcp-consultant-tools/powerplatform
|
|
4
|
-
*
|
|
5
|
-
* MCP server for PowerPlatform read-only integration (46 tools, 12 prompts).
|
|
6
|
-
* Entry point: MCP server startup + backward-compatible registerPowerPlatformTools().
|
|
7
|
-
*/
|
|
8
|
-
import { PowerPlatformService } from './PowerPlatformService.js';
|
|
9
|
-
/**
|
|
10
|
-
* Register PowerPlatform read-only tools with an MCP server
|
|
11
|
-
* @param server - MCP server instance
|
|
12
|
-
* @param service - Optional pre-initialized PowerPlatformService (for testing)
|
|
13
|
-
*/
|
|
14
|
-
export declare function registerPowerPlatformTools(server: any, service?: PowerPlatformService): void;
|
|
15
|
-
export { PowerPlatformService } from './PowerPlatformService.js';
|
|
16
|
-
export type { PowerPlatformConfig } from './PowerPlatformService.js';
|
|
17
|
-
export type { ServiceContext } from './types.js';
|
|
18
|
-
//# sourceMappingURL=index.d.ts.map
|