@bamboocss/mcp 1.12.2 → 1.13.1
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/LICENSE.md +1 -0
- package/dist/index.d.cts +47 -0
- package/dist/index.d.mts +47 -0
- package/package.json +7 -7
package/LICENSE.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
3
|
Copyright (c) 2023 Segun Adebayo
|
|
4
|
+
Copyright (c) 2026 Gajus Kuizinas
|
|
4
5
|
|
|
5
6
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
|
6
7
|
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bamboocss/mcp",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.1",
|
|
4
4
|
"description": "MCP server for Bamboo CSS AI assistants",
|
|
5
|
-
"homepage": "https://
|
|
5
|
+
"homepage": "https://bamboocss.com",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"author": "
|
|
7
|
+
"author": "Gajus Kuizinas <gajus@gajus.com>",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
10
|
"url": "git+https://github.com/bamboocss/bamboo.git",
|
|
@@ -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/logger": "1.
|
|
40
|
-
"@bamboocss/
|
|
41
|
-
"@bamboocss/
|
|
42
|
-
"@bamboocss/
|
|
39
|
+
"@bamboocss/logger": "1.13.1",
|
|
40
|
+
"@bamboocss/node": "1.13.1",
|
|
41
|
+
"@bamboocss/token-dictionary": "1.13.1",
|
|
42
|
+
"@bamboocss/types": "1.13.1"
|
|
43
43
|
},
|
|
44
44
|
"scripts": {
|
|
45
45
|
"build": "tsdown src/index.ts --format=esm,cjs",
|