@jaypie/mcp 0.3.4 → 0.4.0
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/createMcpServer.d.ts +7 -1
- package/dist/index.js +22 -2088
- package/dist/index.js.map +1 -1
- package/dist/suite.js +1197 -7
- package/dist/suite.js.map +1 -1
- package/package.json +1 -2
- package/release-notes/fabric/0.1.3.md +25 -0
- package/release-notes/fabric/0.1.4.md +42 -0
- package/release-notes/mcp/0.4.0.md +27 -0
- package/release-notes/testkit/1.2.15.md +23 -0
- package/skills/fabric.md +30 -3
- package/dist/aws-B3dW_-bD.js +0 -1202
- package/dist/aws-B3dW_-bD.js.map +0 -1
- package/prompts/Branch_Management.md +0 -34
- package/prompts/Development_Process.md +0 -89
- package/prompts/Jaypie_Agent_Rules.md +0 -110
- package/prompts/Jaypie_Auth0_Express_Mongoose.md +0 -736
- package/prompts/Jaypie_Browser_and_Frontend_Web_Packages.md +0 -18
- package/prompts/Jaypie_CDK_Constructs_and_Patterns.md +0 -430
- package/prompts/Jaypie_CICD_with_GitHub_Actions.md +0 -371
- package/prompts/Jaypie_Commander_CLI_Package.md +0 -166
- package/prompts/Jaypie_Core_Errors_and_Logging.md +0 -39
- package/prompts/Jaypie_DynamoDB_Package.md +0 -774
- package/prompts/Jaypie_Eslint_NPM_Package.md +0 -78
- package/prompts/Jaypie_Express_Package.md +0 -630
- package/prompts/Jaypie_Fabric_Commander.md +0 -411
- package/prompts/Jaypie_Fabric_LLM.md +0 -312
- package/prompts/Jaypie_Fabric_Lambda.md +0 -308
- package/prompts/Jaypie_Fabric_MCP.md +0 -316
- package/prompts/Jaypie_Fabric_Package.md +0 -599
- package/prompts/Jaypie_Fabricator.md +0 -617
- package/prompts/Jaypie_Ideal_Project_Structure.md +0 -78
- package/prompts/Jaypie_Init_CICD_with_GitHub_Actions.md +0 -1186
- package/prompts/Jaypie_Init_Express_on_Lambda.md +0 -115
- package/prompts/Jaypie_Init_Jaypie_CDK_Package.md +0 -35
- package/prompts/Jaypie_Init_Lambda_Package.md +0 -505
- package/prompts/Jaypie_Init_Monorepo_Project.md +0 -44
- package/prompts/Jaypie_Init_Project_Subpackage.md +0 -65
- package/prompts/Jaypie_Legacy_Patterns.md +0 -15
- package/prompts/Jaypie_Llm_Calls.md +0 -449
- package/prompts/Jaypie_Llm_Tools.md +0 -155
- package/prompts/Jaypie_MCP_Package.md +0 -281
- package/prompts/Jaypie_Mocks_and_Testkit.md +0 -137
- package/prompts/Jaypie_Repokit.md +0 -103
- package/prompts/Jaypie_Scrub.md +0 -177
- package/prompts/Jaypie_Streaming.md +0 -467
- package/prompts/Templates_CDK_Subpackage.md +0 -115
- package/prompts/Templates_Express_Subpackage.md +0 -187
- package/prompts/Templates_Project_Monorepo.md +0 -326
- package/prompts/Templates_Project_Subpackage.md +0 -93
- package/prompts/Write_Efficient_Prompt_Guides.md +0 -48
- package/prompts/Write_and_Maintain_Engaging_Readme.md +0 -67
package/package.json
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.1.3
|
|
3
|
+
date: 2025-01-20
|
|
4
|
+
summary: Added FabricMcpServer for multi-service MCP tool registration
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- Added `FabricMcpServer` function for creating MCP servers with multiple services registered as tools
|
|
10
|
+
- Added `isFabricMcpServer` type guard for runtime type checking
|
|
11
|
+
- Added `isService` export from main package for checking if a value is a fabricated service
|
|
12
|
+
- New types: `FabricMcpServerConfig`, `FabricMcpServerServiceEntry`, `FabricMcpServerToolConfig`, `RegisteredTool`
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { fabricService } from "@jaypie/fabric";
|
|
18
|
+
import { FabricMcpServer } from "@jaypie/fabric/mcp";
|
|
19
|
+
|
|
20
|
+
const server = FabricMcpServer({
|
|
21
|
+
name: "my-server",
|
|
22
|
+
version: "1.0.0",
|
|
23
|
+
services: [greetService, echoService],
|
|
24
|
+
});
|
|
25
|
+
```
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.1.4
|
|
3
|
+
date: 2025-01-20
|
|
4
|
+
summary: Added ServiceSuite bridge for MCP servers
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- Added `getServiceFunctions()` method to `ServiceSuite` - returns all registered service functions for transport adapters
|
|
10
|
+
- Added `getServiceFunction(name)` method to `ServiceSuite` - returns a specific service function by name
|
|
11
|
+
- Added `createMcpServerFromSuite()` function in `@jaypie/fabric/mcp` - creates FabricMcpServer from a ServiceSuite
|
|
12
|
+
- New type: `CreateMcpServerFromSuiteConfig`
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
|
|
16
|
+
ServiceSuites now connect directly to MCP servers:
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { createServiceSuite, fabricService } from "@jaypie/fabric";
|
|
20
|
+
import { createMcpServerFromSuite } from "@jaypie/fabric/mcp";
|
|
21
|
+
|
|
22
|
+
const suite = createServiceSuite({ name: "my-suite", version: "1.0.0" });
|
|
23
|
+
suite.register(myService, "category");
|
|
24
|
+
|
|
25
|
+
// Create MCP server from suite
|
|
26
|
+
const server = createMcpServerFromSuite(suite);
|
|
27
|
+
// All suite services are now registered as MCP tools
|
|
28
|
+
|
|
29
|
+
// Access service functions directly
|
|
30
|
+
const functions = suite.getServiceFunctions();
|
|
31
|
+
const specific = suite.getServiceFunction("my-service");
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Architecture
|
|
35
|
+
|
|
36
|
+
This enables a pattern where services are defined once and deployed to multiple transports:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
fabricService() → ServiceSuite → createMcpServerFromSuite() → MCP Server
|
|
40
|
+
→ FabricHttpServer → HTTP/Lambda
|
|
41
|
+
→ FabricRouter → Express
|
|
42
|
+
```
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 0.4.0
|
|
3
|
+
date: 2025-01-20
|
|
4
|
+
summary: Remove deprecated list_prompts and read_prompt tools
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
|
|
11
|
+
- **Removed `list_prompts` tool**: Use `skill("index")` instead
|
|
12
|
+
- **Removed `read_prompt` tool**: Use `skill(alias)` instead
|
|
13
|
+
- **Removed `prompts/` directory from package**: All documentation now lives in `skills/`
|
|
14
|
+
|
|
15
|
+
### Migration
|
|
16
|
+
|
|
17
|
+
If you were using `list_prompts`, replace with:
|
|
18
|
+
```
|
|
19
|
+
skill("index")
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If you were using `read_prompt("Jaypie_Express_Package.md")`, find the equivalent skill alias and use:
|
|
23
|
+
```
|
|
24
|
+
skill("express") // or appropriate alias
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Use `skill("index")` to see all available skills with descriptions.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
---
|
|
2
|
+
version: 1.2.15
|
|
3
|
+
date: 2025-01-20
|
|
4
|
+
summary: Removed vocabulary mocks, updated to fabric types
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Changes
|
|
8
|
+
|
|
9
|
+
- Removed `vocabulary` mock module (vocabulary package deprecated)
|
|
10
|
+
- Updated `IndexableEntity` type import to `IndexableModel` from `@jaypie/fabric`
|
|
11
|
+
- Removed `mock.vocabulary` exports from mock index
|
|
12
|
+
|
|
13
|
+
## Migration
|
|
14
|
+
|
|
15
|
+
If you were using vocabulary mocks, they are no longer needed as the functionality has moved to `@jaypie/fabric`:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
// Before
|
|
19
|
+
import { IndexableEntity } from "@jaypie/testkit/mock";
|
|
20
|
+
|
|
21
|
+
// After
|
|
22
|
+
import { IndexableModel } from "@jaypie/fabric";
|
|
23
|
+
```
|
package/skills/fabric.md
CHANGED
|
@@ -54,10 +54,18 @@ program.addCommand(fabricCommand(greetService));
|
|
|
54
54
|
### MCP Tool
|
|
55
55
|
|
|
56
56
|
```typescript
|
|
57
|
-
import {
|
|
57
|
+
import { fabricMcp, FabricMcpServer } from "@jaypie/fabric/mcp";
|
|
58
58
|
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
// Single service registration
|
|
60
|
+
fabricMcp({ service: greetService, server });
|
|
61
|
+
|
|
62
|
+
// Multi-service server (preferred)
|
|
63
|
+
const server = FabricMcpServer({
|
|
64
|
+
name: "my-server",
|
|
65
|
+
version: "1.0.0",
|
|
66
|
+
services: [greetService, searchService],
|
|
67
|
+
});
|
|
68
|
+
// Available as MCP tools "greet" and "search"
|
|
61
69
|
```
|
|
62
70
|
|
|
63
71
|
### LLM Tool
|
|
@@ -97,6 +105,25 @@ const suite = createServiceSuite({
|
|
|
97
105
|
|
|
98
106
|
suite.register(userService, "users");
|
|
99
107
|
suite.register(userListService, "users");
|
|
108
|
+
|
|
109
|
+
// Access services
|
|
110
|
+
suite.services; // ServiceMeta[] - metadata for listing
|
|
111
|
+
suite.getServiceFunctions(); // Service[] - actual functions
|
|
112
|
+
suite.execute("user_get", { id }); // Direct execution
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Suite to MCP Server
|
|
116
|
+
|
|
117
|
+
Connect suites directly to MCP:
|
|
118
|
+
|
|
119
|
+
```typescript
|
|
120
|
+
import { createMcpServerFromSuite } from "@jaypie/fabric/mcp";
|
|
121
|
+
|
|
122
|
+
const server = createMcpServerFromSuite(suite, {
|
|
123
|
+
name: "users-api", // Optional override
|
|
124
|
+
version: "1.0.0",
|
|
125
|
+
});
|
|
126
|
+
// All suite services now available as MCP tools
|
|
100
127
|
```
|
|
101
128
|
|
|
102
129
|
## Input Validation
|