@codapult/cli 0.12.0 → 0.13.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/dist/mcp/resources.js +12 -2
- package/dist/mcp/tools/project.js +1 -1
- package/package.json +1 -1
package/dist/mcp/resources.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { findProjectRoot, readProjectFile } from '../utils/project.js';
|
|
2
|
-
import { ENV_EXAMPLE_FILE_NAME
|
|
2
|
+
import { ENV_EXAMPLE_FILE_NAME } from '../utils/project-env.js';
|
|
3
3
|
function getRoot() {
|
|
4
4
|
const root = findProjectRoot();
|
|
5
5
|
if (!root)
|
|
@@ -17,7 +17,7 @@ export function registerResources(server) {
|
|
|
17
17
|
});
|
|
18
18
|
server.registerResource('codapult_app_config', 'codapult://config/app', {
|
|
19
19
|
title: 'App Configuration',
|
|
20
|
-
description: `Application config (src/config/app.ts) — brand, AI,
|
|
20
|
+
description: `Application config (src/config/app.ts) — brand, AI, company. Feature toggles and auth methods live in src/lib/config.ts — see codapult://config/env.`,
|
|
21
21
|
mimeType: 'text/plain',
|
|
22
22
|
}, () => {
|
|
23
23
|
const content = readProjectFile(getRoot(), 'src/config/app.ts') ?? 'Config file not found';
|
|
@@ -25,6 +25,16 @@ export function registerResources(server) {
|
|
|
25
25
|
contents: [{ uri: 'codapult://config/app', text: content, mimeType: 'text/plain' }],
|
|
26
26
|
};
|
|
27
27
|
});
|
|
28
|
+
server.registerResource('codapult_env_config', 'codapult://config/env', {
|
|
29
|
+
title: 'Environment Configuration',
|
|
30
|
+
description: `Typed env access (src/lib/config.ts) — feature toggles (env.features), auth methods (env.auth), provider selection (dbProvider, paymentProvider, storageProvider, jobProvider), and checkout resolution. This is the source of truth for which modules are enabled — see also codapult://env-example or codapult_project_status.`,
|
|
31
|
+
mimeType: 'text/plain',
|
|
32
|
+
}, () => {
|
|
33
|
+
const content = readProjectFile(getRoot(), 'src/lib/config.ts') ?? 'Config file not found';
|
|
34
|
+
return {
|
|
35
|
+
contents: [{ uri: 'codapult://config/env', text: content, mimeType: 'text/plain' }],
|
|
36
|
+
};
|
|
37
|
+
});
|
|
28
38
|
server.registerResource('codapult_agents_md', 'codapult://agents', {
|
|
29
39
|
title: 'AGENTS.md',
|
|
30
40
|
description: 'AI agent guide — project structure, patterns, conventions, and rules',
|
|
@@ -61,7 +61,7 @@ export function registerProjectTools(server) {
|
|
|
61
61
|
});
|
|
62
62
|
server.registerTool('codapult_project_config', {
|
|
63
63
|
title: 'Project Config',
|
|
64
|
-
description: 'Read the app configuration from src/config/app.ts (brand,
|
|
64
|
+
description: 'Read the app configuration from src/config/app.ts (brand, ai, company)',
|
|
65
65
|
}, () => {
|
|
66
66
|
const root = getRoot();
|
|
67
67
|
const content = readProjectFile(root, 'src/config/app.ts') ?? 'Config file not found';
|