Skip to content

Commit d851cc3

Browse files
tool name change to mcp and toolbox name change to toolbox
1 parent bd0707c commit d851cc3

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/agentlib/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import chatlib from "../modules/chat"
2-
import tools from "../modules/tools"
2+
import tools from "../modules/mcp"
33
import llm from "../modules/llm"
44
import codeboltAgent from "../modules/agent"
55
import { SystemPrompt } from "./systemprompt";

src/agentlib/usermessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import cbfs from "../modules/fs";
22
import project from "../modules/project";
3-
import mcp from "../modules/tools";
3+
import mcp from "../modules/mcp";
44

55
/**
66
* Interface representing an agent that can be referenced in user messages.

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import tokenizer from './modules/tokenizer'
2222
import WebSocket from 'ws';
2323
import { EventEmitter } from 'events';
2424
import {chatSummary} from './modules/history'
25-
import codeboltTools from './modules/tools';
25+
import codeboltTools from './modules/mcp';
2626
import cbagent from './modules/agent';
2727
import cbutils from './modules/utils';
2828
import type { LLMResponse } from './types/cliWebSocketInterfaces';
@@ -171,7 +171,7 @@ class Codebolt {
171171
debug = debug;
172172
tokenizer = tokenizer;
173173
chatSummary=chatSummary;
174-
tools = codeboltTools;
174+
mcp = codeboltTools;
175175
agent = cbagent;
176176
utils = cbutils;
177177

File renamed without changes.

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export { ToolBox } from './utils/toolBox';
1+
export { MCPServer } from './utils/mcpServer';
22
export { TaskInstruction } from './agentlib/taskInstruction';
33
export { UserMessage } from './agentlib/usermessage';
44
export { SystemPrompt } from './agentlib/systemprompt';
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1218,7 +1218,7 @@ type Authenticate<T> = (request: http.IncomingMessage) => Promise<T>;
12181218
* Class representing a toolbox for FastMCP.
12191219
* Manages tools, resources, and prompts for a Model Context Protocol server.
12201220
*/
1221-
export class ToolBox<T extends Record<string, unknown> | undefined = undefined> extends FastMCPEventEmitter {
1221+
export class MCPServer<T extends Record<string, unknown> | undefined = undefined> extends FastMCPEventEmitter {
12221222
#options: ServerOptions<T>;
12231223
#prompts: InputPrompt[] = [];
12241224
#resources: Resource[] = [];

0 commit comments

Comments
 (0)