Skip to content

Commit acfff49

Browse files
committed
updated mcp
1 parent 3ab152f commit acfff49

24 files changed

+1423
-32
lines changed

docs/api/mcpAPI/agent.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
---
2+
title: Agent MCP
3+
sidebar_label: codebolt.agent
4+
sidebar_position: 7
5+
---
6+
7+
# codebolt.agent
8+
9+
Agent management and lifecycle operations for controlling and coordinating AI agents.
10+
11+
## Available Tools
12+
13+
- `agent_start` - Start a new agent instance
14+
- `agent_find` - Find existing agents by criteria
15+
- `agent_list` - List all active agents
16+
- `agent_stop` - Stop a running agent
17+
- `agent_install` - Install a new agent
18+
- `attempt_completion` - Mark agent task as completed
19+
20+
## Sample Usage
21+
22+
```javascript
23+
// Start a new agent
24+
const startResult = await codeboltMCP.executeTool(
25+
"codebolt.agent",
26+
"agent_start",
27+
{
28+
agentType: "codeAnalyzer",
29+
config: { language: "javascript" }
30+
}
31+
);
32+
33+
// List all active agents
34+
const listResult = await codeboltMCP.executeTool(
35+
"codebolt.agent",
36+
"agent_list",
37+
{}
38+
);
39+
40+
// Find specific agents
41+
const findResult = await codeboltMCP.executeTool(
42+
"codebolt.agent",
43+
"agent_find",
44+
{
45+
criteria: { type: "codeAnalyzer", status: "active" }
46+
}
47+
);
48+
49+
// Stop an agent
50+
const stopResult = await codeboltMCP.executeTool(
51+
"codebolt.agent",
52+
"agent_stop",
53+
{ agentId: "agent-123" }
54+
);
55+
56+
// Install a new agent
57+
const installResult = await codeboltMCP.executeTool(
58+
"codebolt.agent",
59+
"agent_install",
60+
{
61+
source: "marketplace",
62+
agentName: "testRunner"
63+
}
64+
);
65+
66+
// Mark task completion
67+
const completeResult = await codeboltMCP.executeTool(
68+
"codebolt.agent",
69+
"attempt_completion",
70+
{
71+
agentId: "agent-123",
72+
result: "Task completed successfully"
73+
}
74+
);
75+
```
76+
77+
:::info
78+
This functionality provides comprehensive agent lifecycle management for orchestrating multiple AI agents.
79+
:::

docs/api/mcpAPI/browser.md

Lines changed: 58 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,68 @@
1-
mcp.getTools(["codebolt.browser"])
1+
---
2+
title: Browser MCP
3+
sidebar_label: codebolt.browser
4+
sidebar_position: 2
5+
---
26

3-
List of Tools:
4-
- "click" - browser.click("test.txt", "utf8")
5-
- "openUrl" - browser.openUrl("test.txt", "Hello, world!")
6-
- "captureScreenshot" - browser.captureScreenshot("test.txt")
7+
# codebolt.browser
8+
9+
Browser automation and web interaction tools for controlling web browsers programmatically.
10+
11+
## Available Tools
12+
13+
- `launch` - Launch browser at specified URL
14+
- `click` - Click at specific coordinates
15+
- `type` - Type text into active element
16+
- `scroll_down` - Scroll page down
17+
- `scroll_up` - Scroll page up
18+
- `close` - Close the browser
19+
- `getHtml` - Get HTML of current page
20+
- `getContent` - Get text content of current page
21+
- `getMarkdown` - Get markdown version of current page
22+
- `screenshot` - Take screenshot of current page
23+
- `extractText` - Extract text from current page
24+
- `browserEnter` - Press Enter key
25+
- `getPdf` - Get PDF version of current page
26+
27+
## Sample Usage
728

8-
Sample Usage:
929
```javascript
10-
const result = await codeboltMCP.executeTool(
30+
// Launch browser at a specific URL
31+
const launchResult = await codeboltMCP.executeTool(
32+
"codebolt.browser",
33+
"launch",
34+
{ url: "https://example.com" }
35+
);
36+
37+
// Click at specific coordinates
38+
const clickResult = await codeboltMCP.executeTool(
1139
"codebolt.browser",
1240
"click",
13-
{ inputData: "test" }
41+
{ x: 100, y: 200 }
1442
);
15-
```
1643

