@jsswift/knowledge-mcp 0.1.0 → 0.1.1
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/server.mjs +2 -2
- package/package.json +1 -1
package/dist/server.mjs
CHANGED
|
@@ -141,8 +141,8 @@ function parseArgs(args) {
|
|
|
141
141
|
var options = parseArgs(process.argv.slice(2));
|
|
142
142
|
var context = options.docs ? { project: options.project, version: "development", docsRoot: options.docs } : await resolveProject(options.project);
|
|
143
143
|
var knowledge = await loadKnowledge(context.docsRoot);
|
|
144
|
-
var server = new McpServer({ name: "jsswift-knowledge", version: "0.1.
|
|
145
|
-
instructions: `Serving JSswift ${context.version} from project ${context.project}. Prefer _.Button for buttons. Use _.Component and _.signal, _.effect, _.computed, _.untracked, _.batch. Search for the feature and read selected contracts before coding. This server covers application development only.`
|
|
144
|
+
var server = new McpServer({ name: "jsswift-knowledge", version: "0.1.1" }, {
|
|
145
|
+
instructions: `Serving JSswift ${context.version} from project ${context.project}. Prefer _.Button for buttons. Use _.Component and _.signal, _.effect, _.computed, _.untracked, _.batch. Search for the feature and read selected contracts before coding. JSswift includes component CSS; read application-rules and prefer documented styling props and theme variables before custom overrides. Fonts and the Tabler catalog are optional; read getting-started for imports. This server covers application development only.`
|
|
146
146
|
});
|
|
147
147
|
var annotations = { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false };
|
|
148
148
|
var jsonResult = (value) => ({ content: [{ type: "text", text: JSON.stringify(value) }], structuredContent: value });
|