@mastra/mcp-docs-server 0.0.1-alpha.2 → 0.0.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/.docs/organized/changelogs/%40mastra%2Fmcp-docs-server.md +6 -0
- package/dist/index.js +5 -5
- package/dist/prepare-docs/code-examples.js +1 -1
- package/dist/prepare-docs/copy-raw.js +1 -1
- package/dist/prepare-docs/index.js +1 -1
- package/dist/prepare-docs/package-changes.js +1 -1
- package/dist/prepare-docs/prepare.js +4 -4
- package/dist/sse.js +1 -1
- package/dist/stdio.js +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import { FastMCP } from 'tylerbarnes-fastmcp-fix';
|
|
3
|
-
import { blogTool } from './tools/blog';
|
|
4
|
-
import { changesTool } from './tools/changes';
|
|
5
|
-
import { docsTool } from './tools/docs';
|
|
6
|
-
import { examplesTool } from './tools/examples';
|
|
7
|
-
import { fromPackageRoot } from './utils';
|
|
3
|
+
import { blogTool } from './tools/blog.js';
|
|
4
|
+
import { changesTool } from './tools/changes.js';
|
|
5
|
+
import { docsTool } from './tools/docs.js';
|
|
6
|
+
import { examplesTool } from './tools/examples.js';
|
|
7
|
+
import { fromPackageRoot } from './utils.js';
|
|
8
8
|
// console.error('Starting Mastra Documentation Server...');
|
|
9
9
|
// console.error('Docs base dir:', path.join(__dirname, '../.docs/raw/'));
|
|
10
10
|
const server = new FastMCP({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { fromPackageRoot, fromRepoRoot, log } from '../utils';
|
|
3
|
+
import { fromPackageRoot, fromRepoRoot, log } from '../utils.js';
|
|
4
4
|
const EXAMPLES_SOURCE = fromRepoRoot('examples');
|
|
5
5
|
const OUTPUT_DIR = fromPackageRoot('.docs/organized/code-examples');
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { fromPackageRoot, fromRepoRoot, log } from '../utils';
|
|
3
|
+
import { fromPackageRoot, fromRepoRoot, log } from '../utils.js';
|
|
4
4
|
const DOCS_SOURCE = fromRepoRoot('docs/src/pages/docs');
|
|
5
5
|
const DOCS_DEST = fromPackageRoot('.docs/raw');
|
|
6
6
|
async function copyDir(src, dest) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import fs from 'node:fs/promises';
|
|
2
2
|
import path from 'node:path';
|
|
3
|
-
import { fromPackageRoot, fromRepoRoot, log } from '../utils';
|
|
3
|
+
import { fromPackageRoot, fromRepoRoot, log } from '../utils.js';
|
|
4
4
|
// Define all source directories to scan
|
|
5
5
|
const SOURCE_DIRS = ['packages', 'speech', 'stores', 'voice', 'integrations', 'deployers', 'client-sdks'].map(fromRepoRoot);
|
|
6
6
|
const CHANGELOGS_DEST = fromPackageRoot('.docs/organized/changelogs');
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { log } from '../utils';
|
|
2
|
-
import { prepareCodeExamples } from './code-examples';
|
|
3
|
-
import { copyRaw } from './copy-raw';
|
|
4
|
-
import { preparePackageChanges } from './package-changes';
|
|
1
|
+
import { log } from '../utils.js';
|
|
2
|
+
import { prepareCodeExamples } from './code-examples.js';
|
|
3
|
+
import { copyRaw } from './copy-raw.js';
|
|
4
|
+
import { preparePackageChanges } from './package-changes.js';
|
|
5
5
|
export async function prepare() {
|
|
6
6
|
log('Preparing documentation...');
|
|
7
7
|
await copyRaw();
|
package/dist/sse.js
CHANGED
package/dist/stdio.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { prepare } from './prepare-docs/prepare';
|
|
2
|
+
import { prepare } from './prepare-docs/prepare.js';
|
|
3
3
|
if (process.env.REBUILD_DOCS_ON_START === 'true') {
|
|
4
4
|
await prepare();
|
|
5
5
|
}
|
|
6
|
-
const { server } = await import(`./index`);
|
|
6
|
+
const { server } = await import(`./index.js`);
|
|
7
7
|
void server.start({
|
|
8
8
|
transportType: 'stdio',
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/mcp-docs-server",
|
|
3
|
-
"version": "0.0.1
|
|
3
|
+
"version": "0.0.1",
|
|
4
4
|
"description": "MCP server for accessing Mastra.ai documentation, changelogs, and news.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"tylerbarnes-fastmcp-fix": "^1.0.0",
|
|
38
38
|
"uuid": "^11.1.0",
|
|
39
39
|
"zod": "^3.22.4",
|
|
40
|
-
"@mastra/core": "^0.6.1
|
|
40
|
+
"@mastra/core": "^0.6.1"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@types/jsdom": "^21.1.7",
|