Commit 8acc5ab
committed
feat: enhance plugin system with new lifecycle hooks and utilities
- Introduced a new `plugin-types.ts` file to define plugin interfaces and context types.
- Added utility functions in `plugin-utils.ts` for plugin management, including validation and loading.
- Refactored existing plugins to use the new plugin system, including `config-plugin.ts`, `visibility-plugin.ts`, and `logging-plugin.ts`.
- Updated the `ComposableMCPServer` class to support new plugin lifecycle hooks such as `configureServer`, `transformTool`, and `composeEnd`.
- Improved the `loadPlugin` function to handle query parameters for dynamic plugin configuration.
- Enhanced the `large-result` and `search-tool` plugins to utilize the new plugin structure and lifecycle methods.
- Updated the `set-up-mcp-compose.ts` to reflect changes in plugin loading and configuration.1 parent f0a9b2c commit 8acc5ab
File tree
16 files changed
+455
-264
lines changed- packages/core
- examples
- src
- plugins
- built-in
- utils/common
16 files changed
+455
-264
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
| |||
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
42 | | - | |
| 46 | + | |
43 | 47 | | |
44 | | - | |
| 48 | + | |
45 | 49 | | |
46 | 50 | | |
47 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | 49 | | |
0 commit comments