@bike4mind/cli 0.2.5-fix-github-issue-type.17095 → 0.2.6-fix-cli-mcp-type-mismatch.17119
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 +50 -4
- package/dist/{artifactExtractor-XKSGESLB.js → artifactExtractor-DNE5C6DY.js} +1 -1
- package/dist/{chunk-MPZQL3KY.js → chunk-3CCBDIFR.js} +2 -2
- package/dist/{chunk-KH2C4VVX.js → chunk-DNSBC3LO.js} +1 -1
- package/dist/{chunk-7Y3E4OY6.js → chunk-H6SHASMZ.js} +33 -1
- package/dist/{chunk-PKOGN2ZZ.js → chunk-LIRY24M5.js} +2 -2
- package/dist/{chunk-TPWKBMIZ.js → chunk-YXHQN7SK.js} +2 -2
- package/dist/{create-VQAEHGW2.js → create-PNU64QSF.js} +3 -3
- package/dist/index.js +841 -222
- package/dist/{llmMarkdownGenerator-2CYNNMDZ.js → llmMarkdownGenerator-UQXKK2AS.js} +1 -1
- package/dist/{markdownGenerator-ILNTIASI.js → markdownGenerator-FLLZFXMT.js} +1 -1
- package/dist/{mementoService-ZQFTU4CW.js → mementoService-LVFQ5XAW.js} +3 -3
- package/dist/{src-RDXIYUAV.js → src-OH5AAQEW.js} +2 -2
- package/dist/{src-U3DNYA5K.js → src-OYQXRLTM.js} +3 -1
- package/dist/{subtractCredits-FHCRDFZ3.js → subtractCredits-75VT7HP2.js} +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -172,13 +172,15 @@ export SERPER_API_KEY="your-key-here"
|
|
|
172
172
|
|
|
173
173
|
MCP (Model Context Protocol) servers provide additional tools and capabilities. Configure them in `~/.bike4mind/config.json`:
|
|
174
174
|
|
|
175
|
+
#### Internal MCP Servers (Node.js)
|
|
176
|
+
|
|
177
|
+
For MCP servers bundled with the monorepo, you can omit `command` and `args` - the CLI will automatically discover them:
|
|
178
|
+
|
|
175
179
|
```json
|
|
176
180
|
{
|
|
177
181
|
"mcpServers": [
|
|
178
182
|
{
|
|
179
183
|
"name": "github",
|
|
180
|
-
"command": "node",
|
|
181
|
-
"args": ["path/to/mcp/server.js"],
|
|
182
184
|
"env": {
|
|
183
185
|
"GITHUB_ACCESS_TOKEN": "ghp_..."
|
|
184
186
|
},
|
|
@@ -188,12 +190,56 @@ MCP (Model Context Protocol) servers provide additional tools and capabilities.
|
|
|
188
190
|
}
|
|
189
191
|
```
|
|
190
192
|
|
|
191
|
-
|
|
193
|
+
#### External MCP Servers (Docker)
|
|
194
|
+
|
|
195
|
+
You can run MCP servers in Docker containers for isolation and portability:
|
|
196
|
+
|
|
197
|
+
```json
|
|
198
|
+
{
|
|
199
|
+
"mcpServers": [
|
|
200
|
+
{
|
|
201
|
+
"name": "github",
|
|
202
|
+
"command": "docker",
|
|
203
|
+
"args": ["run", "-i", "--rm", "-e", "GITHUB_TOKEN", "ghcr.io/github/github-mcp-server"],
|
|
204
|
+
"env": {
|
|
205
|
+
"GITHUB_TOKEN": "ghp_..."
|
|
206
|
+
},
|
|
207
|
+
"enabled": true
|
|
208
|
+
}
|
|
209
|
+
]
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
**Docker Configuration Notes:**
|
|
214
|
+
- The `-i` flag is required for stdin communication with the MCP server
|
|
215
|
+
- Use `-e VAR_NAME` (without value) to pass environment variables from the host
|
|
216
|
+
- The `--rm` flag ensures containers are cleaned up after use
|
|
217
|
+
- Requires Docker to be installed and running
|
|
218
|
+
|
|
219
|
+
#### External MCP Servers (npx/Custom Commands)
|
|
220
|
+
|
|
221
|
+
You can also run any MCP server via npx or custom executables:
|
|
222
|
+
|
|
223
|
+
```json
|
|
224
|
+
{
|
|
225
|
+
"mcpServers": [
|
|
226
|
+
{
|
|
227
|
+
"name": "filesystem",
|
|
228
|
+
"command": "npx",
|
|
229
|
+
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/dir"],
|
|
230
|
+
"env": {},
|
|
231
|
+
"enabled": true
|
|
232
|
+
}
|
|
233
|
+
]
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
**Available Built-in MCP Servers:**
|
|
192
238
|
- 🔧 **GitHub** - Repository management, issues, PRs (requires `GITHUB_ACCESS_TOKEN`)
|
|
193
239
|
- 🔧 **LinkedIn** - Post management, analytics (requires `LINKEDIN_ACCESS_TOKEN`, `COMPANY_NAME`)
|
|
194
240
|
- 🔧 **Atlassian** - Jira/Confluence integration (requires `ATLASSIAN_ACCESS_TOKEN`, `ATLASSIAN_CLOUD_ID`, `ATLASSIAN_SITE_URL`)
|
|
195
241
|
|
|
196
|
-
**Note:** MCP servers must be built and available in the `b4m-core/packages/mcp/dist/src/` directory. The CLI will automatically find them if you're running from the monorepo.
|
|
242
|
+
**Note:** Internal MCP servers must be built and available in the `b4m-core/packages/mcp/dist/src/` directory. The CLI will automatically find them if you're running from the monorepo. For Docker-based servers, ensure Docker is installed and the image is accessible.
|
|
197
243
|
|
|
198
244
|
## Session Storage
|
|
199
245
|
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-DNSBC3LO.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H6SHASMZ.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
dayjsConfig_default,
|
|
17
17
|
extractSnippetMeta,
|
|
18
18
|
settingsMap
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-H6SHASMZ.js";
|
|
20
20
|
|
|
21
21
|
// ../../b4m-core/packages/utils/dist/src/storage/S3Storage.js
|
|
22
22
|
import { S3Client, PutObjectCommand, DeleteObjectCommand, GetObjectCommand, HeadObjectCommand } from "@aws-sdk/client-s3";
|
|
@@ -3745,6 +3745,35 @@ var ToolHealthSchema = z21.object({
|
|
|
3745
3745
|
lastExecutionTime: z21.number().optional(),
|
|
3746
3746
|
successRate: z21.number().optional()
|
|
3747
3747
|
});
|
|
3748
|
+
var CitableSourceSchema = z21.object({
|
|
3749
|
+
/** Unique identifier - can be URL, UUID, or composite key */
|
|
3750
|
+
id: z21.string(),
|
|
3751
|
+
/** Source classification for UI rendering */
|
|
3752
|
+
type: z21.enum(["web_url", "document", "dataset", "mcp"]),
|
|
3753
|
+
/** Human-readable title/name */
|
|
3754
|
+
title: z21.string(),
|
|
3755
|
+
/** Navigation target (external URL, deep link, or hash route) */
|
|
3756
|
+
url: z21.string().optional(),
|
|
3757
|
+
/** Brief description or excerpt (1-2 sentences) */
|
|
3758
|
+
description: z21.string().optional(),
|
|
3759
|
+
/** ISO 8601 timestamp for freshness indication */
|
|
3760
|
+
timestamp: z21.string().optional(),
|
|
3761
|
+
/** Attribution for non-report sources */
|
|
3762
|
+
author: z21.string().optional(),
|
|
3763
|
+
/** Processing status for real-time updates */
|
|
3764
|
+
status: z21.enum(["pending", "processing", "complete", "error"]).optional(),
|
|
3765
|
+
/** Extensibility metadata */
|
|
3766
|
+
metadata: z21.object({
|
|
3767
|
+
sourceSystem: z21.string().optional(),
|
|
3768
|
+
icon: z21.string().optional(),
|
|
3769
|
+
tags: z21.array(z21.string()).optional(),
|
|
3770
|
+
confidence: z21.number().optional(),
|
|
3771
|
+
practiceAreas: z21.array(z21.string()).optional(),
|
|
3772
|
+
chunkId: z21.string().optional(),
|
|
3773
|
+
relevanceScore: z21.number().optional(),
|
|
3774
|
+
fullContext: z21.string().optional()
|
|
3775
|
+
}).passthrough().optional()
|
|
3776
|
+
});
|
|
3748
3777
|
var PromptMetaZodSchema = z21.object({
|
|
3749
3778
|
model: PromptMetaModelSchema.optional(),
|
|
3750
3779
|
tokenUsage: PromptMetaTokenUsageSchema.optional(),
|
|
@@ -3787,7 +3816,9 @@ var PromptMetaZodSchema = z21.object({
|
|
|
3787
3816
|
failedSteps: z21.array(z21.string()).optional()
|
|
3788
3817
|
}).optional(),
|
|
3789
3818
|
// Phase 2: Tool health tracking
|
|
3790
|
-
toolHealth: z21.array(ToolHealthSchema).optional()
|
|
3819
|
+
toolHealth: z21.array(ToolHealthSchema).optional(),
|
|
3820
|
+
// Citable sources referenced in AI responses (from web_search, deep_research, RAG, MCP)
|
|
3821
|
+
citables: z21.array(CitableSourceSchema).optional()
|
|
3791
3822
|
});
|
|
3792
3823
|
|
|
3793
3824
|
// ../../b4m-core/packages/common/dist/src/schemas/analytics/events/ai.js
|
|
@@ -6060,6 +6091,7 @@ export {
|
|
|
6060
6091
|
API_SERVICE_GROUPS,
|
|
6061
6092
|
settingsMap,
|
|
6062
6093
|
StringBooleanSchema,
|
|
6094
|
+
CitableSourceSchema,
|
|
6063
6095
|
PromptMetaZodSchema,
|
|
6064
6096
|
AiEvents,
|
|
6065
6097
|
ApiKeyEvents,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-DNSBC3LO.js";
|
|
6
6
|
import {
|
|
7
7
|
GenericCreditDeductTransaction,
|
|
8
8
|
ImageEditUsageTransaction,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
RealtimeVoiceUsageTransaction,
|
|
11
11
|
TextGenerationUsageTransaction,
|
|
12
12
|
TransferCreditTransaction
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-H6SHASMZ.js";
|
|
14
14
|
|
|
15
15
|
// ../../b4m-core/packages/services/dist/src/creditService/subtractCredits.js
|
|
16
16
|
import { z } from "zod";
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
getSettingsMap,
|
|
8
8
|
getSettingsValue,
|
|
9
9
|
secureParameters
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-DNSBC3LO.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-H6SHASMZ.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-YXHQN7SK.js";
|
|
6
|
+
import "./chunk-DNSBC3LO.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-H6SHASMZ.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|