repograph-cli 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/README.md +5 -1
- package/dist/bin/cli.js +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/renderer/htmlTemplate.js +2 -2
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Turn any codebase into an interactive architecture map in 2 seconds. Zero server, full privacy, built for Claude & Claude Code.
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
[](https://www.npmjs.com/package/repograph-cli) [](LICENSE) [](https://nodejs.org/) 
|
|
8
8
|
|
|
@@ -52,6 +52,10 @@ The static SVG arranges files in entry → business → unknown → data → uti
|
|
|
52
52
|
|
|
53
53
|
## Use with Claude
|
|
54
54
|
|
|
55
|
+
### Install from the MCP Registry
|
|
56
|
+
|
|
57
|
+
Registry metadata is prepared under the name `io.github.Karry1123/repograph`. After publication to the [official MCP Registry](https://registry.modelcontextprotocol.io), look up that name in a registry-compatible client; the manual Claude setup below also works.
|
|
58
|
+
|
|
55
59
|
### Claude Desktop
|
|
56
60
|
|
|
57
61
|
Add this entry to `claude_desktop_config.json`, merging it with existing servers:
|
package/dist/bin/cli.js
CHANGED
|
@@ -8,7 +8,7 @@ import { renderToHtml } from '../src/renderer/htmlTemplate.js';
|
|
|
8
8
|
import { renderToMermaid, renderToSvg } from '../src/renderer/svgExport.js';
|
|
9
9
|
import { startMcpServer } from '../src/index.js';
|
|
10
10
|
const program = new Command();
|
|
11
|
-
program.name('repograph-cli').version('0.1.
|
|
11
|
+
program.name('repograph-cli').version('0.1.1').description('Turn a local codebase into an interactive architecture map')
|
|
12
12
|
.argument('[path]', 'Repository directory', '.')
|
|
13
13
|
.option('-o, --output <file>', 'Output file (HTML defaults to repograph.html)')
|
|
14
14
|
.option('--theme <theme>', 'dark, light, or matrix', 'dark')
|
package/dist/src/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { analyzeRepository } from './api.js';
|
|
|
8
8
|
import { impactPath } from './core/graph.js';
|
|
9
9
|
import { renderToHtml } from './renderer/htmlTemplate.js';
|
|
10
10
|
export function createServer() {
|
|
11
|
-
const server = new McpServer({ name: 'repograph-cli', version: '0.1.
|
|
11
|
+
const server = new McpServer({ name: 'repograph-cli', version: '0.1.1' });
|
|
12
12
|
const result = (data) => ({ content: [{ type: 'text', text: JSON.stringify(data, null, 2) }] });
|
|
13
13
|
const failure = (error) => ({ ...result({ error: error instanceof Error ? error.message : String(error) }), isError: true });
|
|
14
14
|
server.tool('scan_repository_graph', 'Scan a local codebase into an architecture graph. Test files and external imports are excluded.', {
|
|
@@ -22,7 +22,7 @@ export function renderToHtml(graph, options) {
|
|
|
22
22
|
</head>
|
|
23
23
|
<body>
|
|
24
24
|
<header>
|
|
25
|
-
<div class="brand"><div class="logo" aria-hidden="true">⌘</div><strong>repograph-cli</strong><span class="version">v0.1.
|
|
25
|
+
<div class="brand"><div class="logo" aria-hidden="true">⌘</div><strong>repograph-cli</strong><span class="version">v0.1.1</span></div>
|
|
26
26
|
<div class="metrics" aria-label="Repository metrics" id="metrics"></div>
|
|
27
27
|
<div class="header-actions"><select id="theme" aria-label="Color theme"><option value="dark">Dark</option><option value="light">Light</option><option value="matrix">Matrix</option></select><button id="help-button" aria-label="Help and keyboard shortcuts">?</button></div>
|
|
28
28
|
</header>
|
|
@@ -237,7 +237,7 @@ export function renderToHtml(graph, options) {
|
|
|
237
237
|
collapsed.add(id);
|
|
238
238
|
refreshVisibility();
|
|
239
239
|
}
|
|
240
|
-
|
|
240
|
+
scheduleRadar(); updateStatus(); toast((collapsed.has(id) ? 'Collapsed ' : 'Expanded ') + clustersById.get(id).label);
|
|
241
241
|
}
|
|
242
242
|
cy.on('dbltap', 'node.cluster, node.meta', event => {
|
|
243
243
|
const target = event.target;
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repograph-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"mcpName": "io.github.Karry1123/repograph",
|
|
4
5
|
"description": "Instant, interactive architecture maps for any codebase. Zero-config CLI + MCP server for Claude Code & Claude Desktop.",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"bin": {
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
},
|
|
10
11
|
"scripts": {
|
|
11
12
|
"build": "tsc",
|
|
13
|
+
"check:server-json": "node scripts/check-server-json.mjs",
|
|
12
14
|
"dev": "tsx bin/cli.ts",
|
|
13
15
|
"start": "node dist/src/index.js",
|
|
14
16
|
"mcp": "node dist/src/index.js",
|