@schemyx/mcp 0.1.8 → 0.1.9

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.
Files changed (67) hide show
  1. package/README.md +6 -40
  2. package/dist/main.js +1 -6
  3. package/dist/main.js.map +1 -1
  4. package/dist/server/index.d.ts +2 -7
  5. package/dist/server/index.js +14 -105
  6. package/dist/server/index.js.map +1 -1
  7. package/dist/server/tool-definitions.d.ts +1 -13
  8. package/dist/server/tool-definitions.js +3 -173
  9. package/dist/server/tool-definitions.js.map +1 -1
  10. package/package.json +2 -2
  11. package/dist/backend-client.d.ts +0 -1
  12. package/dist/backend-client.js +0 -18
  13. package/dist/backend-client.js.map +0 -1
  14. package/dist/client/backend-client.d.ts +0 -17
  15. package/dist/client/backend-client.js +0 -97
  16. package/dist/client/backend-client.js.map +0 -1
  17. package/dist/client/local-theme-source.d.ts +0 -19
  18. package/dist/client/local-theme-source.js +0 -737
  19. package/dist/client/local-theme-source.js.map +0 -1
  20. package/dist/client/mcp-client.d.ts +0 -15
  21. package/dist/client/mcp-client.js +0 -46
  22. package/dist/client/mcp-client.js.map +0 -1
  23. package/dist/config.d.ts +0 -1
  24. package/dist/config.js +0 -18
  25. package/dist/config.js.map +0 -1
  26. package/dist/local-theme-source.d.ts +0 -1
  27. package/dist/local-theme-source.js +0 -18
  28. package/dist/local-theme-source.js.map +0 -1
  29. package/dist/mcp-client.d.ts +0 -1
  30. package/dist/mcp-client.js +0 -18
  31. package/dist/mcp-client.js.map +0 -1
  32. package/dist/prompts.d.ts +0 -1
  33. package/dist/prompts.js +0 -18
  34. package/dist/prompts.js.map +0 -1
  35. package/dist/server/prompts.d.ts +0 -7
  36. package/dist/server/prompts.js +0 -55
  37. package/dist/server/prompts.js.map +0 -1
  38. package/dist/server.d.ts +0 -4
  39. package/dist/server.js +0 -163
  40. package/dist/server.js.map +0 -1
  41. package/dist/shared/config.d.ts +0 -2
  42. package/dist/shared/config.js +0 -59
  43. package/dist/shared/config.js.map +0 -1
  44. package/dist/shared/types.d.ts +0 -119
  45. package/dist/shared/types.js +0 -3
  46. package/dist/shared/types.js.map +0 -1
  47. package/dist/shared/uri.d.ts +0 -6
  48. package/dist/shared/uri.js +0 -24
  49. package/dist/shared/uri.js.map +0 -1
  50. package/dist/style-recipes.d.ts +0 -1
  51. package/dist/style-recipes.js +0 -18
  52. package/dist/style-recipes.js.map +0 -1
  53. package/dist/text.d.ts +0 -1
  54. package/dist/text.js +0 -18
  55. package/dist/text.js.map +0 -1
  56. package/dist/theme/style-recipes.d.ts +0 -26
  57. package/dist/theme/style-recipes.js +0 -129
  58. package/dist/theme/style-recipes.js.map +0 -1
  59. package/dist/tool-definitions.d.ts +0 -1
  60. package/dist/tool-definitions.js +0 -18
  61. package/dist/tool-definitions.js.map +0 -1
  62. package/dist/types.d.ts +0 -1
  63. package/dist/types.js +0 -18
  64. package/dist/types.js.map +0 -1
  65. package/dist/uri.d.ts +0 -1
  66. package/dist/uri.js +0 -18
  67. package/dist/uri.js.map +0 -1
package/README.md CHANGED
@@ -1,24 +1,17 @@
1
1
  # @schemyx/mcp
2
2
 
3
- Local stdio MCP server for reading Schemyx project configs, Theme Forge artifacts, target-stack guidance, and implementation notes.
3
+ Local stdio MCP server for building and reading Schemyx local codebase context.
4
4
 
5
- The server supports both local theme files and hosted Schemyx configs. By default it checks for local files first, then falls back to the hosted Schemyx API.
5
+ This agent-facing MCP exposes only local codebase scan tools. It does not expose saved Schemyx config registry tools, Theme Forge files, or local theme exports, so agents cannot accidentally use config from a different project.
6
6
 
7
7
  ## Usage
8
8
 
9
- Local files only:
9
+ From the project an agent should work on:
10
10
 
11
11
  ```bash
12
- # From a repo that contains ./schemyx-ui-theme/themeforge.json
13
12
  npx -y @schemyx/mcp
14
13
  ```
15
14
 
