@bike4mind/cli 0.2.5-feat-cli-docker-mcp-support.17095 → 0.2.5-feat-auto-context-customization.17095
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 +4 -50
- package/dist/{artifactExtractor-GXQ5YZF7.js → artifactExtractor-JPM5X4QR.js} +1 -1
- package/dist/{chunk-WR6YZRQV.js → chunk-2RFX62SX.js} +3 -1
- package/dist/{chunk-WNBKV4FX.js → chunk-55PRVW6C.js} +2 -2
- package/dist/{chunk-LEG2UM5Q.js → chunk-GXADX53I.js} +2 -2
- package/dist/{chunk-6AJODFPC.js → chunk-QFDR3XXO.js} +2 -2
- package/dist/{chunk-LYNNVNEC.js → chunk-RM2KFSVU.js} +1 -1
- package/dist/{create-LOAAI36O.js → create-YNOMI6YQ.js} +3 -3
- package/dist/index.js +136 -63
- package/dist/{llmMarkdownGenerator-4ZR3FLEQ.js → llmMarkdownGenerator-T3OBRBEL.js} +1 -1
- package/dist/{markdownGenerator-7WE7WKME.js → markdownGenerator-3CHNICAY.js} +1 -1
- package/dist/{mementoService-XGFAWC5F.js → mementoService-NXPL4ZYA.js} +3 -3
- package/dist/{src-32Z2VZMC.js → src-TKRGPJT4.js} +2 -2
- package/dist/{src-6J6LFPZ6.js → src-XWYCD3H6.js} +1 -1
- package/dist/{subtractCredits-VMGWNJS7.js → subtractCredits-KSYATBCK.js} +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -172,15 +172,13 @@ 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
|
-
|
|
179
175
|
```json
|
|
180
176
|
{
|
|
181
177
|
"mcpServers": [
|
|
182
178
|
{
|
|
183
179
|
"name": "github",
|
|
180
|
+
"command": "node",
|
|
181
|
+
"args": ["path/to/mcp/server.js"],
|
|
184
182
|
"env": {
|
|
185
183
|
"GITHUB_ACCESS_TOKEN": "ghp_..."
|
|
186
184
|
},
|
|
@@ -190,56 +188,12 @@ For MCP servers bundled with the monorepo, you can omit `command` and `args` - t
|
|
|
190
188
|
}
|
|
191
189
|
```
|
|
192
190
|
|
|
193
|
-
|
|
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:**
|
|
191
|
+
**Available MCP Servers:**
|
|
238
192
|
- 🔧 **GitHub** - Repository management, issues, PRs (requires `GITHUB_ACCESS_TOKEN`)
|
|
239
193
|
- 🔧 **LinkedIn** - Post management, analytics (requires `LINKEDIN_ACCESS_TOKEN`, `COMPANY_NAME`)
|
|
240
194
|
- 🔧 **Atlassian** - Jira/Confluence integration (requires `ATLASSIAN_ACCESS_TOKEN`, `ATLASSIAN_CLOUD_ID`, `ATLASSIAN_SITE_URL`)
|
|
241
195
|
|
|
242
|
-
**Note:**
|
|
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.
|
|
243
197
|
|
|
244
198
|
## Session Storage
|
|
245
199
|
|
|
@@ -230,7 +230,9 @@ var b4mLLMTools = z3.enum([
|
|
|
230
230
|
"create_file",
|
|
231
231
|
"glob_files",
|
|
232
232
|
"grep_search",
|
|
233
|
-
"delete_file"
|
|
233
|
+
"delete_file",
|
|
234
|
+
// Knowledge base search
|
|
235
|
+
"search_knowledge_base"
|
|
234
236
|
]);
|
|
235
237
|
var B4MLLMToolsList = b4mLLMTools.options.map((tool) => tool);
|
|
236
238
|
var RechartsChartTypeSchema = z3.enum([
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
getSettingsByNames,
|
|
7
7
|
obfuscateApiKey,
|
|
8
8
|
secureParameters
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-RM2KFSVU.js";
|
|
10
10
|
import {
|
|
11
11
|
ApiKeyType,
|
|
12
12
|
MementoTier,
|
|
13
13
|
isSupportedEmbeddingModel
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2RFX62SX.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/apiKeyService/get.js
|
|
17
17
|
import { z } from "zod";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
BadRequestError,
|
|
4
4
|
secureParameters
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-RM2KFSVU.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-2RFX62SX.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-RM2KFSVU.js";
|
|
11
11
|
import {
|
|
12
12
|
KnowledgeType,
|
|
13
13
|
SupportedFabFileMimeTypes
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2RFX62SX.js";
|
|
15
15
|
|
|
16
16
|
// ../../b4m-core/packages/services/dist/src/fabFileService/create.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-2RFX62SX.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";
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
createFabFile,
|
|
4
4
|
createFabFileSchema
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-QFDR3XXO.js";
|
|
6
|
+
import "./chunk-RM2KFSVU.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2RFX62SX.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
createFabFile,
|
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
getEffectiveApiKey,
|
|
5
5
|
getOpenWeatherKey,
|
|
6
6
|
getSerperKey
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-55PRVW6C.js";
|
|
8
|
+
import "./chunk-GXADX53I.js";
|
|
9
|
+
import "./chunk-QFDR3XXO.js";
|
|
10
10
|
import {
|
|
11
11
|
BFLImageService,
|
|
12
12
|
BaseStorage,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
OpenAIBackend,
|
|
16
16
|
OpenAIImageService,
|
|
17
17
|
XAIImageService
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-RM2KFSVU.js";
|
|
19
19
|
import {
|
|
20
20
|
Logger
|
|
21
21
|
} from "./chunk-AMDXHL6S.js";
|
|
@@ -73,7 +73,7 @@ import {
|
|
|
73
73
|
XAI_IMAGE_MODELS,
|
|
74
74
|
b4mLLMTools,
|
|
75
75
|
getMcpProviderMetadata
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-2RFX62SX.js";
|
|
77
77
|
import {
|
|
78
78
|
__require
|
|
79
79
|
} from "./chunk-PDX44BCA.js";
|
|
@@ -1421,8 +1421,8 @@ var CliConfigSchema = z.object({
|
|
|
1421
1421
|
mcpServers: z.array(
|
|
1422
1422
|
z.object({
|
|
1423
1423
|
name: z.string(),
|
|
1424
|
-
command: z.string()
|
|
1425
|
-
args: z.array(z.string())
|
|
1424
|
+
command: z.string(),
|
|
1425
|
+
args: z.array(z.string()),
|
|
1426
1426
|
env: z.record(z.string()),
|
|
1427
1427
|
enabled: z.boolean()
|
|
1428
1428
|
})
|
|
@@ -3087,7 +3087,9 @@ var updateSchema = z76.object({
|
|
|
3087
3087
|
name: z76.string().optional(),
|
|
3088
3088
|
description: z76.string().optional(),
|
|
3089
3089
|
billingContact: z76.string().optional(),
|
|
3090
|
-
currentCredits: z76.coerce.number().optional()
|
|
3090
|
+
currentCredits: z76.coerce.number().optional(),
|
|
3091
|
+
systemPrompt: z76.string().max(1e4).optional()
|
|
3092
|
+
// ~2500 tokens
|
|
3091
3093
|
});
|
|
3092
3094
|
|
|
3093
3095
|
// ../../b4m-core/packages/services/dist/src/organizationService/delete.js
|
|
@@ -7879,6 +7881,92 @@ var deleteFileTool = {
|
|
|
7879
7881
|
})
|
|
7880
7882
|
};
|
|
7881
7883
|
|
|
7884
|
+
// ../../b4m-core/packages/services/dist/src/llm/tools/implementation/knowledgeBaseSearch/index.js
|
|
7885
|
+
function formatSearchResults(files) {
|
|
7886
|
+
if (files.length === 0) {
|
|
7887
|
+
return "No documents found matching your search query in your knowledge base.";
|
|
7888
|
+
}
|
|
7889
|
+
const formattedFiles = files.map((file, index) => {
|
|
7890
|
+
const tags = file.tags?.map((t) => t.name).join(", ") || "none";
|
|
7891
|
+
const notes = file.notes ? `
|
|
7892
|
+
Notes: ${file.notes}` : "";
|
|
7893
|
+
const fileType = file.type || "FILE";
|
|
7894
|
+
return `${index + 1}. **${file.fileName}**
|
|
7895
|
+
Type: ${fileType} | MIME: ${file.mimeType}
|
|
7896
|
+
Tags: ${tags}${notes}`;
|
|
7897
|
+
});
|
|
7898
|
+
return `Found ${files.length} document(s) in your knowledge base:
|
|
7899
|
+
|
|
7900
|
+
` + formattedFiles.join("\n\n") + "\n\n*To use these documents in your conversation, you can ask me to reference specific files by name.*";
|
|
7901
|
+
}
|
|
7902
|
+
var knowledgeBaseSearchTool = {
|
|
7903
|
+
name: "search_knowledge_base",
|
|
7904
|
+
implementation: (context) => ({
|
|
7905
|
+
toolFn: async (value) => {
|
|
7906
|
+
const params = value;
|
|
7907
|
+
const { query, tags, file_type, max_results = 5 } = params;
|
|
7908
|
+
console.log("\u{1F4DA} Knowledge Base Search: Starting search for query:", query);
|
|
7909
|
+
if (!context.db.fabfiles) {
|
|
7910
|
+
console.error("\u274C Knowledge Base Search: fabfiles repository not available");
|
|
7911
|
+
return "Knowledge base search is not available at this time.";
|
|
7912
|
+
}
|
|
7913
|
+
try {
|
|
7914
|
+
const searchResults = await context.db.fabfiles.search(context.userId, query, {
|
|
7915
|
+
tags: tags || [],
|
|
7916
|
+
type: file_type,
|
|
7917
|
+
shared: false
|
|
7918
|
+
// Search all accessible files, not just shared
|
|
7919
|
+
}, {
|
|
7920
|
+
page: 1,
|
|
7921
|
+
limit: Math.min(max_results, 10)
|
|
7922
|
+
// Cap at 10 results
|
|
7923
|
+
}, {
|
|
7924
|
+
by: "fileName",
|
|
7925
|
+
direction: "asc"
|
|
7926
|
+
}, {
|
|
7927
|
+
includeShared: true
|
|
7928
|
+
// Include organization and explicitly shared files
|
|
7929
|
+
});
|
|
7930
|
+
console.log("\u{1F4DA} Knowledge Base Search: Found", searchResults.data.length, "results");
|
|
7931
|
+
return formatSearchResults(searchResults.data);
|
|
7932
|
+
} catch (error) {
|
|
7933
|
+
console.error("\u274C Knowledge Base Search: Error during search:", error);
|
|
7934
|
+
return "An error occurred while searching your knowledge base. Please try again.";
|
|
7935
|
+
}
|
|
7936
|
+
},
|
|
7937
|
+
toolSchema: {
|
|
7938
|
+
name: "search_knowledge_base",
|
|
7939
|
+
description: "Search the user's uploaded knowledge base (fab files). Returns relevant documents from the user's own files, organization-shared files, and files explicitly shared with them. Use this tool when the user asks about their own documents, uploaded files, or organization knowledge.",
|
|
7940
|
+
parameters: {
|
|
7941
|
+
type: "object",
|
|
7942
|
+
properties: {
|
|
7943
|
+
query: {
|
|
7944
|
+
type: "string",
|
|
7945
|
+
description: "The search query to find relevant documents by filename or content"
|
|
7946
|
+
},
|
|
7947
|
+
tags: {
|
|
7948
|
+
type: "array",
|
|
7949
|
+
items: { type: "string" },
|
|
7950
|
+
description: "Optional: filter results to only include files with these tags"
|
|
7951
|
+
},
|
|
7952
|
+
file_type: {
|
|
7953
|
+
type: "string",
|
|
7954
|
+
enum: ["pdf", "text", "image", "excel", "word", "json", "csv", "markdown", "code", "url"],
|
|
7955
|
+
description: "Optional: filter results by file type"
|
|
7956
|
+
},
|
|
7957
|
+
max_results: {
|
|
7958
|
+
type: "number",
|
|
7959
|
+
description: "Maximum number of results to return (default: 5, max: 10)",
|
|
7960
|
+
minimum: 1,
|
|
7961
|
+
maximum: 10
|
|
7962
|
+
}
|
|
7963
|
+
},
|
|
7964
|
+
required: ["query"]
|
|
7965
|
+
}
|
|
7966
|
+
}
|
|
7967
|
+
})
|
|
7968
|
+
};
|
|
7969
|
+
|
|
7882
7970
|
// ../../b4m-core/packages/services/dist/src/llm/tools/index.js
|
|
7883
7971
|
var tools = {
|
|
7884
7972
|
dice_roll: diceRollTool,
|
|
@@ -7906,7 +7994,9 @@ var tools = {
|
|
|
7906
7994
|
create_file: createFileTool,
|
|
7907
7995
|
glob_files: globFilesTool,
|
|
7908
7996
|
grep_search: grepSearchTool,
|
|
7909
|
-
delete_file: deleteFileTool
|
|
7997
|
+
delete_file: deleteFileTool,
|
|
7998
|
+
// Knowledge base search
|
|
7999
|
+
search_knowledge_base: knowledgeBaseSearchTool
|
|
7910
8000
|
};
|
|
7911
8001
|
var generateTools = (userId, user, logger2, { db }, storage, imageGenerateStorage, statusUpdate, onStart, onFinish, llm, config, model) => {
|
|
7912
8002
|
const context = {
|
|
@@ -8790,16 +8880,12 @@ var MCPClient = class {
|
|
|
8790
8880
|
mcp;
|
|
8791
8881
|
transport = null;
|
|
8792
8882
|
envVariables;
|
|
8793
|
-
customCommand;
|
|
8794
|
-
customArgs;
|
|
8795
8883
|
tools = [];
|
|
8796
8884
|
serverName;
|
|
8797
|
-
constructor({ envVariables, name, selectedRepositories
|
|
8885
|
+
constructor({ envVariables, name, selectedRepositories }) {
|
|
8798
8886
|
this.mcp = new Client2({ name: "mcp-client-cli", version: "1.0.0" });
|
|
8799
8887
|
this.envVariables = [...envVariables];
|
|
8800
8888
|
this.serverName = name;
|
|
8801
|
-
this.customCommand = command;
|
|
8802
|
-
this.customArgs = args;
|
|
8803
8889
|
if (name === "github" && selectedRepositories) {
|
|
8804
8890
|
const reposJson = JSON.stringify(selectedRepositories);
|
|
8805
8891
|
this.envVariables.push({
|
|
@@ -8810,48 +8896,37 @@ var MCPClient = class {
|
|
|
8810
8896
|
}
|
|
8811
8897
|
async connectToServer() {
|
|
8812
8898
|
try {
|
|
8813
|
-
const
|
|
8814
|
-
|
|
8815
|
-
|
|
8816
|
-
|
|
8817
|
-
|
|
8818
|
-
|
|
8819
|
-
|
|
8820
|
-
|
|
8821
|
-
|
|
8822
|
-
|
|
8823
|
-
|
|
8824
|
-
|
|
8825
|
-
|
|
8826
|
-
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
8834
|
-
|
|
8835
|
-
path12.join(root, `/b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
|
|
8836
|
-
path12.join(root, "core", "mcp", "servers", this.serverName, "dist", "index.js")
|
|
8837
|
-
];
|
|
8838
|
-
const serverScriptPath = candidatePaths.find((p) => existsSync6(p));
|
|
8839
|
-
if (!serverScriptPath) {
|
|
8840
|
-
const getDirectories = (source) => readdirSync3(source, { withFileTypes: true }).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name);
|
|
8841
|
-
console.error(`[MCP] Server script not found. Tried paths:`, candidatePaths);
|
|
8842
|
-
console.error(`[MCP] Available directories in ${root}:`, getDirectories(root));
|
|
8843
|
-
throw new Error(`MCP Server script path not found for ${this.serverName}. Root: ${root}, Available dirs: ${getDirectories(root).join(", ")}`);
|
|
8844
|
-
}
|
|
8845
|
-
command = process.execPath;
|
|
8846
|
-
args = [serverScriptPath];
|
|
8847
|
-
console.log(`[MCP] Using server: ${this.serverName} at ${serverScriptPath}`);
|
|
8848
|
-
}
|
|
8899
|
+
const root = process.env.INIT_CWD || process.cwd();
|
|
8900
|
+
const candidatePaths = [
|
|
8901
|
+
// When running from SST Lambda with node_modules structure (copyFiles)
|
|
8902
|
+
path12.join(root, `node_modules/@bike4mind/mcp/dist/src/${this.serverName}/index.js`),
|
|
8903
|
+
// When running from SST Lambda deployed environment (/var/task)
|
|
8904
|
+
path12.join(root, `b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
|
|
8905
|
+
// When running from SST Lambda (.sst/artifacts/mcpHandler-dev), navigate to monorepo root (3 levels up)
|
|
8906
|
+
path12.join(root, `../../../b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
|
|
8907
|
+
// When running from packages/client (Next.js app), navigate to monorepo root (2 levels up)
|
|
8908
|
+
path12.join(root, `../../b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
|
|
8909
|
+
// Original paths (backward compatibility)
|
|
8910
|
+
path12.join(root, `/b4m-core/packages/mcp/dist/src/${this.serverName}/index.js`),
|
|
8911
|
+
path12.join(root, "core", "mcp", "servers", this.serverName, "dist", "index.js")
|
|
8912
|
+
];
|
|
8913
|
+
const serverScriptPath = candidatePaths.find((p) => existsSync6(p));
|
|
8914
|
+
if (!serverScriptPath) {
|
|
8915
|
+
const getDirectories = (source) => readdirSync3(source, { withFileTypes: true }).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name);
|
|
8916
|
+
console.error(`[MCP] Server script not found. Tried paths:`, candidatePaths);
|
|
8917
|
+
console.error(`[MCP] Available directories in ${root}:`, getDirectories(root));
|
|
8918
|
+
throw new Error(`MCP Server script path not found for ${this.serverName}. Root: ${root}, Available dirs: ${getDirectories(root).join(", ")}`);
|
|
8919
|
+
}
|
|
8920
|
+
console.log(`[MCP] Using server: ${this.serverName} at ${serverScriptPath}`);
|
|
8849
8921
|
this.transport = new StdioClientTransport({
|
|
8850
|
-
command,
|
|
8851
|
-
args,
|
|
8922
|
+
command: process.execPath,
|
|
8923
|
+
args: [serverScriptPath],
|
|
8852
8924
|
env: {
|
|
8853
|
-
...
|
|
8854
|
-
...
|
|
8925
|
+
...process.env,
|
|
8926
|
+
...this.envVariables.reduce((acc, env) => ({
|
|
8927
|
+
...acc,
|
|
8928
|
+
[env.key]: env.value
|
|
8929
|
+
}), {})
|
|
8855
8930
|
}
|
|
8856
8931
|
});
|
|
8857
8932
|
this.transport.onerror = (error) => {
|
|
@@ -8959,9 +9034,7 @@ var McpManager = class {
|
|
|
8959
9034
|
}));
|
|
8960
9035
|
const client = new MCPClient({
|
|
8961
9036
|
envVariables,
|
|
8962
|
-
name: serverConfig.name
|
|
8963
|
-
command: serverConfig.command,
|
|
8964
|
-
args: serverConfig.args
|
|
9037
|
+
name: serverConfig.name
|
|
8965
9038
|
});
|
|
8966
9039
|
await client.connectToServer();
|
|
8967
9040
|
const mcpData = {
|
|
@@ -9419,7 +9492,7 @@ import { isAxiosError as isAxiosError2 } from "axios";
|
|
|
9419
9492
|
// package.json
|
|
9420
9493
|
var package_default = {
|
|
9421
9494
|
name: "@bike4mind/cli",
|
|
9422
|
-
version: "0.2.5-feat-
|
|
9495
|
+
version: "0.2.5-feat-auto-context-customization.17095+87596453c",
|
|
9423
9496
|
type: "module",
|
|
9424
9497
|
description: "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
9425
9498
|
license: "UNLICENSED",
|
|
@@ -9521,10 +9594,10 @@ var package_default = {
|
|
|
9521
9594
|
},
|
|
9522
9595
|
devDependencies: {
|
|
9523
9596
|
"@bike4mind/agents": "0.1.0",
|
|
9524
|
-
"@bike4mind/common": "2.37.1-feat-
|
|
9525
|
-
"@bike4mind/mcp": "1.19.6-feat-
|
|
9526
|
-
"@bike4mind/services": "2.32.2-feat-
|
|
9527
|
-
"@bike4mind/utils": "2.1.1-feat-
|
|
9597
|
+
"@bike4mind/common": "2.37.1-feat-auto-context-customization.17095+87596453c",
|
|
9598
|
+
"@bike4mind/mcp": "1.19.6-feat-auto-context-customization.17095+87596453c",
|
|
9599
|
+
"@bike4mind/services": "2.32.2-feat-auto-context-customization.17095+87596453c",
|
|
9600
|
+
"@bike4mind/utils": "2.1.1-feat-auto-context-customization.17095+87596453c",
|
|
9528
9601
|
"@types/diff": "^5.0.9",
|
|
9529
9602
|
"@types/jsonwebtoken": "^9.0.4",
|
|
9530
9603
|
"@types/node": "^22.9.0",
|
|
@@ -9536,7 +9609,7 @@ var package_default = {
|
|
|
9536
9609
|
typescript: "^5.9.3",
|
|
9537
9610
|
vitest: "^3.2.4"
|
|
9538
9611
|
},
|
|
9539
|
-
gitHead: "
|
|
9612
|
+
gitHead: "87596453cb00639e899f648a585324f86425ab17"
|
|
9540
9613
|
};
|
|
9541
9614
|
|
|
9542
9615
|
// src/config/constants.ts
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
findMostSimilarMemento,
|
|
4
4
|
getRelevantMementos
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-55PRVW6C.js";
|
|
6
|
+
import "./chunk-RM2KFSVU.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2RFX62SX.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
findMostSimilarMemento,
|
|
@@ -120,7 +120,7 @@ import {
|
|
|
120
120
|
validateMermaidSyntax,
|
|
121
121
|
warmUpSettingsCache,
|
|
122
122
|
withRetry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-RM2KFSVU.js";
|
|
124
124
|
import {
|
|
125
125
|
Logger,
|
|
126
126
|
NotificationDeduplicator,
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
postLowCreditsNotificationToSlack,
|
|
130
130
|
postMessageToSlack
|
|
131
131
|
} from "./chunk-AMDXHL6S.js";
|
|
132
|
-
import "./chunk-
|
|
132
|
+
import "./chunk-2RFX62SX.js";
|
|
133
133
|
import "./chunk-PDX44BCA.js";
|
|
134
134
|
export {
|
|
135
135
|
AWSBackend,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
SubtractCreditsSchema,
|
|
4
4
|
subtractCredits
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-GXADX53I.js";
|
|
6
|
+
import "./chunk-RM2KFSVU.js";
|
|
7
7
|
import "./chunk-AMDXHL6S.js";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-2RFX62SX.js";
|
|
9
9
|
import "./chunk-PDX44BCA.js";
|
|
10
10
|
export {
|
|
11
11
|
SubtractCreditsSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bike4mind/cli",
|
|
3
|
-
"version": "0.2.5-feat-
|
|
3
|
+
"version": "0.2.5-feat-auto-context-customization.17095+87596453c",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Interactive CLI tool for Bike4Mind with ReAct agents",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -102,10 +102,10 @@
|
|
|
102
102
|
},
|
|
103
103
|
"devDependencies": {
|
|
104
104
|
"@bike4mind/agents": "0.1.0",
|
|
105
|
-
"@bike4mind/common": "2.37.1-feat-
|
|
106
|
-
"@bike4mind/mcp": "1.19.6-feat-
|
|
107
|
-
"@bike4mind/services": "2.32.2-feat-
|
|
108
|
-
"@bike4mind/utils": "2.1.1-feat-
|
|
105
|
+
"@bike4mind/common": "2.37.1-feat-auto-context-customization.17095+87596453c",
|
|
106
|
+
"@bike4mind/mcp": "1.19.6-feat-auto-context-customization.17095+87596453c",
|
|
107
|
+
"@bike4mind/services": "2.32.2-feat-auto-context-customization.17095+87596453c",
|
|
108
|
+
"@bike4mind/utils": "2.1.1-feat-auto-context-customization.17095+87596453c",
|
|
109
109
|
"@types/diff": "^5.0.9",
|
|
110
110
|
"@types/jsonwebtoken": "^9.0.4",
|
|
111
111
|
"@types/node": "^22.9.0",
|
|
@@ -117,5 +117,5 @@
|
|
|
117
117
|
"typescript": "^5.9.3",
|
|
118
118
|
"vitest": "^3.2.4"
|
|
119
119
|
},
|
|
120
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "87596453cb00639e899f648a585324f86425ab17"
|
|
121
121
|
}
|