@cmflow/agents 3.4.0-beta.32 → 3.4.0-beta.34
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 +48 -43
- package/dist/bin/cm-agents.mjs +88 -90
- package/dist/bin/cm-agents.mjs.map +1 -1
- package/package.json +3 -2
- package/scripts/setup.ps1 +0 -63
- package/scripts/setup.sh +0 -29
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ npx -p @cmflow/agents cm-agents install
|
|
|
38
38
|
|
|
39
39
|
## Commands
|
|
40
40
|
|
|
41
|
-
### `cm-agents install
|
|
41
|
+
### `cm-agents install`
|
|
42
42
|
|
|
43
43
|
Interactive full workstation setup:
|
|
44
44
|
|
|
@@ -55,13 +55,19 @@ Interactive full workstation setup:
|
|
|
55
55
|
```bash
|
|
56
56
|
npx -p @cmflow/agents cm-agents install
|
|
57
57
|
npx -p @cmflow/agents cm-agents install --reinstall # force reinstall of every tool
|
|
58
|
+
npx -p @cmflow/agents cm-agents install --dryRun # display every planned task without changes
|
|
59
|
+
npx -p @cmflow/agents cm-agents install --agent codex # configure Codex only
|
|
60
|
+
npx -p @cmflow/agents cm-agents install --agent claude --mcps-only
|
|
58
61
|
```
|
|
59
62
|
|
|
63
|
+
`--mcps-only` requires `--agent claude` or `--agent codex`. The Codex setup displays separate tasks for the CLI, LiteLLM model catalog, and LiteLLM configuration.
|
|
64
|
+
|
|
60
65
|
### `cm-agents check`
|
|
61
66
|
|
|
62
67
|
Checks the workstation installation state and prints a pass / warn / fail report:
|
|
63
68
|
|
|
64
69
|
- **Node.js version** ≥ 20 (via `process.version`)
|
|
70
|
+
- **npm** can execute (`npm -v`)
|
|
65
71
|
- **git**, **codex**, **claude** present in PATH
|
|
66
72
|
- **python** present in PATH (optional — warn only)
|
|
67
73
|
- Required environment variables
|
|
@@ -71,7 +77,17 @@ Checks the workstation installation state and prints a pass / warn / fail report
|
|
|
71
77
|
- Claude MCPs configured
|
|
72
78
|
- Repository cloned
|
|
73
79
|
|
|
74
|
-
> `
|
|
80
|
+
> `cm-agents` itself requires Node.js to start. The `check` command also validates that `npm -v` can execute.
|
|
81
|
+
|
|
82
|
+
### Repair Node.js on Windows
|
|
83
|
+
|
|
84
|
+
If `cm-agents check` reports that `npm -v` cannot run because a manually installed Node.js binary has a bad signature, repair the user installation with:
|
|
85
|
+
|
|
86
|
+
```powershell
|
|
87
|
+
cm-agents node reinstall
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
This installs mise with winget when needed, installs Node.js 24 through mise, adds `%LOCALAPPDATA%\mise\shims` to the user PATH, and removes legacy `nodejs` entries from that PATH.
|
|
75
91
|
|
|
76
92
|
```bash
|
|
77
93
|
npx -p @cmflow/agents cm-agents check
|
|
@@ -80,6 +96,7 @@ npx -p @cmflow/agents cm-agents check
|
|
|
80
96
|
### `cm-agents codex use openai [--model <model>]`
|
|
81
97
|
|
|
82
98
|
Switches Codex back to the personal OpenAI account:
|
|
99
|
+
|
|
83
100
|
- Removes `model_provider`, `model_catalog_json`, `model_providers`, `openai_base_url`
|
|
84
101
|
- Lists available models via the OpenAI SDK (`openai.models.list()`) and shows an interactive select prompt
|
|
85
102
|
- Falls back to `gpt-5.6-luna` if `OPENAI_API_KEY` is not set or the API is unreachable
|
|
@@ -92,6 +109,7 @@ cm-agents codex use openai --model gpt-5.6-luna # skip selection
|
|
|
92
109
|
### `cm-agents codex use litellm`
|
|
93
110
|
|
|
94
111
|
Switches Codex to the Club Med LiteLLM provider:
|
|
112
|
+
|
|
95
113
|
- If `model_providers.litellm` is not yet configured, prompts for `LITELLM_API_KEY` and `base_url` (default: `https://litellm-aiplatform.ai.clubmed.com`)
|
|
96
114
|
- Fetches the Club Med model catalog from the LiteLLM API → writes `~/.codex/clubmed-models.json`
|
|
97
115
|
- Sets `model_provider = "litellm"`, `model_catalog_json`, and `model_providers.litellm`
|
|
@@ -131,71 +149,59 @@ Requires `LITELLM_API_KEY` to be set in the environment.
|
|
|
131
149
|
cm-agents codex models --refresh
|
|
132
150
|
```
|
|
133
151
|
|
|
134
|
-
### `cm-agents kibana setup
|
|
152
|
+
### `cm-agents kibana setup`
|
|
135
153
|
|
|
136
|
-
|
|
154
|
+
Creates or updates a Kibana MCP profile. `cm-agents` collects the configuration values and securely prompts for the password, then provides them to the Kibana setup command.
|
|
137
155
|
|
|
138
|
-
- Streams `npx @havesomecode/kibana-mcp-server setup` with full stdin/stdout relay.
|
|
139
156
|
- After a successful setup, registers `kibana_<profile>` as a **stdio MCP** in both Codex and Claude.
|
|
140
157
|
|
|
141
158
|
```bash
|
|
142
|
-
cm-agents kibana setup
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
KIBANA_PROFILE=prod npx -y @havesomecode/kibana-mcp-server serve
|
|
151
|
-
KIBANA_PROFILE=staging npx -y @havesomecode/kibana-mcp-server serve
|
|
159
|
+
cm-agents kibana setup \
|
|
160
|
+
--profile production \
|
|
161
|
+
--url https://api.clubmed.com/logs \
|
|
162
|
+
--user User \
|
|
163
|
+
--config 'SHARED_AGENTS_REPO_DIR/scripts/kibana-mcp-server/sources.{profile}.json'
|
|
164
|
+
|
|
165
|
+
# Re-register the MCP even if already present
|
|
166
|
+
cm-agents kibana setup --profile production --url https://api.clubmed.com/logs --user User --config sources.prod.json --reinstall
|
|
152
167
|
```
|
|
153
168
|
|
|
154
|
-
The
|
|
155
|
-
|
|
156
|
-
```json
|
|
157
|
-
{
|
|
158
|
-
"type": "stdio",
|
|
159
|
-
"command": "npx",
|
|
160
|
-
"args": ["-y", "@havesomecode/kibana-mcp-server", "serve"],
|
|
161
|
-
"env": { "KIBANA_PROFILE": "prod" }
|
|
162
|
-
}
|
|
163
|
-
```
|
|
169
|
+
`--config` supports `{profile}` and the literal `SHARED_AGENTS_REPO_DIR/` prefix. The prefix is resolved from the environment variable; when it is absent, `cm-agents` uses the first detected default repository directory.
|
|
164
170
|
|
|
165
171
|
### `cm-agents kibana serve <profile>`
|
|
166
172
|
|
|
167
173
|
Starts the Kibana MCP server for a given profile — a thin proxy for:
|
|
168
174
|
|
|
169
175
|
```bash
|
|
170
|
-
KIBANA_PROFILE=<profile> npx
|
|
176
|
+
KIBANA_PROFILE=<profile> npx --yes --package=@havesomecode/kibana-mcp-server kibana-mcp-server serve
|
|
171
177
|
```
|
|
172
178
|
|
|
173
179
|
```bash
|
|
174
|
-
cm-agents kibana serve
|
|
175
|
-
cm-agents kibana serve staging
|
|
180
|
+
cm-agents kibana serve --profile production
|
|
181
|
+
cm-agents kibana serve --profile staging
|
|
176
182
|
```
|
|
177
183
|
|
|
178
184
|
## Environment variables
|
|
179
185
|
|
|
180
|
-
| Variable | Purpose
|
|
181
|
-
|
|
182
|
-
| `LITELLM_API_KEY` | LiteLLM key (AI portal — VPN required)
|
|
183
|
-
| `ANTHROPIC_API_KEY` | Anthropic key (same portal)
|
|
184
|
-
| `ANTHROPIC_BASE_URL` | LiteLLM proxy base URL
|
|
185
|
-
| `ANTHROPIC_DEFAULT_SONNET_MODEL` | Default Claude model
|
|
186
|
-
| `ANTHROPIC_DEFAULT_FABLE_MODEL` | Fable model
|
|
187
|
-
| `ANTHROPIC_DEFAULT_OPUS_MODEL` | Opus model
|
|
188
|
-
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | Haiku model
|
|
189
|
-
| `CLUBMED_API_MCP_KEY` | Club Med API portal MCP key
|
|
190
|
-
| `CMS_API_MCP_TOKEN` | CMS Directus MCP token (optional)
|
|
191
|
-
| `
|
|
186
|
+
| Variable | Purpose |
|
|
187
|
+
| -------------------------------- | --------------------------------------------------------- |
|
|
188
|
+
| `LITELLM_API_KEY` | LiteLLM key (AI portal — VPN required) |
|
|
189
|
+
| `ANTHROPIC_API_KEY` | Anthropic key (same portal) |
|
|
190
|
+
| `ANTHROPIC_BASE_URL` | LiteLLM proxy base URL |
|
|
191
|
+
| `ANTHROPIC_DEFAULT_SONNET_MODEL` | Default Claude model |
|
|
192
|
+
| `ANTHROPIC_DEFAULT_FABLE_MODEL` | Fable model |
|
|
193
|
+
| `ANTHROPIC_DEFAULT_OPUS_MODEL` | Opus model |
|
|
194
|
+
| `ANTHROPIC_DEFAULT_HAIKU_MODEL` | Haiku model |
|
|
195
|
+
| `CLUBMED_API_MCP_KEY` | Club Med API portal MCP key |
|
|
196
|
+
| `CMS_API_MCP_TOKEN` | CMS Directus MCP token (optional) |
|
|
197
|
+
| `SHARED_AGENTS_REPO_DIR` | Optional path to the `digital-api-team-skills` repository |
|
|
192
198
|
|
|
193
199
|
## Configured MCPs
|
|
194
200
|
|
|
195
201
|
### Codex (`~/.codex/config.toml`)
|
|
196
202
|
|
|
197
203
|
| Name | URL |
|
|
198
|
-
|
|
204
|
+
| ------------- | ----------------------------------------- |
|
|
199
205
|
| `clubmed_api` | `https://portal.api.clubmed/mcp` |
|
|
200
206
|
| `cms_api` | `https://cms.api.clubmed/mcp` |
|
|
201
207
|
| `atlassian` | `https://mcp.atlassian.com/v1/mcp/authv2` |
|
|
@@ -203,7 +209,7 @@ cm-agents kibana serve staging
|
|
|
203
209
|
### Claude (user scope)
|
|
204
210
|
|
|
205
211
|
| Name | URL |
|
|
206
|
-
|
|
212
|
+
| ------------- | ------------------------------------------------------ |
|
|
207
213
|
| `clubmed_api` | `https://portal.api.clubmed/mcp` |
|
|
208
214
|
| `cms_api` | `https://cms.api.clubmed/mcp` |
|
|
209
215
|
| `atlassian` | Marketplace plugin `atlassian@claude-plugins-official` |
|
|
@@ -215,7 +221,6 @@ cm-agents kibana serve staging
|
|
|
215
221
|
3. Install the ChatGPT app (Codex UI): <https://chatgpt.com/download>
|
|
216
222
|
4. Install Claude Desktop: <https://claude.ai/download>
|
|
217
223
|
|
|
218
|
-
|
|
219
224
|
## License
|
|
220
225
|
|
|
221
226
|
The MIT License (MIT)
|