@kubb/plugin-mcp 5.0.0-beta.42 → 5.0.0-beta.56

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/src/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ast, Exclude, Generator, Group, Include, Output, Override, PluginFactoryOptions, Resolver } from '@kubb/core'
1
+ import type { ast, Exclude, Generator, Group, Include, Output, OutputOptions, Override, PluginFactoryOptions, Resolver } from '@kubb/core'
2
2
  import type { ClientImportPath, PluginClient } from '@kubb/plugin-client'
3
3
 
4
4
  /**
@@ -22,13 +22,13 @@ export type ResolverMcp = Resolver & {
22
22
  resolveHandlerName(this: ResolverMcp, node: ast.OperationNode): string
23
23
  }
24
24
 
25
- export type Options = {
26
- /**
27
- * Where the generated MCP tool handlers are written and how they are exported.
28
- *
29
- * @default { path: 'mcp', barrel: { type: 'named' } }
30
- */
31
- output?: Output
25
+ /**
26
+ * Where the generated MCP tool handlers are written and how they are exported, plus the optional
27
+ * `group` strategy. The `group` option organizes `output.mode: 'directory'` output into per-tag or per-path subdirectories.
28
+ *
29
+ * @default { path: 'mcp', barrel: { type: 'named' } }
30
+ */
31
+ export type Options = OutputOptions & {
32
32
  /**
33
33
  * HTTP client used by each MCP handler to call the underlying API. Mirrors a
34
34
  * subset of `pluginClient` options.
@@ -41,10 +41,6 @@ export type Options = {
41
41
  * @note Must match the value of `paramsCasing` on `@kubb/plugin-ts`.
42
42
  */
43
43
  paramsCasing?: 'camelcase'
44
- /**
45
- * Split generated files into subfolders based on the operation's tag.
46
- */
47
- group?: Group
48
44
  /**
49
45
  * Skip operations matching at least one entry in the list.
50
46
  */