@hiai-gg/docsmint 0.6.2 → 0.6.5
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 +1 -1
- package/dist/backend/index.js +1 -1
- package/package.json +2 -2
- package/packages/cli/src/index.ts +36 -39
- package/packages/mcp-server/src/server.ts +1 -1
- package/server.json +3 -3
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@ server.
|
|
|
43
43
|
## What's new in DocsMint 0.6.2?
|
|
44
44
|
|
|
45
45
|
- **Official MCP identity.** DocsMint now publishes the verified
|
|
46
|
-
`io.github.
|
|
46
|
+
`io.github.HiAi-gg/docsmint` registry identity for both the npm stdio server
|
|
47
47
|
and the hosted Streamable HTTP endpoint.
|
|
48
48
|
- **One capability implementation.** The public `@hiai-gg/docsmint/mcp`
|
|
49
49
|
contract lets hosts provide a scoped API client while reusing the same 17
|
package/dist/backend/index.js
CHANGED
|
@@ -234946,7 +234946,7 @@ var swaggerConfig = {
|
|
|
234946
234946
|
},
|
|
234947
234947
|
info: {
|
|
234948
234948
|
title: "DocsMint API",
|
|
234949
|
-
version: "0.6.
|
|
234949
|
+
version: "0.6.5",
|
|
234950
234950
|
description: "Self-hosted AI-first documentation platform. Full-text + semantic search, version history, sharing, and folder organization.",
|
|
234951
234951
|
contact: { name: "HiAi-gg", url: "https://github.com/HiAi-gg/docsmint" },
|
|
234952
234952
|
license: {
|
package/package.json
CHANGED
|
@@ -8,53 +8,50 @@
|
|
|
8
8
|
* Bun-native. ESM-only. No external color/formatting libraries.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import { Command } from
|
|
12
|
-
import { configFilePath, loadConfig, saveConfig } from
|
|
13
|
-
import { client, type HiaiDocsClient } from
|
|
14
|
-
import { registerConfig } from
|
|
15
|
-
import { registerCreate } from
|
|
16
|
-
import { registerDelete } from
|
|
17
|
-
import { registerExport } from
|
|
18
|
-
import { registerFolders } from
|
|
19
|
-
import { registerHistory } from
|
|
20
|
-
import { registerList } from
|
|
21
|
-
import { registerRead } from
|
|
22
|
-
import { registerRestore } from
|
|
23
|
-
import { registerSearch } from
|
|
24
|
-
import { registerSnapshot } from
|
|
25
|
-
import { registerUpdate } from
|
|
11
|
+
import { Command } from 'commander';
|
|
12
|
+
import { configFilePath, loadConfig, saveConfig } from './config.js';
|
|
13
|
+
import { client, type HiaiDocsClient } from './client.js';
|
|
14
|
+
import { registerConfig } from './commands/config.js';
|
|
15
|
+
import { registerCreate } from './commands/create.js';
|
|
16
|
+
import { registerDelete } from './commands/delete.js';
|
|
17
|
+
import { registerExport } from './commands/export.js';
|
|
18
|
+
import { registerFolders } from './commands/folders.js';
|
|
19
|
+
import { registerHistory } from './commands/history.js';
|
|
20
|
+
import { registerList } from './commands/list.js';
|
|
21
|
+
import { registerRead } from './commands/read.js';
|
|
22
|
+
import { registerRestore } from './commands/restore.js';
|
|
23
|
+
import { registerSearch } from './commands/search.js';
|
|
24
|
+
import { registerSnapshot } from './commands/snapshot.js';
|
|
25
|
+
import { registerUpdate } from './commands/update.js';
|
|
26
26
|
|
|
27
|
-
const VERSION =
|
|
27
|
+
const VERSION = '0.6.5';
|
|
28
28
|
|
|
29
29
|
const program = new Command();
|
|
30
|
-
program
|
|
31
|
-
.name("hiai-docs")
|
|
32
|
-
.description("CLI for the hiai-docs knowledge base")
|
|
33
|
-
.version(VERSION);
|
|
30
|
+
program.name('hiai-docs').description('CLI for the hiai-docs knowledge base').version(VERSION);
|
|
34
31
|
|
|
35
32
|
const getClient = (): HiaiDocsClient => client;
|
|
36
33
|
|
|
37
34
|
// Bootstrap command — interactive first-run helper.
|
|
38
35
|
program
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
36
|
+
.command('init')
|
|
37
|
+
.description('Initialize the CLI (writes ~/.hiai-docs/config.json)')
|
|
38
|
+
.option('--url <url>', 'API base URL')
|
|
39
|
+
.option('--key <key>', 'API key')
|
|
40
|
+
.action(async (opts: { url?: string; key?: string }) => {
|
|
41
|
+
const current = loadConfig();
|
|
42
|
+
const next = {
|
|
43
|
+
url: opts.url ?? current.url,
|
|
44
|
+
apiKey: opts.key ?? current.apiKey,
|
|
45
|
+
};
|
|
46
|
+
saveConfig(next);
|
|
47
|
+
process.stdout.write(`Config written to ${configFilePath()}\n`);
|
|
48
|
+
process.stdout.write(`url: ${next.url}\n`);
|
|
49
|
+
if (next.apiKey) {
|
|
50
|
+
process.stdout.write(`key: ${next.apiKey.slice(0, 4)}…(redacted)\n`);
|
|
51
|
+
} else {
|
|
52
|
+
process.stdout.write('key: (unset)\n');
|
|
53
|
+
}
|
|
54
|
+
});
|
|
58
55
|
|
|
59
56
|
// Register the spec'd commands.
|
|
60
57
|
registerSearch(program, getClient);
|
|
@@ -81,7 +81,7 @@ export interface CreateDocsmintMcpServerOptions {
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export function createDocsmintMcpServer(options: CreateDocsmintMcpServerOptions = {}): McpServer {
|
|
84
|
-
const server = new McpServer({ name: 'docsmint', version: '0.6.
|
|
84
|
+
const server = new McpServer({ name: 'docsmint', version: '0.6.5' });
|
|
85
85
|
registerDocsmintMcpCapabilities(server, options.client ?? defaultClient);
|
|
86
86
|
return server;
|
|
87
87
|
}
|
package/server.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
|
|
3
|
-
"name": "io.github.
|
|
3
|
+
"name": "io.github.HiAi-gg/docsmint",
|
|
4
4
|
"title": "DocsMint",
|
|
5
5
|
"description": "Manage scoped DocsMint documents, folders, categories, search, GraphRAG, and indexing through MCP.",
|
|
6
6
|
"repository": {
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
"source": "github",
|
|
9
9
|
"id": "1249550690"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.6.
|
|
11
|
+
"version": "0.6.5",
|
|
12
12
|
"packages": [
|
|
13
13
|
{
|
|
14
14
|
"registryType": "npm",
|
|
15
15
|
"identifier": "@hiai-gg/docsmint",
|
|
16
|
-
"version": "0.6.
|
|
16
|
+
"version": "0.6.5",
|
|
17
17
|
"transport": {
|
|
18
18
|
"type": "stdio"
|
|
19
19
|
},
|