16
- Hosted Schemyx:
17
-
18
- ```bash
19
- SCHEMYX_API_KEY=skx_live_replace_me npx -y @schemyx/mcp
20
- ```
21
-
22
15
  MCP client config:
23
16
 
24
17
  ```json
@@ -26,10 +19,7 @@ MCP client config:
26
19
  "mcpServers": {
27
20
  "schemyx": {
28
21
  "command": "npx",
29
- "args": ["-y", "@schemyx/mcp@latest"],
30
- "env": {
31
- "SCHEMYX_API_KEY": "$SCHEMYX_API_KEY"
32
- }
22
+ "args": ["-y", "@schemyx/mcp@latest"]
33
23
  }
34
24
  }
35
25
  }
@@ -37,29 +27,7 @@ MCP client config:
37
27
 
38
28
  ## Environment
39
29
 
40
- - `SCHEMYX_API_KEY`: Schemyx API key with `mcp:read` or `configs:read`; required only when using hosted configs
41
- - `SCHEMYX_API_URL`: optional API base URL, defaults to `https://api.schemyx.com`
42
- - `SCHEMYX_PROJECT_ID`: optional project filter
43
- - `SCHEMYX_CONFIG_ID`: optional config filter
44
- - `SCHEMYX_MCP_CACHE_TTL_MS`: optional discovery cache TTL, defaults to `10000`
45
- - `SCHEMYX_MCP_SOURCE`: optional source mode, `auto`, `local`, or `remote`; defaults to `auto`
46
- - `SCHEMYX_THEME_DIR`: optional local theme directory containing `themeforge.json`
47
- - `SCHEMYX_MCP_EXPOSE_SAVED_CONFIG_TOOLS`: set to `true` only for intentional saved Theme Forge/config registry workflows. Defaults to hidden so local codebase generation starts from `schemyx_prepare_task`.
48
- - `SCHEMYX_MCP_CWD`: optional cwd used for local theme discovery
49
-
50
- ## Local Theme Discovery
51
-
52
- In `auto` mode, the MCP server searches upward from the current working directory and uses the first local theme it finds:
53
-
54
- 1. `./schemyx-ui-theme/themeforge.json`
55
- 2. `./.schemyx/theme/themeforge.json`
56
- 3. `./themeforge.json`
57
-
58
- If none exists, it uses the hosted API.
59
-
60
- Local discovery exposes the compact style index (`agent-style-index.json`), agent style contract (`agent-style-contract.json`), standard Theme Forge files, all current target-stack artifacts (`tailwind-theme.css`, `shadcn-globals.css`, `mui-theme.ts`, `chakra-system.ts`, `mantine-theme.ts`, `styled-theme.ts`, `theme.scss`, `tokens.json`, `react-native-theme.ts`), stack helper files placed next to `themeforge.json` such as `components.json` or `tailwind.config.ts`, and any extra safe relative paths listed in `schemyx-theme-bundle.manifest.json`.
61
-
62
- For targeted lookup, use `schemyx_list_style_recipes` and `schemyx_get_style_recipe`. Example: `schemyx_get_style_recipe` with `{ "key": "ui.input" }` returns only the input recipe and direct dependencies.
30
+ - `SCHEMYX_MCP_CWD`: optional project root used when a tool call does not pass `rootPath`
63
31
 
64
32
  ## Local Codebase Scan
65
33
 
@@ -100,7 +68,7 @@ For generation or editing, start with `schemyx_prepare_task`:
100
68
 
101
69
  `schemyx_prepare_task` verifies or creates the local scan, resolves the task context pack, includes required source-backed reads through Schemyx, and returns the no-invention policy agents should follow before writing code.
102
70
 
103
- Saved Theme Forge/config registry tools are hidden by default because they are not local codebase scans. This prevents agents from accidentally using a theme export from a different project when you asked them to build from the current codebase.
71
+ Saved Theme Forge/config registry tools and resources are not exposed by this codebase agent MCP. This prevents agents from accidentally using a theme export from a different project when you asked them to build from the current codebase.
104
72
 
105
73
  Use `schemyx_scan_codebase` with an explicit scope:
106
74
 
@@ -128,7 +96,5 @@ From the backend repo root:
128
96
 
129
97
  ```bash
130
98
  npm run build:mcp
131
- SCHEMYX_API_URL=http://localhost:3001 \
132
- SCHEMYX_API_KEY=skx_test_replace_me \
133
99
  npm run mcp:local
134
100
  ```
package/dist/main.js CHANGED
@@ -1,14 +1,9 @@
1
1
  #!/usr/bin/env node
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- const mcp_client_1 = require("./client/mcp-client");
5
4
  const server_1 = require("./server");
6
- const config_1 = require("./shared/config");
7
5
  async function main() {
8
- const config = (0, config_1.loadLocalMcpConfig)();
9
- await (0, server_1.runLocalMcpServer)(new mcp_client_1.SchemyxMcpClient(config), {
10
- exposeSavedConfigTools: config.exposeSavedConfigTools,
11
- });
6
+ await (0, server_1.runLocalMcpServer)();
12
7
  }
