@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.
Files changed (52) hide show
  1. package/dist/createMcpServer.d.ts +7 -1
  2. package/dist/index.js +22 -2088
  3. package/dist/index.js.map +1 -1
  4. package/dist/suite.js +1197 -7
  5. package/dist/suite.js.map +1 -1
  6. package/package.json +1 -2
  7. package/release-notes/fabric/0.1.3.md +25 -0
  8. package/release-notes/fabric/0.1.4.md +42 -0
  9. package/release-notes/mcp/0.4.0.md +27 -0
  10. package/release-notes/testkit/1.2.15.md +23 -0
  11. package/skills/fabric.md +30 -3
  12. package/dist/aws-B3dW_-bD.js +0 -1202
  13. package/dist/aws-B3dW_-bD.js.map +0 -1
  14. package/prompts/Branch_Management.md +0 -34
  15. package/prompts/Development_Process.md +0 -89
  16. package/prompts/Jaypie_Agent_Rules.md +0 -110
  17. package/prompts/Jaypie_Auth0_Express_Mongoose.md +0 -736
  18. package/prompts/Jaypie_Browser_and_Frontend_Web_Packages.md +0 -18
  19. package/prompts/Jaypie_CDK_Constructs_and_Patterns.md +0 -430
  20. package/prompts/Jaypie_CICD_with_GitHub_Actions.md +0 -371
  21. package/prompts/Jaypie_Commander_CLI_Package.md +0 -166
  22. package/prompts/Jaypie_Core_Errors_and_Logging.md +0 -39
  23. package/prompts/Jaypie_DynamoDB_Package.md +0 -774
  24. package/prompts/Jaypie_Eslint_NPM_Package.md +0 -78
  25. package/prompts/Jaypie_Express_Package.md +0 -630
  26. package/prompts/Jaypie_Fabric_Commander.md +0 -411
  27. package/prompts/Jaypie_Fabric_LLM.md +0 -312
  28. package/prompts/Jaypie_Fabric_Lambda.md +0 -308
  29. package/prompts/Jaypie_Fabric_MCP.md +0 -316
  30. package/prompts/Jaypie_Fabric_Package.md +0 -599
  31. package/prompts/Jaypie_Fabricator.md +0 -617
  32. package/prompts/Jaypie_Ideal_Project_Structure.md +0 -78
  33. package/prompts/Jaypie_Init_CICD_with_GitHub_Actions.md +0 -1186
  34. package/prompts/Jaypie_Init_Express_on_Lambda.md +0 -115
  35. package/prompts/Jaypie_Init_Jaypie_CDK_Package.md +0 -35
  36. package/prompts/Jaypie_Init_Lambda_Package.md +0 -505
  37. package/prompts/Jaypie_Init_Monorepo_Project.md +0 -44
  38. package/prompts/Jaypie_Init_Project_Subpackage.md +0 -65
  39. package/prompts/Jaypie_Legacy_Patterns.md +0 -15
  40. package/prompts/Jaypie_Llm_Calls.md +0 -449
  41. package/prompts/Jaypie_Llm_Tools.md +0 -155
  42. package/prompts/Jaypie_MCP_Package.md +0 -281
  43. package/prompts/Jaypie_Mocks_and_Testkit.md +0 -137
  44. package/prompts/Jaypie_Repokit.md +0 -103
  45. package/prompts/Jaypie_Scrub.md +0 -177
  46. package/prompts/Jaypie_Streaming.md +0 -467
  47. package/prompts/Templates_CDK_Subpackage.md +0 -115
  48. package/prompts/Templates_Express_Subpackage.md +0 -187
  49. package/prompts/Templates_Project_Monorepo.md +0 -326
  50. package/prompts/Templates_Project_Subpackage.md +0 -93
  51. package/prompts/Write_Efficient_Prompt_Guides.md +0 -48
  52. package/prompts/Write_and_Maintain_Engaging_Readme.md +0 -67
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jaypie/mcp",
3
- "version": "0.3.4",
3
+ "version": "0.4.0",
4
4
  "description": "Jaypie MCP",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,7 +26,6 @@
26
26
  },
27
27
  "files": [
28
28
  "dist",
29
- "prompts",
30
29
  "release-notes",
31
30
  "skills"
32
31
  ],
@@ -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 { fabricMcpTool } from "@jaypie/fabric";
57
+ import { fabricMcp, FabricMcpServer } from "@jaypie/fabric/mcp";
58
58
 
59
- server.tool(...fabricMcpTool(greetService));
60
- // Available as MCP tool "greet"
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