@mcp-tool-kit/shared 0.0.10 → 0.0.12
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/README.md +32 -20
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,21 +47,27 @@ Create an MCP server that provides tools, resources, and prompts for MCP clients
|
|
|
47
47
|
The generated server project will have the following structure:
|
|
48
48
|
|
|
49
49
|
├── src/
|
|
50
|
-
│ ├── tools/
|
|
51
|
-
│ │ ├── index.ts
|
|
52
|
-
│ │ └── register*.ts
|
|
53
|
-
│ ├── resources/
|
|
54
|
-
│ │ └── index.ts
|
|
55
|
-
│ ├── prompts/
|
|
56
|
-
│ │ └── index.ts
|
|
57
|
-
│ ├── services/
|
|
58
|
-
│ │ ├── stdio.ts
|
|
59
|
-
│ │ └── web.ts
|
|
60
|
-
│ └── index.ts
|
|
61
|
-
├── tests/
|
|
62
|
-
├── scripts/
|
|
63
|
-
├── .github/
|
|
64
|
-
├── .husky/
|
|
50
|
+
│ ├── tools/ # MCP tools implementation
|
|
51
|
+
│ │ ├── index.ts # Tools registration
|
|
52
|
+
│ │ └── register*.ts # Individual tool implementations
|
|
53
|
+
│ ├── resources/ # MCP resources implementation
|
|
54
|
+
│ │ └── index.ts # Resources registration
|
|
55
|
+
│ ├── prompts/ # MCP prompts implementation
|
|
56
|
+
│ │ └── index.ts # Prompts registration
|
|
57
|
+
│ ├── services/ # Server implementations
|
|
58
|
+
│ │ ├── stdio.ts # STDIO transport implementation
|
|
59
|
+
│ │ └── web.ts # Streamable HTTP and SSE transport implementation
|
|
60
|
+
│ └── index.ts # Entry point
|
|
61
|
+
├── tests/ # Test files (optional)
|
|
62
|
+
├── scripts/ # Build and development scripts
|
|
63
|
+
├── .github/ # GitHub Actions workflows (optional)
|
|
64
|
+
├── .husky/ # Git hooks (optional)
|
|
65
|
+
├── .prettierrc # Prettier configuration (optional)
|
|
66
|
+
├── changelog-option.js # Conventional changelog config (optional)
|
|
67
|
+
├── commitlint.config.js # Commit message lint rules (optional)
|
|
68
|
+
├── eslint.config.js # ESLint configuration (optional)
|
|
69
|
+
├── lint-staged.config.js # Lint-staged configuration (optional)
|
|
70
|
+
├── vitest.*.ts # Vitest configuration (optional)
|
|
65
71
|
└── package.json
|
|
66
72
|
```
|
|
67
73
|
|
|
@@ -84,11 +90,17 @@ Create an MCP client that connects to MCP servers and uses their tools, resource
|
|
|
84
90
|
The generated client project will have the following structure:
|
|
85
91
|
|
|
86
92
|
├── src/
|
|
87
|
-
│ └── index.ts
|
|
88
|
-
├── tests/
|
|
89
|
-
├── scripts/
|
|
90
|
-
├── .github/
|
|
91
|
-
├── .husky/
|
|
93
|
+
│ └── index.ts # Entry point with transport implementations
|
|
94
|
+
├── tests/ # Test files (optional)
|
|
95
|
+
├── scripts/ # Build and development scripts
|
|
96
|
+
├── .github/ # GitHub Actions workflows (optional)
|
|
97
|
+
├── .husky/ # Git hooks (optional)
|
|
98
|
+
├── .prettierrc # Prettier configuration (optional)
|
|
99
|
+
├── changelog-option.js # Conventional changelog config (optional)
|
|
100
|
+
├── commitlint.config.js # Commit message lint rules (optional)
|
|
101
|
+
├── eslint.config.js # ESLint configuration (optional)
|
|
102
|
+
├── lint-staged.config.js # Lint-staged configuration (optional)
|
|
103
|
+
├── vitest.*.ts # Vitest configuration (optional)
|
|
92
104
|
└── package.json
|
|
93
105
|
```
|
|
94
106
|
|