13
8
  main().catch((error) => {
14
9
  console.error(error instanceof Error ? error.message : error);
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,oDAAuD;AACvD,qCAA6C;AAC7C,4CAAqD;AAMrD,KAAK,UAAU,IAAI;IACjB,MAAM,MAAM,GAAG,IAAA,2BAAkB,GAAE,CAAC;IACpC,MAAM,IAAA,0BAAiB,EAAC,IAAI,6BAAgB,CAAC,MAAM,CAAC,EAAE;QACpD,sBAAsB,EAAE,MAAM,CAAC,sBAAsB;KACtD,CAAC,CAAC;AACL,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";;;AACA,qCAA6C;AAM7C,KAAK,UAAU,IAAI;IACjB,MAAM,IAAA,0BAAiB,GAAE,CAAC;AAC5B,CAAC;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAC9D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
@@ -1,8 +1,3 @@
1
1
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
2
- import { SchemyxMcpSource } from '../shared/types';
3
- interface LocalMcpServerOptions {
4
- exposeSavedConfigTools?: boolean;
5
- }
6
- export declare function createLocalMcpServer(client: SchemyxMcpSource, options?: LocalMcpServerOptions): Server;
7
- export declare function runLocalMcpServer(client: SchemyxMcpSource, options?: LocalMcpServerOptions): Promise<void>;
8
- export {};
2
+ export declare function createLocalMcpServer(): Server;
3
+ export declare function runLocalMcpServer(): Promise<void>;
@@ -7,11 +7,8 @@ const stdio_js_1 = require("@modelcontextprotocol/sdk/server/stdio.js");
7
7
  const types_js_1 = require("@modelcontextprotocol/sdk/types.js");
8
8
  const codebase_scanner_1 = require("../codebase-scanner");
9
9
  const text_1 = require("../shared/text");
10
- const uri_1 = require("../shared/uri");
11
- const prompts_1 = require("./prompts");
12
10
  const tool_definitions_1 = require("./tool-definitions");
13
- function createLocalMcpServer(client, options = {}) {
14
- const exposeSavedConfigTools = options.exposeSavedConfigTools === true;
11
+ function createLocalMcpServer() {
15
12
  const server = new index_js_1.Server({
16
13
  name: 'schemyx-mcp',
17
14
  version: '0.1.0',
@@ -21,102 +18,39 @@ function createLocalMcpServer(client, options = {}) {
21
18
  tools: { listChanged: true },
22
19
  prompts: { listChanged: true },
23
20
  },
24
- instructions: 'For generation or editing tasks, call schemyx_prepare_task first with the user task. Do not invent missing structure, copy, classes, routes, APIs, or data behavior. Use Schemyx context and Schemyx source-backed reads before writing code. Schemyx has separate namespaces: local codebase scans use schemyx_prepare_task and schemyx_*codebase* tools with rootPath/outputDir; saved config and Theme Forge registry tools are hidden by default and must not be treated as local scan results.',
21
+ instructions: 'For generation or editing tasks, call schemyx_prepare_task first with the user task. Do not invent missing structure, copy, classes, routes, APIs, or data behavior. Use Schemyx context and Schemyx source-backed reads before writing code. This MCP server exposes only local codebase scan tools. Saved config, registry, and Theme Forge tools/resources are not exposed or allowed in this agent-facing MCP.',
25
22
  });
26
23
  server.setRequestHandler(types_js_1.ListResourcesRequestSchema, async () => ({
27
- resources: exposeSavedConfigTools ? await listResources(client) : [],
24
+ resources: [],
28
25
  }));
29
- server.setRequestHandler(types_js_1.ReadResourceRequestSchema, async (request) => {
30
- const { configId, resourceId } = (0, uri_1.parseLocalResourceUri)(request.params.uri);
31
- const resource = await client.readResource(configId, resourceId);
32
- return {
33
- contents: [
34
- {
35
- uri: request.params.uri,
36
- mimeType: resource.resource.mimeType,
37
- text: (0, text_1.stringifyMcpContent)(resource.content),
38
- _meta: {
39
- backendUri: resource.resource.uri,
40
- resourceId: resource.resource.id,
41
- configId,
42
- },
43
- },
44
- ],
45
- };
26
+ server.setRequestHandler(types_js_1.ReadResourceRequestSchema, async () => {
27
+ throw new Error('Schemyx saved config and Theme Forge resources are not exposed in this codebase agent MCP. Use schemyx_prepare_task and local codebase tools.');
46
28
  });
47
29
  server.setRequestHandler(types_js_1.ListToolsRequestSchema, async () => ({
48
- tools: (0, tool_definitions_1.getLocalTools)({ exposeSavedConfigTools }),
30
+ tools: (0, tool_definitions_1.getLocalTools)(),
49
31
  }));
50
32
  server.setRequestHandler(types_js_1.CallToolRequestSchema, async (request) => {
51
33
  try {
52
- if (!exposeSavedConfigTools && (0, tool_definitions_1.isSavedConfigToolName)(request.params.name)) {
53
- throw new Error('Saved Schemyx config and Theme Forge tools are hidden by default because they are not local codebase scans. Use schemyx_prepare_task for generation/editing, or restart the MCP server with SCHEMYX_MCP_EXPOSE_SAVED_CONFIG_TOOLS=true for intentional saved-theme workflows.');
54
- }
55
- return await callLocalTool(client, request.params.name, request.params.arguments ?? {});
34
+ return await callLocalTool(request.params.name, request.params.arguments ?? {});
56
35
  }
57
36
  catch (error) {
58
37
  return (0, text_1.errorToolResult)(error);
59
38
  }
60
39
  });
61
40
  server.setRequestHandler(types_js_1.ListPromptsRequestSchema, async () => ({
62
- prompts: prompts_1.localPrompts,
41
+ prompts: [],
63
42
  }));
64
- server.setRequestHandler(types_js_1.GetPromptRequestSchema, async (request) => (0, prompts_1.getLocalPrompt)(client, request.params.name, request.params.arguments));
43
+ server.setRequestHandler(types_js_1.GetPromptRequestSchema, async () => {
44
+ throw new Error('Schemyx saved config and Theme Forge prompts are not exposed in this codebase agent MCP. Use schemyx_prepare_task.');
45
+ });
65
46
  return server;
66
47
  }
67
- async function runLocalMcpServer(client, options = {}) {
68
- const server = createLocalMcpServer(client, options);
48
+ async function runLocalMcpServer() {
49
+ const server = createLocalMcpServer();
69
50
  await server.connect(new stdio_js_1.StdioServerTransport());
70
51
  }
71
- async function listResources(client) {
72
- const discovered = await client.discoverConfigs();
73
- return discovered.flatMap(({ config, manifest }) => manifest.resources.map((resource) => toMcpResource(config, resource)));
74
- }
75
- function toMcpResource(config, resource) {
76
- return {
77
- uri: (0, uri_1.createLocalResourceUri)(config.id, resource.id),
78
- name: `${config.key}.${resource.id}`,
79
- title: `${config.name}: ${resource.name}`,
80
- description: `${resource.description} Config: ${config.name} (${config.key}).`,
81
- mimeType: resource.mimeType,
82
- _meta: {
83
- configId: config.id,
84
- configKey: config.key,
85
- resourceId: resource.id,
86
- backendUri: resource.uri,
87
- ...resource.metadata,
88
- },
89
- };
90
- }
91
- async function callLocalTool(client, name, args) {
52
+ async function callLocalTool(name, args) {
92
53
  switch (name) {
93
- case tool_definitions_1.localToolNames.listConfigs:
94
- return (0, text_1.textToolResult)(await client.listConfigs());
95
- case tool_definitions_1.localToolNames.getLatestConfig:
96
- return (0, text_1.textToolResult)(await client.getLatestConfig(requiredStringArg(args, 'configId')));
97
- case tool_definitions_1.localToolNames.getManifest:
98
- return (0, text_1.textToolResult)(await client.getManifest(requiredStringArg(args, 'configId')));
99
- case tool_definitions_1.localToolNames.readResource:
100
- return (0, text_1.textToolResult)((await client.readResource(requiredStringArg(args, 'configId'), requiredStringArg(args, 'resourceId'))).content);
101
- case tool_definitions_1.localToolNames.callBackendTool:
102
- return (0, text_1.textToolResult)(await client.executeTool(requiredStringArg(args, 'configId'), requiredStringArg(args, 'toolName'), recordArg(args, 'arguments')));
103
- case tool_definitions_1.localToolNames.getThemeFile:
104
- return (0, text_1.textToolResult)((await client.executeTool(requiredStringArg(args, 'configId'), 'theme-forge.get-file', {
105
- fileName: stringArg(args, 'fileName'),
106
- fileId: stringArg(args, 'fileId'),
107
- })).content);
108
- case tool_definitions_1.localToolNames.listStyleRecipes:
109
- return (0, text_1.textToolResult)((await client.executeTool(requiredStringArg(args, 'configId'), 'theme-forge.list-style-recipes', {
110
- query: stringArg(args, 'query'),
111
- group: stringArg(args, 'group'),
112
- })).content);
113
- case tool_definitions_1.localToolNames.getStyleRecipe:
114
- return (0, text_1.textToolResult)((await client.executeTool(requiredStringArg(args, 'configId'), 'theme-forge.get-style-recipe', {
115
- key: requiredStringArg(args, 'key'),
116
- includeDeps: booleanArg(args, 'includeDeps'),
117
- })).content);
118
- case tool_definitions_1.localToolNames.getImplementationGuide:
119
- return (0, text_1.textToolResult)((await client.executeTool(requiredStringArg(args, 'configId'), 'theme-forge.get-implementation-guide', {})).content);
120
54
  case tool_definitions_1.localToolNames.prepareTask:
121
55
  return (0, text_1.textToolResult)(await (0, codebase_scanner_1.prepareTask)(args));
122
56
  case tool_definitions_1.localToolNames.scanCodebase:
@@ -141,29 +75,4 @@ async function callLocalTool(client, name, args) {
141
75
  throw new Error(`Unknown Schemyx local MCP tool: ${name}`);
142
76
  }
143
77
  }
144
- function stringArg(args, key) {
145
- const value = args[key];
146
- return typeof value === 'string' && value.trim() ? value : undefined;
147
- }
148
- function requiredStringArg(args, key) {
149
- const value = stringArg(args, key);
150
- if (!value) {
151
- throw new Error(`Tool argument "${key}" is required.`);
152
- }
153
- return value;
154
- }
155
- function booleanArg(args, key) {
156
- const value = args[key];
157
- return typeof value === 'boolean' ? value : undefined;
158
- }
159
- function recordArg(args, key) {
160
- const value = args[key];
161
- if (!value) {
162
- return {};
163
- }
164
- if (typeof value !== 'object' || Array.isArray(value)) {
165
- throw new Error(`Tool argument "${key}" must be an object.`);
166
- }
167
- return value;
168
- }
169
78
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/server/index.ts"],"names":[],"mappings":";;AAiCA,oDAwEC;AAED,8CAMC;AAjHD,wEAAmE;AACnE,wEAAiF;AACjF,iEAQ4C;AAC5C,0DAW6B;AAC7B,yCAAsF;AAEtF,uCAA8E;AAC9E,uCAAyD;A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Ac,CAAC,YAAY;YAC9B,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,oCAAiB,EAAC,IAAI,CAAC,CAAC,CAAC;QACvD,KAAK,iCAAc,CAAC,cAAc;YAChC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC,CAAC;QACpD,KAAK,iCAAc,CAAC,mBAAmB;YACrC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,sCAAmB,EAAC,IAAI,CAAC,CAAC,CAAC;QACzD,KAAK,iCAAc,CAAC,iBAAiB;YACnC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,oCAAiB,EAAC,IAAI,CAAC,CAAC,CAAC;QACvD,KAAK,iCAAc,CAAC,cAAc;YAChC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,iCAAc,EAAC,IAAI,CAAC,CAAC,CAAC;QACpD,KAAK,iCAAc,CAAC,gBAAgB;YAClC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,mCAAgB,EAAC,IAAI,CAAC,CAAC,CAAC;QACtD,KAAK,iCAAc,CAAC,eAAe;YACjC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,kCAAe,EAAC,IAAI,CAAC,CAAC,CAAC;QACrD,KAAK,iCAAc,CAAC,qBAAqB;YACvC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,wCAAqB,EAAC,IAAI,CAAC,CAAC,CAAC;QAC3D,KAAK,iCAAc,CAAC,gBAAgB;YAClC,OAAO,IAAA,qBAAc,EAAC,MAAM,IAAA,mCAAgB,EAAC,IAAI,CAAC,CAAC,CAAC;QACtD;YACE,MAAM,IAAI,KAAK,CAAC,mCAAmC,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;AACH,CAAC"}
@@ -1,14 +1,5 @@
1
1
  import { Tool } from '@modelcontextprotocol/sdk/types.js';
2
2
  export declare const localToolNames: {
3
- readonly listConfigs: "schemyx_list_configs";
4
- readonly getLatestConfig: "schemyx_get_latest_config";
5
- readonly getManifest: "schemyx_get_manifest";
6
- readonly readResource: "schemyx_read_resource";
7
- readonly callBackendTool: "schemyx_call_backend_tool";
8
- readonly getThemeFile: "schemyx_get_theme_file";
9
- readonly listStyleRecipes: "schemyx_list_style_recipes";
10
- readonly getStyleRecipe: "schemyx_get_style_recipe";
11
- readonly getImplementationGuide: "schemyx_get_implementation_guide";
12
3
  readonly prepareTask: "schemyx_prepare_task";
13
4
  readonly scanCodebase: "schemyx_scan_codebase";
14
5
  readonly searchCodebase: "schemyx_search_codebase";
@@ -21,7 +12,4 @@ export declare const localToolNames: {
21
12
  readonly readCodebaseFile: "schemyx_read_codebase_file";
22
13
  };
23
14
  export declare const localTools: Tool[];
24
- export declare function getLocalTools(options?: {
25
- exposeSavedConfigTools?: boolean;
26
- }): Tool[];
27
- export declare function isSavedConfigToolName(name: string): boolean;
15
+ export declare function getLocalTools(): Tool[];
@@ -2,17 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.localTools = exports.localToolNames = void 0;
4
4
  exports.getLocalTools = getLocalTools;
5
- exports.isSavedConfigToolName = isSavedConfigToolName;
6
5
  exports.localToolNames = {
7
- listConfigs: 'schemyx_list_configs',
8
- getLatestConfig: 'schemyx_get_latest_config',
9
- getManifest: 'schemyx_get_manifest',
10
- readResource: 'schemyx_read_resource',
11
- callBackendTool: 'schemyx_call_backend_tool',
12
- getThemeFile: 'schemyx_get_theme_file',
13
- listStyleRecipes: 'schemyx_list_style_recipes',
14
- getStyleRecipe: 'schemyx_get_style_recipe',
15
- getImplementationGuide: 'schemyx_get_implementation_guide',
16
6
  prepareTask: 'schemyx_prepare_task',
17
7
  scanCodebase: 'schemyx_scan_codebase',
18
8
  searchCodebase: 'schemyx_search_codebase',
@@ -24,158 +14,7 @@ exports.localToolNames = {
24
14
  checkContextFreshness: 'schemyx_check_context_freshness',
25
15
  readCodebaseFile: 'schemyx_read_codebase_file',
26
16
  };
27
- const savedConfigToolNames = new Set([
28
- exports.localToolNames.listConfigs,
29
- exports.localToolNames.getLatestConfig,
30
- exports.localToolNames.getManifest,
31
- exports.localToolNames.readResource,
32
- exports.localToolNames.callBackendTool,
33
- exports.localToolNames.getThemeFile,
34
- exports.localToolNames.listStyleRecipes,
35
- exports.localToolNames.getStyleRecipe,
36
- exports.localToolNames.getImplementationGuide,
37
- ]);
38
17
  exports.localTools = [
39
- {
40
- name: exports.localToolNames.listConfigs,
41
- title: 'List Saved Schemyx Configs',
42
- description: 'List saved Schemyx config registry artifacts available to this API key. These are not local codebase scan results; use local codebase tools for .schemyx/codebase or configs output.',
43
- inputSchema: objectSchema(),
44
- annotations: readOnlyAnnotations(),
45
- },
46
- {
47
- name: exports.localToolNames.getLatestConfig,
48
- title: 'Get Saved Schemyx Config Version',
49
- description: 'Read the latest stored version and metadata for an explicit saved Schemyx config registry artifact. This does not read local codebase scan artifacts.',
50
- inputSchema: objectSchema({
51
- configId: {
52
- type: 'string',
53
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
54
- },
55
- }, ['configId']),
56
- annotations: readOnlyAnnotations(),
57
- },
58
- {
59
- name: exports.localToolNames.getManifest,
60
- title: 'Get Saved Schemyx Config Manifest',
61
- description: 'List providers, resources, tools, and prompts for an explicit saved Schemyx config registry artifact. This does not describe a local codebase scan.',
62
- inputSchema: objectSchema({
63
- configId: {
64
- type: 'string',
65
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
66
- },
67
- }, ['configId']),
68
- annotations: readOnlyAnnotations(),
69
- },
70
- {
71
- name: exports.localToolNames.readResource,
72
- title: 'Read Schemyx Resource',
73
- description: 'Read a backend MCP resource by config id and resource id.',
74
- inputSchema: objectSchema({
75
- configId: {
76
- type: 'string',
77
- description: 'Schemyx config id.',
78
- },
79
- resourceId: {
80
- type: 'string',
81
- description: 'Resource id from the config manifest, such as theme-forge.file.theme-css.',
82
- },
83
- }, ['configId', 'resourceId']),
84
- annotations: readOnlyAnnotations(),
85
- },
86
- {
87
- name: exports.localToolNames.callBackendTool,
88
- title: 'Call Schemyx Backend Tool',
89
- description: 'Call a read-only tool exposed by the Schemyx backend config manifest.',
90
- inputSchema: objectSchema({
91
- configId: {
92
- type: 'string',
93
- description: 'Schemyx config id.',
94
- },
95
- toolName: {
96
- type: 'string',
97
- description: 'Backend tool name from the config manifest.',
98
- },
99
- arguments: {
100
- type: 'object',
101
- description: 'Arguments to send to the backend tool.',
102
- additionalProperties: true,
103
- },
104
- }, ['configId', 'toolName']),
105
- annotations: readOnlyAnnotations(),
106
- },
107
- {
108
- name: exports.localToolNames.getThemeFile,
109
- title: 'Get Saved Theme Forge File',
110
- description: 'Read a generated Theme Forge file from an explicit saved Schemyx config registry artifact. This is separate from local codebase scan configs.',
111
- inputSchema: objectSchema({
112
- configId: {
113
- type: 'string',
114
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
115
- },
116
- fileName: {
117
- type: 'string',
118
- description: 'Generated file name, such as agent-style-contract.json, themeforge.json, theme.css, or shadcn-globals.css.',
119
- },
120
- fileId: {
121
- type: 'string',
122
- description: 'Generated file id from the saved config manifest.',
123
- },
124
- }, ['configId']),
125
- annotations: readOnlyAnnotations(),
126
- },
127
- {
128
- name: exports.localToolNames.listStyleRecipes,
129
- title: 'List Saved Style Recipes',
130
- description: 'List compact style recipe keys from an explicit saved Schemyx config registry artifact. For scanned projects, use schemyx_search_codebase instead.',
131
- inputSchema: objectSchema({
132
- configId: {
133
- type: 'string',
134
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
135
- },
136
- query: {
137
- type: 'string',
138
- description: 'Optional search across recipe key, group, summary, and tags.',
139
- },
140
- group: {
141
- type: 'string',
142
- description: 'Optional exact group filter, such as ui, nav, studio, or tokens.',
143
- },
144
- }, ['configId']),
145
- annotations: readOnlyAnnotations(),
146
- },
147
- {
148
- name: exports.localToolNames.getStyleRecipe,
149
- title: 'Get Saved Style Recipe',
150
- description: 'Read one compact style recipe from an explicit saved Schemyx config registry artifact. For scanned projects, use schemyx_get_codebase_recipe or schemyx_get_context_pack instead.',
151
- inputSchema: objectSchema({
152
- configId: {
153
- type: 'string',
154
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
155
- },
156
- key: {
157
- type: 'string',
158
- description: 'Style recipe key, such as ui.input, nav.productHome, or studio.dialog.',
159
- },
160
- includeDeps: {
161
- type: 'boolean',
162
- description: 'Include direct token/component dependencies. Defaults to true.',
163
- },
164
- }, ['configId', 'key']),
165
- annotations: readOnlyAnnotations(),
166
- },
167
- {
168
- name: exports.localToolNames.getImplementationGuide,
169
- title: 'Get Saved Theme Implementation Guide',
170
- description: 'Read AI-facing instructions for applying an explicit saved Theme Forge theme. This is not a local codebase scan guide.',
171
- inputSchema: objectSchema({
172
- configId: {
173
- type: 'string',
174
- description: 'Required saved Schemyx config id from schemyx_list_configs. Do not use this for local codebase scans.',
175
- },
176
- }, ['configId']),
177
- annotations: readOnlyAnnotations(),
178
- },
179
18
  {
180
19
  name: exports.localToolNames.prepareTask,
181
20
  title: 'Prepare Schemyx-Grounded Task',
@@ -582,23 +421,14 @@ exports.localTools = [
582
421
  annotations: readOnlyAnnotations(),
583
422
  },
584
423
  ];
585
- function getLocalTools(options = {}) {
586
- const tools = options.exposeSavedConfigTools
587
- ? exports.localTools
588
- : exports.localTools.filter((tool) => !isSavedConfigToolName(tool.name));
589
- return [...tools].sort((a, b) => localToolPriority(a.name) - localToolPriority(b.name) || a.name.localeCompare(b.name));
590
- }
591
- function isSavedConfigToolName(name) {
592
- return savedConfigToolNames.has(name);
424
+ function getLocalTools() {
425
+ return [...exports.localTools].sort((a, b) => localToolPriority(a.name) - localToolPriority(b.name) || a.name.localeCompare(b.name));
593
426
  }
594
427
  function localToolPriority(name) {
595
428
  if (name === exports.localToolNames.prepareTask) {
596
429
  return 0;
597
430
  }
598
- if (!isSavedConfigToolName(name)) {
599
- return 10;
600
- }
601
- return 20;
431
+ return 10;
602
432
  }
603
433
  function objectSchema(properties = {}, required) {
604
434
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../../src/server/tool-definitions.ts"],"names":[],"mappings":";;;AA4oBA,sCAQC;AAED,sDAEC;AAtpBY,QAAA,cAAc,GAAG;IAC5B,WAAW,EAAE,sBAAsB;IACnC,eAAe,EAAE,2BAA2B;IAC5C,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;IACrC,eAAe,EAAE,2BAA2B;IAC5C,YAAY,EAAE,wBAAwB;IACtC,gBAAgB,EAAE,4BAA4B;IAC9C,cAAc,EAAE,0BAA0B;IAC1C,sBAAsB,EAAE,kCAAkC;IAC1D,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;IACrC,cAAc,EAAE,yBAAyB;IACzC,mBAAmB,EAAE,+BAA+B;IACpD,iBAAiB,EAAE,6BAA6B;IAChD,cAAc,EAAE,0BAA0B;IAC1C,gBAAgB,EAAE,4BAA4B;IAC9C,eAAe,EAAE,2BAA2B;IAC5C,qBAAqB,EAAE,iCAAiC;IACxD,gBAAgB,EAAE,4BAA4B;CACtC,CAAC;AAEX,MAAM,oBAAoB,GAAG,IAAI,GAAG,CAAS;IAC3C,sBAAc,CAAC,WAAW;IAC1B,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,WAAW;IAC1B,sBAAc,CAAC,YAAY;IAC3B,sBAAc,CAAC,eAAe;IAC9B,sBAAc,CAAC,YAAY;IAC3B,sBAAc,CAAC,gBAAgB;IAC/B,sBAAc,CAAC,cAAc;IAC7B,sBAAc,CAAC,sBAAsB;CACtC,CAAC,CAAC;AAEU,QAAA,UAAU,GAAW;IAChC;QACE,IAAI,EAAE,sBAAc,CAAC,WAAW;QAChC,KAAK,EAAE,4BAA4B;QACnC,WAAW,EACT,sLAAsL;QACxL,WAAW,EAAE,YAAY,EAAE;QAC3B,WAAW,EAAE,mBA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Ae,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,IAAI;KACpB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB;IAC5B,OAAO;QACL,YAAY,EAAE,KAAK;QACnB,eAAe,EAAE,KAAK;QACtB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,KAAK;KACrB,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"tool-definitions.js","sourceRoot":"","sources":["../../src/server/tool-definitions.ts"],"names":[],"mappings":";;;AAqcA,sCAIC;AAvcY,QAAA,cAAc,GAAG;IAC5B,WAAW,EAAE,sBAAsB;IACnC,YAAY,EAAE,uBAAuB;IACrC,cAAc,EAAE,yBAAyB;IACzC,mBAAmB,EAAE,+BAA+B;IACpD,iBAAiB,EAAE,6BAA6B;IAChD,cAAc,EAAE,0BAA0B;IAC1C,gBAAgB,EAAE,4BAA4B;IAC9C,eAAe,EAAE,2BAA2B;IAC5C,qBAAqB,EAAE,iCAAiC;IACxD,gBAAgB,EAAE,4BAA4B;CACtC,CAAC;AAEE,QAAA,UAAU,GAAW;IAChC;QACE,IAAI,EAAE,sBAAc,CAAC,WAAW;QAChC,KAAK,EAAE,+BAA+B;QACtC,WAAW,EACT,mTAAmT;QACrT,WAAW,EAAE,YAAY,CACvB;YACE,IAAI,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,4GAA4G;aAC/G;YACD,QAAQ,EAAE;gBACR,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,4EAA4E;aAC1F;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,mFAAmF;aACtF;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,CAAC,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC;gBAC/C,WAAW,EACT,sFAAsF;aACzF;YACD,YAAY,EAAE;gBACZ,IAAI,EAAE,OAAO;gBACb,KAAK,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a,EAAE,KAAK;KACrB,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@schemyx/mcp",
3
- "version": "0.1.8",
4
- "description": "Local stdio MCP server for reading Schemyx project configs and Theme Forge artifacts.",
3
+ "version": "0.1.9",
4
+ "description": "Local stdio MCP server for Schemyx codebase scan context.",
5
5
  "license": "Proprietary",
6
6
  "type": "commonjs",
7
7
  "main": "dist/main.js",
@@ -1 +0,0 @@
1
- export * from './client/backend-client';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./client/backend-client"), exports);
18
- //# sourceMappingURL=backend-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"backend-client.js","sourceRoot":"","sources":["../src/backend-client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0DAAwC"}
@@ -1,17 +0,0 @@
1
- import { BackendConfigManifest, BackendResourceContent, BackendToolResult, DiscoveredConfig, LocalMcpConfig, McpConfigResponse, McpContextResponse, SchemyxMcpSource } from '../shared/types';
2
- export declare class SchemyxBackendClient implements SchemyxMcpSource {
3
- private readonly config;
4
- private contextCache;
5
- private manifestCache;
6
- constructor(config: LocalMcpConfig);
7
- getContext(): Promise<McpContextResponse>;
8
- listConfigs(): Promise<McpConfigResponse[]>;
9
- discoverConfigs(): Promise<DiscoveredConfig[]>;
10
- getManifest(configId: string): Promise<BackendConfigManifest>;
11
- getLatestConfig(configId: string): Promise<McpConfigResponse>;
12
- readResource(configId: string, resourceId: string): Promise<BackendResourceContent>;
13
- executeTool(configId: string, toolName: string, args: Record<string, unknown>): Promise<BackendToolResult>;
14
- resolveConfigId(configId: string | undefined): Promise<string>;
15
- private request;
16
- private cacheEntry;
17
- }