@claudetools/tools 0.1.0
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 +86 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +61 -0
- package/dist/handlers/tool-handlers.d.ts +2 -0
- package/dist/handlers/tool-handlers.js +1108 -0
- package/dist/helpers/api-client.d.ts +50 -0
- package/dist/helpers/api-client.js +60 -0
- package/dist/helpers/config-manager.d.ts +68 -0
- package/dist/helpers/config-manager.js +306 -0
- package/dist/helpers/config.d.ts +55 -0
- package/dist/helpers/config.js +174 -0
- package/dist/helpers/dependencies.d.ts +30 -0
- package/dist/helpers/dependencies.js +87 -0
- package/dist/helpers/formatter.d.ts +2 -0
- package/dist/helpers/formatter.js +24 -0
- package/dist/helpers/patterns.d.ts +15 -0
- package/dist/helpers/patterns.js +118 -0
- package/dist/helpers/project-registration.d.ts +27 -0
- package/dist/helpers/project-registration.js +338 -0
- package/dist/helpers/tasks.d.ts +152 -0
- package/dist/helpers/tasks.js +274 -0
- package/dist/helpers/workers.d.ts +18 -0
- package/dist/helpers/workers.js +146 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +75 -0
- package/dist/logger.d.ts +32 -0
- package/dist/logger.js +401 -0
- package/dist/prompts.d.ts +2 -0
- package/dist/prompts.js +64 -0
- package/dist/resources.d.ts +2 -0
- package/dist/resources.js +79 -0
- package/dist/setup.d.ts +1 -0
- package/dist/setup.js +206 -0
- package/dist/tools.d.ts +2 -0
- package/dist/tools.js +748 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# claudetools
|
|
2
|
+
|
|
3
|
+
MCP server for Claude Code - persistent AI memory, task management, and codebase intelligence.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g claudetools
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Quick Start
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
# Interactive setup
|
|
15
|
+
claudetools --setup
|
|
16
|
+
|
|
17
|
+
# Or just start using - projects auto-register on first use
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Configuration
|
|
21
|
+
|
|
22
|
+
Add to Claude Code's MCP settings (`~/.claude/mcp.json`):
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"mcpServers": {
|
|
27
|
+
"claudetools": {
|
|
28
|
+
"command": "claudetools"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Environment Variables (Optional)
|
|
35
|
+
|
|
36
|
+
```bash
|
|
37
|
+
CLAUDETOOLS_API_KEY=your-api-key # From claudetools.dev
|
|
38
|
+
CLAUDETOOLS_API_URL=https://api.claudetools.dev
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Config File (Optional)
|
|
42
|
+
|
|
43
|
+
`~/.claudetools/config.json`:
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"apiKey": "your-api-key",
|
|
47
|
+
"apiUrl": "https://api.claudetools.dev",
|
|
48
|
+
"autoRegister": true
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Features
|
|
53
|
+
|
|
54
|
+
### Memory System
|
|
55
|
+
- **Persistent memory** across sessions
|
|
56
|
+
- **Knowledge graph** with entities and relationships
|
|
57
|
+
- **Semantic search** for relevant context
|
|
58
|
+
- **Auto-injection** of relevant memories
|
|
59
|
+
|
|
60
|
+
### Task Management
|
|
61
|
+
- **Hierarchical tasks** (epics → tasks → subtasks)
|
|
62
|
+
- **Parallel execution** with worker dispatch
|
|
63
|
+
- **Progress tracking** with state management
|
|
64
|
+
|
|
65
|
+
### Codebase Intelligence
|
|
66
|
+
- **Function call graphs** and dependencies
|
|
67
|
+
- **Impact analysis** for changes
|
|
68
|
+
- **Pattern detection** (security, performance)
|
|
69
|
+
|
|
70
|
+
## CLI
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
claudetools --setup # Interactive configuration
|
|
74
|
+
claudetools --version # Show version
|
|
75
|
+
claudetools --help # Show help
|
|
76
|
+
claudetools # Start MCP server
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
## Documentation
|
|
80
|
+
|
|
81
|
+
- [GitHub](https://github.com/claudetools/memory)
|
|
82
|
+
- [Configuration Guide](./CONFIG.md)
|
|
83
|
+
|
|
84
|
+
## License
|
|
85
|
+
|
|
86
|
+
MIT
|
package/dist/cli.d.ts
ADDED
package/dist/cli.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// =============================================================================
|
|
3
|
+
// ClaudeTools Memory CLI Entry Point
|
|
4
|
+
// =============================================================================
|
|
5
|
+
// Handles command-line flags and dispatches to setup or server
|
|
6
|
+
import { parseArgs } from 'node:util';
|
|
7
|
+
import { readFileSync } from 'node:fs';
|
|
8
|
+
import { fileURLToPath } from 'node:url';
|
|
9
|
+
import { dirname, join } from 'node:path';
|
|
10
|
+
import { runSetup } from './setup.js';
|
|
11
|
+
import { startServer } from './index.js';
|
|
12
|
+
// Get version from package.json
|
|
13
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
+
const __dirname = dirname(__filename);
|
|
15
|
+
const packagePath = join(__dirname, '..', 'package.json');
|
|
16
|
+
const packageJson = JSON.parse(readFileSync(packagePath, 'utf-8'));
|
|
17
|
+
const version = packageJson.version;
|
|
18
|
+
// Parse command-line arguments
|
|
19
|
+
const { values } = parseArgs({
|
|
20
|
+
options: {
|
|
21
|
+
setup: { type: 'boolean', short: 's' },
|
|
22
|
+
version: { type: 'boolean', short: 'v' },
|
|
23
|
+
help: { type: 'boolean', short: 'h' },
|
|
24
|
+
},
|
|
25
|
+
allowPositionals: false,
|
|
26
|
+
});
|
|
27
|
+
// Handle version flag
|
|
28
|
+
if (values.version) {
|
|
29
|
+
console.log(`claudetools v${version}`);
|
|
30
|
+
process.exit(0);
|
|
31
|
+
}
|
|
32
|
+
// Handle help flag
|
|
33
|
+
if (values.help) {
|
|
34
|
+
console.log(`
|
|
35
|
+
claudetools - MCP server for Claude Code
|
|
36
|
+
|
|
37
|
+
Usage:
|
|
38
|
+
claudetools [options]
|
|
39
|
+
|
|
40
|
+
Options:
|
|
41
|
+
-s, --setup Interactive setup wizard
|
|
42
|
+
-v, --version Show version
|
|
43
|
+
-h, --help Show this help
|
|
44
|
+
|
|
45
|
+
Running without options starts the MCP server.
|
|
46
|
+
|
|
47
|
+
Documentation: https://github.com/claudetools/memory
|
|
48
|
+
`);
|
|
49
|
+
process.exit(0);
|
|
50
|
+
}
|
|
51
|
+
// Handle setup flag
|
|
52
|
+
if (values.setup) {
|
|
53
|
+
runSetup().catch((error) => {
|
|
54
|
+
console.error('Setup failed:', error);
|
|
55
|
+
process.exit(1);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// Start MCP server
|
|
60
|
+
startServer();
|
|
61
|
+
}
|