Skip to content

Commit 27cb0d6

Browse files
committed
pretty print saving
1 parent d16ed3b commit 27cb0d6

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
## [Unreleased]
1111

12+
### Added
13+
14+
- Pretty print saving of manifest on installation
15+
1216
## [8.10.1] - 2026-04-15
1317

1418
### Fixed

models/AIService.cfc

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
component singleton {
66

77
// DI
8-
property name="print" inject="PrintBuffer";
9-
property name="fileSystemUtil" inject="fileSystem";
10-
property name="packageService" inject="PackageService";
118
property name="guidelineManager" inject="GuidelineManager@coldbox-cli";
129
property name="skillManager" inject="SkillManager@coldbox-cli";
1310
property name="agentRegistry" inject="AgentRegistry@coldbox-cli";
1411
property name="mcpRegistry" inject="MCPRegistry@coldbox-cli";
1512
property name="utility" inject="Utility@coldbox-cli";
13+
// From CommandBox CLI
14+
property name="JSONService" inject="JSONService";
15+
property name="print" inject="PrintBuffer";
16+
property name="fileSystemUtil" inject="fileSystem";
17+
property name="packageService" inject="PackageService";
1618

1719
/**
1820
* Install AI integration for a project
@@ -382,9 +384,9 @@ component singleton {
382384
){
383385
var manifestPath = getManifestPath( arguments.directory )
384386
arguments.manifest.lastSync = dateTimeFormat( now(), "iso" )
385-
fileWrite(
386-
manifestPath,
387-
serializeJSON( arguments.manifest, true )
387+
variables.JSONService.writeJSONFile(
388+
path: manifestPath,
389+
json: arguments.manifest
388390
)
389391
return this
390392
}

todo.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
## Todo
2+
3+
[] Pretty print the manifest on installtion and save
4+
[] Once we list the mcp servers in the manifest, create a `root/.mcp.json` with the server list, since they are https, just add them.
5+
[] new command `coldbox ai mcp install` that will install the `cbMCP` module, add it to the `root/.mcp.json` and the servers manifest. This needs to go to the server url that you are on, with the npm bridge for http : mcp-http-stdio-bridge
6+
[] Update `coldbox ai mcp remove` should remove from the `root/.mcp.json` as well
7+
[] `coldbox ai skills install`
8+
[] `coldbox ai skills audit`
9+
[] Change source of truth for skills to our new website.

0 commit comments

Comments
 (0)