@agiflowai/scaffold-mcp 1.0.23 → 1.0.24
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/cli.cjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.mts +1 -0
- package/dist/index.mjs +1 -1
- package/dist/{src-ppHF7rzK.cjs → src-B4ixzARA.cjs} +51 -9
- package/dist/{src-DXfJFUpv.mjs → src-COn3FXEz.mjs} +51 -9
- package/package.json +6 -6
package/dist/cli.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-CkIkgP_u.cjs');
|
|
3
|
-
const require_src = require('./src-
|
|
3
|
+
const require_src = require('./src-B4ixzARA.cjs');
|
|
4
4
|
const require_tools = require('./tools-CC-lrhQ8.cjs');
|
|
5
5
|
let __agiflowai_aicode_utils = require("@agiflowai/aicode-utils");
|
|
6
6
|
let node_path = require("node:path");
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as createServer, i as StdioTransportHandler, n as HttpTransportHandler, o as version, r as SseTransportHandler, t as TransportMode } from "./src-
|
|
2
|
+
import { a as createServer, i as StdioTransportHandler, n as HttpTransportHandler, o as version, r as SseTransportHandler, t as TransportMode } from "./src-COn3FXEz.mjs";
|
|
3
3
|
import { n as ScaffoldingMethodsService, s as FileSystemService } from "./ListScaffoldingMethodsTool-Cx-0gpV3.mjs";
|
|
4
4
|
import { l as BoilerplateService } from "./tools-DtGTxmf-.mjs";
|
|
5
5
|
import { ProjectConfigResolver, TemplatesManagerService, icons, messages, print, sections } from "@agiflowai/aicode-utils";
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_ListScaffoldingMethodsTool = require('./ListScaffoldingMethodsTool-CkIkgP_u.cjs');
|
|
2
|
-
const require_src = require('./src-
|
|
2
|
+
const require_src = require('./src-B4ixzARA.cjs');
|
|
3
3
|
const require_tools = require('./tools-CC-lrhQ8.cjs');
|
|
4
4
|
|
|
5
5
|
exports.BoilerplateGeneratorService = require_tools.BoilerplateGeneratorService;
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createServer, i as StdioTransportHandler, n as HttpTransportHandler, r as SseTransportHandler, t as TransportMode } from "./src-
|
|
1
|
+
import { a as createServer, i as StdioTransportHandler, n as HttpTransportHandler, r as SseTransportHandler, t as TransportMode } from "./src-COn3FXEz.mjs";
|
|
2
2
|
import { a as ScaffoldProcessingService, i as ScaffoldService, l as TemplateService, n as ScaffoldingMethodsService, o as ScaffoldConfigLoader, r as VariableReplacementService, s as FileSystemService, t as ListScaffoldingMethodsTool } from "./ListScaffoldingMethodsTool-Cx-0gpV3.mjs";
|
|
3
3
|
import { a as GenerateFeatureScaffoldTool, c as ScaffoldGeneratorService, i as ListBoilerplatesTool, l as BoilerplateService, n as UseScaffoldMethodTool, o as GenerateBoilerplateTool, r as UseBoilerplateTool, s as GenerateBoilerplateFileTool, t as WriteToFileTool, u as BoilerplateGeneratorService } from "./tools-DtGTxmf-.mjs";
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ let node_crypto = require("node:crypto");
|
|
|
12
12
|
let __modelcontextprotocol_sdk_server_streamableHttp_js = require("@modelcontextprotocol/sdk/server/streamableHttp.js");
|
|
13
13
|
|
|
14
14
|
//#region package.json
|
|
15
|
-
var version = "1.0.
|
|
15
|
+
var version = "1.0.23";
|
|
16
16
|
|
|
17
17
|
//#endregion
|
|
18
18
|
//#region src/instructions/server.md?raw
|
|
@@ -331,6 +331,16 @@ var SyncTemplatePatternsPrompt = class SyncTemplatePatternsPrompt {
|
|
|
331
331
|
|
|
332
332
|
//#endregion
|
|
333
333
|
//#region src/server/index.ts
|
|
334
|
+
const TOOL_CAPABILITIES_META_KEY = "agiflowai/capabilities";
|
|
335
|
+
function withCapabilities(definition, capabilities) {
|
|
336
|
+
return {
|
|
337
|
+
...definition,
|
|
338
|
+
_meta: {
|
|
339
|
+
...definition._meta,
|
|
340
|
+
[TOOL_CAPABILITIES_META_KEY]: capabilities
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
}
|
|
334
344
|
function createServer(options = {}) {
|
|
335
345
|
const { adminEnabled = false, isMonolith = false, promptAsSkill = false, fallbackTool, fallbackToolConfig } = options;
|
|
336
346
|
const templatesPath = __agiflowai_aicode_utils.TemplatesManagerService.findTemplatesPathSync();
|
|
@@ -382,18 +392,50 @@ function createServer(options = {}) {
|
|
|
382
392
|
server.setRequestHandler(__modelcontextprotocol_sdk_types_js.ListToolsRequestSchema, async () => {
|
|
383
393
|
try {
|
|
384
394
|
const tools = [
|
|
385
|
-
listScaffoldingMethodsTool.getDefinition(),
|
|
386
|
-
|
|
387
|
-
|
|
395
|
+
withCapabilities(listScaffoldingMethodsTool.getDefinition(), [
|
|
396
|
+
"scaffolding",
|
|
397
|
+
"templates",
|
|
398
|
+
"feature-discovery"
|
|
399
|
+
]),
|
|
400
|
+
withCapabilities(useScaffoldMethodTool.getDefinition(), [
|
|
401
|
+
"scaffolding",
|
|
402
|
+
"code-generation",
|
|
403
|
+
"feature-implementation"
|
|
404
|
+
]),
|
|
405
|
+
withCapabilities(writeToFileTool.getDefinition(), [
|
|
406
|
+
"filesystem",
|
|
407
|
+
"file-writing",
|
|
408
|
+
"code-generation"
|
|
409
|
+
])
|
|
388
410
|
];
|
|
389
411
|
if (!isMonolith) {
|
|
390
|
-
if (listBoilerplatesTool) tools.unshift(listBoilerplatesTool.getDefinition()
|
|
391
|
-
|
|
412
|
+
if (listBoilerplatesTool) tools.unshift(withCapabilities(listBoilerplatesTool.getDefinition(), [
|
|
413
|
+
"boilerplates",
|
|
414
|
+
"templates",
|
|
415
|
+
"project-discovery"
|
|
416
|
+
]));
|
|
417
|
+
if (useBoilerplateTool) tools.splice(1, 0, withCapabilities(useBoilerplateTool.getDefinition(), [
|
|
418
|
+
"boilerplates",
|
|
419
|
+
"project-generation",
|
|
420
|
+
"code-generation"
|
|
421
|
+
]));
|
|
392
422
|
}
|
|
393
423
|
if (adminEnabled) {
|
|
394
|
-
if (generateBoilerplateTool) tools.push(generateBoilerplateTool.getDefinition()
|
|
395
|
-
|
|
396
|
-
|
|
424
|
+
if (generateBoilerplateTool) tools.push(withCapabilities(generateBoilerplateTool.getDefinition(), [
|
|
425
|
+
"boilerplates",
|
|
426
|
+
"template-authoring",
|
|
427
|
+
"admin"
|
|
428
|
+
]));
|
|
429
|
+
if (generateBoilerplateFileTool) tools.push(withCapabilities(generateBoilerplateFileTool.getDefinition(), [
|
|
430
|
+
"template-authoring",
|
|
431
|
+
"file-generation",
|
|
432
|
+
"admin"
|
|
433
|
+
]));
|
|
434
|
+
if (generateFeatureScaffoldTool) tools.push(withCapabilities(generateFeatureScaffoldTool.getDefinition(), [
|
|
435
|
+
"scaffolding",
|
|
436
|
+
"template-authoring",
|
|
437
|
+
"admin"
|
|
438
|
+
]));
|
|
397
439
|
}
|
|
398
440
|
return { tools };
|
|
399
441
|
} catch (error) {
|
|
@@ -11,7 +11,7 @@ import { randomUUID } from "node:crypto";
|
|
|
11
11
|
import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
|
|
12
12
|
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "1.0.
|
|
14
|
+
var version = "1.0.23";
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/instructions/server.md?raw
|
|
@@ -330,6 +330,16 @@ var SyncTemplatePatternsPrompt = class SyncTemplatePatternsPrompt {
|
|
|
330
330
|
|
|
331
331
|
//#endregion
|
|
332
332
|
//#region src/server/index.ts
|
|
333
|
+
const TOOL_CAPABILITIES_META_KEY = "agiflowai/capabilities";
|
|
334
|
+
function withCapabilities(definition, capabilities) {
|
|
335
|
+
return {
|
|
336
|
+
...definition,
|
|
337
|
+
_meta: {
|
|
338
|
+
...definition._meta,
|
|
339
|
+
[TOOL_CAPABILITIES_META_KEY]: capabilities
|
|
340
|
+
}
|
|
341
|
+
};
|
|
342
|
+
}
|
|
333
343
|
function createServer(options = {}) {
|
|
334
344
|
const { adminEnabled = false, isMonolith = false, promptAsSkill = false, fallbackTool, fallbackToolConfig } = options;
|
|
335
345
|
const templatesPath = TemplatesManagerService.findTemplatesPathSync();
|
|
@@ -381,18 +391,50 @@ function createServer(options = {}) {
|
|
|
381
391
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
382
392
|
try {
|
|
383
393
|
const tools = [
|
|
384
|
-
listScaffoldingMethodsTool.getDefinition(),
|
|
385
|
-
|
|
386
|
-
|
|
394
|
+
withCapabilities(listScaffoldingMethodsTool.getDefinition(), [
|
|
395
|
+
"scaffolding",
|
|
396
|
+
"templates",
|
|
397
|
+
"feature-discovery"
|
|
398
|
+
]),
|
|
399
|
+
withCapabilities(useScaffoldMethodTool.getDefinition(), [
|
|
400
|
+
"scaffolding",
|
|
401
|
+
"code-generation",
|
|
402
|
+
"feature-implementation"
|
|
403
|
+
]),
|
|
404
|
+
withCapabilities(writeToFileTool.getDefinition(), [
|
|
405
|
+
"filesystem",
|
|
406
|
+
"file-writing",
|
|
407
|
+
"code-generation"
|
|
408
|
+
])
|
|
387
409
|
];
|
|
388
410
|
if (!isMonolith) {
|
|
389
|
-
if (listBoilerplatesTool) tools.unshift(listBoilerplatesTool.getDefinition()
|
|
390
|
-
|
|
411
|
+
if (listBoilerplatesTool) tools.unshift(withCapabilities(listBoilerplatesTool.getDefinition(), [
|
|
412
|
+
"boilerplates",
|
|
413
|
+
"templates",
|
|
414
|
+
"project-discovery"
|
|
415
|
+
]));
|
|
416
|
+
if (useBoilerplateTool) tools.splice(1, 0, withCapabilities(useBoilerplateTool.getDefinition(), [
|
|
417
|
+
"boilerplates",
|
|
418
|
+
"project-generation",
|
|
419
|
+
"code-generation"
|
|
420
|
+
]));
|
|
391
421
|
}
|
|
392
422
|
if (adminEnabled) {
|
|
393
|
-
if (generateBoilerplateTool) tools.push(generateBoilerplateTool.getDefinition()
|
|
394
|
-
|
|
395
|
-
|
|
423
|
+
if (generateBoilerplateTool) tools.push(withCapabilities(generateBoilerplateTool.getDefinition(), [
|
|
424
|
+
"boilerplates",
|
|
425
|
+
"template-authoring",
|
|
426
|
+
"admin"
|
|
427
|
+
]));
|
|
428
|
+
if (generateBoilerplateFileTool) tools.push(withCapabilities(generateBoilerplateFileTool.getDefinition(), [
|
|
429
|
+
"template-authoring",
|
|
430
|
+
"file-generation",
|
|
431
|
+
"admin"
|
|
432
|
+
]));
|
|
433
|
+
if (generateFeatureScaffoldTool) tools.push(withCapabilities(generateFeatureScaffoldTool.getDefinition(), [
|
|
434
|
+
"scaffolding",
|
|
435
|
+
"template-authoring",
|
|
436
|
+
"admin"
|
|
437
|
+
]));
|
|
396
438
|
}
|
|
397
439
|
return { tools };
|
|
398
440
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agiflowai/scaffold-mcp",
|
|
3
3
|
"description": "MCP server for scaffolding applications with boilerplate templates",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.24",
|
|
5
5
|
"license": "AGPL-3.0",
|
|
6
6
|
"author": "AgiflowIO",
|
|
7
7
|
"repository": {
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"express": "^4.21.2",
|
|
45
45
|
"js-yaml": "4.1.1",
|
|
46
46
|
"liquidjs": "10.21.1",
|
|
47
|
-
"minimatch": "^10.2.
|
|
47
|
+
"minimatch": "^10.2.3",
|
|
48
48
|
"pino": "^10.0.0",
|
|
49
49
|
"pino-pretty": "^13.1.1",
|
|
50
50
|
"zod": "3.25.76",
|
|
51
|
-
"@agiflowai/aicode-utils": "1.0.
|
|
52
|
-
"@agiflowai/
|
|
53
|
-
"@agiflowai/
|
|
54
|
-
"@agiflowai/hooks-adapter": "0.0.
|
|
51
|
+
"@agiflowai/aicode-utils": "1.0.17",
|
|
52
|
+
"@agiflowai/architect-mcp": "1.0.22",
|
|
53
|
+
"@agiflowai/coding-agent-bridge": "1.0.20",
|
|
54
|
+
"@agiflowai/hooks-adapter": "0.0.18"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@types/express": "^5.0.0",
|