@bamboocss/mcp 1.12.1 → 1.12.3
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/dist/index.d.cts +47 -0
- package/dist/index.d.mts +47 -0
- package/package.json +5 -5
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
3
|
+
import { BambooContext } from "@bamboocss/node";
|
|
4
|
+
|
|
5
|
+
//#region src/server.d.ts
|
|
6
|
+
interface CreateMcpServerOptions {
|
|
7
|
+
ctx: BambooContext;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an MCP server with all tools registered.
|
|
11
|
+
* This is separated from `startMcpServer` to allow testing with custom transports.
|
|
12
|
+
*/
|
|
13
|
+
declare function createMcpServer(options: CreateMcpServerOptions): McpServer;
|
|
14
|
+
interface StartMcpServerOptions {
|
|
15
|
+
cwd?: string;
|
|
16
|
+
config?: string;
|
|
17
|
+
silent?: boolean;
|
|
18
|
+
transport?: Transport;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Start the MCP server with the given options.
|
|
22
|
+
* By default, uses StdioServerTransport for CLI usage.
|
|
23
|
+
*/
|
|
24
|
+
declare function startMcpServer(options?: StartMcpServerOptions): Promise<McpServer>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/clients.d.ts
|
|
27
|
+
type McpClient = 'claude' | 'cursor' | 'vscode' | 'windsurf' | 'codex';
|
|
28
|
+
interface McpClientConfig {
|
|
29
|
+
name: string;
|
|
30
|
+
label: string;
|
|
31
|
+
configPath: string;
|
|
32
|
+
configKey: 'mcpServers' | 'servers';
|
|
33
|
+
}
|
|
34
|
+
declare const MCP_CLIENTS: Record<McpClient, McpClientConfig>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/init.d.ts
|
|
37
|
+
interface InitMcpConfigOptions {
|
|
38
|
+
cwd?: string;
|
|
39
|
+
clients?: McpClient[];
|
|
40
|
+
}
|
|
41
|
+
declare function initMcpConfig(options?: InitMcpConfigOptions): Promise<{
|
|
42
|
+
client: McpClient;
|
|
43
|
+
path: string;
|
|
44
|
+
created: boolean;
|
|
45
|
+
}[]>;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { type CreateMcpServerOptions, type InitMcpConfigOptions, MCP_CLIENTS, type McpClient, type McpClientConfig, type StartMcpServerOptions, createMcpServer, initMcpConfig, startMcpServer };
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
2
|
+
import { BambooContext } from "@bamboocss/node";
|
|
3
|
+
import { Transport } from "@modelcontextprotocol/sdk/shared/transport.js";
|
|
4
|
+
|
|
5
|
+
//#region src/server.d.ts
|
|
6
|
+
interface CreateMcpServerOptions {
|
|
7
|
+
ctx: BambooContext;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Create an MCP server with all tools registered.
|
|
11
|
+
* This is separated from `startMcpServer` to allow testing with custom transports.
|
|
12
|
+
*/
|
|
13
|
+
declare function createMcpServer(options: CreateMcpServerOptions): McpServer;
|
|
14
|
+
interface StartMcpServerOptions {
|
|
15
|
+
cwd?: string;
|
|
16
|
+
config?: string;
|
|
17
|
+
silent?: boolean;
|
|
18
|
+
transport?: Transport;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Start the MCP server with the given options.
|
|
22
|
+
* By default, uses StdioServerTransport for CLI usage.
|
|
23
|
+
*/
|
|
24
|
+
declare function startMcpServer(options?: StartMcpServerOptions): Promise<McpServer>;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region src/clients.d.ts
|
|
27
|
+
type McpClient = 'claude' | 'cursor' | 'vscode' | 'windsurf' | 'codex';
|
|
28
|
+
interface McpClientConfig {
|
|
29
|
+
name: string;
|
|
30
|
+
label: string;
|
|
31
|
+
configPath: string;
|
|
32
|
+
configKey: 'mcpServers' | 'servers';
|
|
33
|
+
}
|
|
34
|
+
declare const MCP_CLIENTS: Record<McpClient, McpClientConfig>;
|
|
35
|
+
//#endregion
|
|
36
|
+
//#region src/init.d.ts
|
|
37
|
+
interface InitMcpConfigOptions {
|
|
38
|
+
cwd?: string;
|
|
39
|
+
clients?: McpClient[];
|
|
40
|
+
}
|
|
41
|
+
declare function initMcpConfig(options?: InitMcpConfigOptions): Promise<{
|
|
42
|
+
client: McpClient;
|
|
43
|
+
path: string;
|
|
44
|
+
created: boolean;
|
|
45
|
+
}[]>;
|
|
46
|
+
//#endregion
|
|
47
|
+
export { type CreateMcpServerOptions, type InitMcpConfigOptions, MCP_CLIENTS, type McpClient, type McpClientConfig, type StartMcpServerOptions, createMcpServer, initMcpConfig, startMcpServer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/mcp",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.3",
|
|
4
4
|
"description": "MCP server for Bamboo CSS AI assistants",
|
|
5
5
|
"homepage": "https://bamboo-css.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,10 +36,10 @@
|
|
|
36
36
|
"@clack/prompts": "0.11.0",
|
|
37
37
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
38
38
|
"zod": "^4.0.0",
|
|
39
|
-
"@bamboocss/
|
|
40
|
-
"@bamboocss/token-dictionary": "1.12.
|
|
41
|
-
"@bamboocss/
|
|
42
|
-
"@bamboocss/types": "1.12.
|
|
39
|
+
"@bamboocss/logger": "1.12.3",
|
|
40
|
+
"@bamboocss/token-dictionary": "1.12.3",
|
|
41
|
+
"@bamboocss/node": "1.12.3",
|
|
42
|
+
"@bamboocss/types": "1.12.3"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsdown src/index.ts --format=esm,cjs",
|