44+
// Type text into active element
45+
const typeResult = await codeboltMCP.executeTool(
46+
"codebolt.browser",
47+
"type",
48+
{ text: "Hello World" }
49+
);
50+
51+
// Take a screenshot
52+
const screenshotResult = await codeboltMCP.executeTool(
53+
"codebolt.browser",
54+
"screenshot",
55+
{}
56+
);
57+
58+
// Get page content as markdown
59+
const markdownResult = await codeboltMCP.executeTool(
60+
"codebolt.browser",
61+
"getMarkdown",
62+
{}
63+
);
64+
```
1765

1866
:::info
19-
This functionality is similar to the [browser click](/docs/api/apiaccess/browser/click) API, and will produce the same result as calling `codebolt.browser.click("#test");`
67+
This functionality is similar to the [browser API](/docs/api/apiaccess/browser) and provides the same capabilities through MCP interface.
2068
:::

docs/api/mcpAPI/chat.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
title: Chat MCP
3+
sidebar_label: codebolt.chat
4+
sidebar_position: 16
5+
---
6+
7+
# codebolt.chat
8+
9+
Chat and conversation management for handling chat sessions and message processing.
10+
11+
## Available Tools
12+
13+
- `chat_summarize_all` - Summarize all chat conversations
14+
- `chat_summarize` - Summarize a specific chat conversation
15+
16+
## Sample Usage
17+
18+
```javascript
19+
// Summarize all chat conversations
20+
const summarizeAllResult = await codeboltMCP.executeTool(
21+
"codebolt.chat",
22+
"chat_summarize_all",
23+
{
24+
timeRange: "last_24_hours",
25+
includeMetrics: true
26+
}
27+
);
28+
29+
// Summarize a specific chat conversation
30+
const summarizeResult = await codeboltMCP.executeTool(
31+
"codebolt.chat",
32+
"chat_summarize",
33+
{
34+
chatId: "chat-123",
35+
maxLength: 500,
36+
includeKeyPoints: true
37+
}
38+
);
39+
40+
// Summarize with custom options
41+
const customSummaryResult = await codeboltMCP.executeTool(
42+
"codebolt.chat",
43+
"chat_summarize",
44+
{
45+
chatId: "chat-456",
46+
options: {
47+
focusOn: ["decisions", "action_items"],
48+
format: "bullet_points",
49+
language: "en"
50+
}
51+
}
52+
);
53+
```
54+
55+
:::info
56+
This functionality is similar to the [chat API](/docs/api/apiaccess/chat) and provides conversation management through MCP interface.
57+
:::

docs/api/mcpAPI/code_utils.md

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
---
2+
title: Code Utils MCP
3+
sidebar_label: codebolt.code_utils
4+
sidebar_position: 21
5+
---
6+
7+
# codebolt.code_utils
8+
9+
Code analysis and utility functions for processing and understanding code structures.
10+
11+
## Available Tools
12+
13+
- `code_utils_get_files_markdown` - Get files content in markdown format
14+
- `code_utils_get_js_tree` - Get JavaScript/TypeScript AST tree
15+
- `code_utils_perform_match` - Perform pattern matching on code
16+
- `code_utils_get_matcher_list` - Get list of available matchers
17+
- `code_utils_get_match_detail` - Get detailed match information
18+
19+
## Sample Usage
20+
21+
```javascript
22+
// Get files content in markdown format
23+
const markdownResult = await codeboltMCP.executeTool(
24+
"codebolt.code_utils",
25+
"code_utils_get_files_markdown",
26+
{
27+
files: ["src/index.js", "src/utils.js"],
28+
includeLineNumbers: true,
29+
syntax: "javascript"
30+
}
31+
);
32+
33+
// Get JavaScript AST tree
34+
const astResult = await codeboltMCP.executeTool(
35+
"codebolt.code_utils",
36+
"code_utils_get_js_tree",
37+
{
38+
filePath: "src/components/Button.tsx",
39+
includeComments: true,
40+
includeLocations: true
41+
}
42+
);
43+
44+
// Perform pattern matching on code
45+
const matchResult = await codeboltMCP.executeTool(
46+
"codebolt.code_utils",
47+
"code_utils_perform_match",
48+
{
49+
pattern: "function.*\\(",
50+
files: ["src/**/*.js"],
51+
matchType: "regex"
52+
}
53+
);
54+
55+
// Get list of available matchers
56+
const matchersResult = await codeboltMCP.executeTool(
57+
"codebolt.code_utils",
58+
"code_utils_get_matcher_list",
59+
{
60+
category: "javascript",
61+
includeDescriptions: true
62+
}
63+
);
64+
65+
// Get detailed match information
66+
const detailResult = await codeboltMCP.executeTool(
67+
"codebolt.code_utils",
68+
"code_utils_get_match_detail",
69+
{
70+
matchId: "match-123",
71+
includeContext: true,
72+
contextLines: 5
73+
}
74+
);
75+
76+
// Advanced code analysis
77+
const analysisResult = await codeboltMCP.executeTool(
78+
"codebolt.code_utils",
79+
"code_utils_get_js_tree",
80+
{
81+
filePath: "src/api/auth.js",
82+
analysis: {
83+
extractFunctions: true,
84+
extractClasses: true,
85+
extractImports: true,
86+
extractExports: true
87+
}
88+
}
89+
);
90+
```
91+
92+
:::info
93+
This functionality is similar to the [codeutils API](/docs/api/apiaccess/codeutils) and provides code analysis through MCP interface.
94+
:::

docs/api/mcpAPI/codebase.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: Codebase MCP
3+
sidebar_label: codebolt.codebase
4+
sidebar_position: 6
5+
---
6+
7+
# codebolt.codebase
8+
9+
Code search and analysis tools for exploring and understanding codebases.
10+
11+
## Available Tools
12+
13+
- `codebase_search` - Search through codebase for specific patterns or content
14+
- `search_mcp_tool` - Search for MCP tools and their definitions
15+
16+
## Sample Usage
17+
18+
```javascript
19+
// Search codebase for specific content
20+
const searchResult = await codeboltMCP.executeTool(
21+
"codebolt.codebase",
22+
"codebase_search",
23+
{
24+
query: "function authenticate",
25+
fileTypes: ["js", "ts"]
26+
}
27+
);
28+
29+
// Search for MCP tools
30+
const mcpSearchResult = await codeboltMCP.executeTool(
31+
"codebolt.codebase",
32+
"search_mcp_tool",
33+
{
34+
toolName: "browser",
35+
category: "automation"
36+
}
37+
);
38+
```
39+
40+
:::info
41+
This functionality provides semantic search capabilities for understanding and navigating large codebases.
42+
:::

0 commit comments

Comments
 (0)