@xano/developer-mcp 1.0.10 → 1.0.11
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/README.md +5 -10
- package/dist/index.js +5 -83
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -212,21 +212,17 @@ xanoscript_docs({ file_path: "apis/users/create.xs" })
|
|
|
212
212
|
xanoscript_docs({ topic: "database", mode: "quick_reference" })
|
|
213
213
|
```
|
|
214
214
|
|
|
215
|
-
### 4. `
|
|
215
|
+
### 4. `mcp_version`
|
|
216
216
|
|
|
217
|
-
Get
|
|
217
|
+
Get the current version of the Xano Developer MCP server.
|
|
218
218
|
|
|
219
219
|
**Parameters:** None
|
|
220
220
|
|
|
221
|
-
**Returns:**
|
|
222
|
-
- Directory structure for local development
|
|
223
|
-
- File naming conventions
|
|
224
|
-
- Registry format for tracking changes
|
|
225
|
-
- Workflows for pulling/pushing XanoScript files via the Headless API
|
|
221
|
+
**Returns:** The version string from package.json.
|
|
226
222
|
|
|
227
223
|
**Example:**
|
|
228
224
|
```
|
|
229
|
-
|
|
225
|
+
mcp_version()
|
|
230
226
|
```
|
|
231
227
|
|
|
232
228
|
## MCP Resources
|
|
@@ -276,7 +272,6 @@ xano-developer-mcp/
|
|
|
276
272
|
│ ├── index.ts # Main MCP server implementation
|
|
277
273
|
│ ├── xanoscript.d.ts # TypeScript declarations
|
|
278
274
|
│ └── templates/
|
|
279
|
-
│ ├── init-workspace.ts # Workspace initialization template
|
|
280
275
|
│ └── xanoscript-index.ts
|
|
281
276
|
├── dist/ # Compiled JavaScript output
|
|
282
277
|
├── scripts/
|
|
@@ -322,7 +317,7 @@ Xano Developer MCP Server
|
|
|
322
317
|
│
|
|
323
318
|
├─► xanoscript_docs → Context-aware docs from /xanoscript_docs/*.md
|
|
324
319
|
│
|
|
325
|
-
├─►
|
|
320
|
+
├─► mcp_version → Returns server version from package.json
|
|
326
321
|
│
|
|
327
322
|
└─► MCP Resources → Direct access to documentation files
|
|
328
323
|
```
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,6 @@ import { dirname, join } from "path";
|
|
|
8
8
|
import { minimatch } from "minimatch";
|
|
9
9
|
import { xanoscriptParser } from "@xano/xanoscript-language-server/parser/parser.js";
|
|
10
10
|
import { getSchemeFromContent } from "@xano/xanoscript-language-server/utils.js";
|
|
11
|
-
import { generateInitWorkspaceTemplate } from "./templates/init-workspace.js";
|
|
12
11
|
const __filename = fileURLToPath(import.meta.url);
|
|
13
12
|
const __dirname = dirname(__filename);
|
|
14
13
|
const pkg = JSON.parse(readFileSync(join(__dirname, "..", "package.json"), "utf-8"));
|
|
@@ -134,69 +133,6 @@ const XANOSCRIPT_DOCS_V2 = {
|
|
|
134
133
|
description: "Streaming data from files, requests, and responses",
|
|
135
134
|
},
|
|
136
135
|
};
|
|
137
|
-
const XANO_OBJECT_TYPES = {
|
|
138
|
-
function: {
|
|
139
|
-
path: "functions",
|
|
140
|
-
endpoint: "function",
|
|
141
|
-
extension: ".xs",
|
|
142
|
-
hasXanoscript: true,
|
|
143
|
-
},
|
|
144
|
-
table: {
|
|
145
|
-
path: "tables",
|
|
146
|
-
endpoint: "table",
|
|
147
|
-
extension: ".xs",
|
|
148
|
-
hasXanoscript: true,
|
|
149
|
-
},
|
|
150
|
-
task: {
|
|
151
|
-
path: "tasks",
|
|
152
|
-
endpoint: "task",
|
|
153
|
-
extension: ".xs",
|
|
154
|
-
hasXanoscript: true,
|
|
155
|
-
},
|
|
156
|
-
api_group: {
|
|
157
|
-
path: "apis",
|
|
158
|
-
endpoint: "api-group",
|
|
159
|
-
extension: ".xs",
|
|
160
|
-
hasXanoscript: true,
|
|
161
|
-
supportsNesting: true,
|
|
162
|
-
},
|
|
163
|
-
tool: {
|
|
164
|
-
path: "tools",
|
|
165
|
-
endpoint: "tool",
|
|
166
|
-
extension: ".xs",
|
|
167
|
-
hasXanoscript: true,
|
|
168
|
-
},
|
|
169
|
-
agent: {
|
|
170
|
-
path: "agents",
|
|
171
|
-
endpoint: "agent",
|
|
172
|
-
extension: ".xs",
|
|
173
|
-
hasXanoscript: true,
|
|
174
|
-
},
|
|
175
|
-
middleware: {
|
|
176
|
-
path: "middlewares",
|
|
177
|
-
endpoint: "middleware",
|
|
178
|
-
extension: ".xs",
|
|
179
|
-
hasXanoscript: true,
|
|
180
|
-
},
|
|
181
|
-
addon: {
|
|
182
|
-
path: "addons",
|
|
183
|
-
endpoint: "addon",
|
|
184
|
-
extension: ".xs",
|
|
185
|
-
hasXanoscript: true,
|
|
186
|
-
},
|
|
187
|
-
mcp_server: {
|
|
188
|
-
path: "mcp_servers",
|
|
189
|
-
endpoint: "mcp-server",
|
|
190
|
-
extension: ".xs",
|
|
191
|
-
hasXanoscript: true,
|
|
192
|
-
},
|
|
193
|
-
realtime_channel: {
|
|
194
|
-
path: "realtime",
|
|
195
|
-
endpoint: "realtime-channel",
|
|
196
|
-
extension: ".xs",
|
|
197
|
-
hasXanoscript: true,
|
|
198
|
-
},
|
|
199
|
-
};
|
|
200
136
|
// =============================================================================
|
|
201
137
|
// API Documentation Configuration
|
|
202
138
|
// =============================================================================
|
|
@@ -383,17 +319,6 @@ function readXanoscriptDocsV2(args) {
|
|
|
383
319
|
}
|
|
384
320
|
}
|
|
385
321
|
// =============================================================================
|
|
386
|
-
// Init Workspace Documentation
|
|
387
|
-
// =============================================================================
|
|
388
|
-
function generateInitWorkspaceDoc() {
|
|
389
|
-
const objectTypes = Object.entries(XANO_OBJECT_TYPES).map(([type, config]) => ({
|
|
390
|
-
type,
|
|
391
|
-
path: config.path,
|
|
392
|
-
endpoint: config.endpoint,
|
|
393
|
-
}));
|
|
394
|
-
return generateInitWorkspaceTemplate(objectTypes);
|
|
395
|
-
}
|
|
396
|
-
// =============================================================================
|
|
397
322
|
// MCP Server Setup
|
|
398
323
|
// =============================================================================
|
|
399
324
|
const server = new Server({
|
|
@@ -507,11 +432,9 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
507
432
|
},
|
|
508
433
|
},
|
|
509
434
|
{
|
|
510
|
-
name: "
|
|
511
|
-
description: "Get
|
|
512
|
-
"Returns
|
|
513
|
-
"and workflows for pulling/pushing XanoScript files via the Headless API. " +
|
|
514
|
-
"Use this when setting up local development for Xano projects.",
|
|
435
|
+
name: "mcp_version",
|
|
436
|
+
description: "Get the current version of the Xano Developer MCP server. " +
|
|
437
|
+
"Returns the version string from package.json.",
|
|
515
438
|
inputSchema: {
|
|
516
439
|
type: "object",
|
|
517
440
|
properties: {},
|
|
@@ -619,13 +542,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
619
542
|
],
|
|
620
543
|
};
|
|
621
544
|
}
|
|
622
|
-
if (request.params.name === "
|
|
623
|
-
const documentation = generateInitWorkspaceDoc();
|
|
545
|
+
if (request.params.name === "mcp_version") {
|
|
624
546
|
return {
|
|
625
547
|
content: [
|
|
626
548
|
{
|
|
627
549
|
type: "text",
|
|
628
|
-
text:
|
|
550
|
+
text: SERVER_VERSION,
|
|
629
551
|
},
|
|
630
552
|
],
|
|
631
553
|
};
|