@atlashub/smartstack-mcp 1.2.2 → 1.3.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 +88 -88
- package/config/default-config.json +62 -62
- package/dist/index.js +404 -17
- package/dist/index.js.map +1 -1
- package/package.json +65 -65
- package/templates/component.tsx.hbs +298 -298
- package/templates/controller.cs.hbs +166 -166
- package/templates/entity-extension.cs.hbs +231 -87
- package/templates/service-extension.cs.hbs +53 -53
package/README.md
CHANGED
|
@@ -1,88 +1,88 @@
|
|
|
1
|
-
# @atlashub/smartstack-mcp
|
|
2
|
-
|
|
3
|
-
MCP server for SmartStack/AtlasHub platform development.
|
|
4
|
-
|
|
5
|
-
## Quick Start
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install -g @atlashub/smartstack-mcp
|
|
9
|
-
claude mcp add -s user smartstack -- smartstack-mcp
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
## Installation
|
|
13
|
-
|
|
14
|
-
### Claude Code CLI
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
claude mcp add -s user smartstack -- npx -y @atlashub/smartstack-mcp
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
### VS Code
|
|
21
|
-
|
|
22
|
-
Create `.mcp.json` at project root:
|
|
23
|
-
|
|
24
|
-
```json
|
|
25
|
-
{
|
|
26
|
-
"mcpServers": {
|
|
27
|
-
"smartstack": {
|
|
28
|
-
"command": "npx",
|
|
29
|
-
"args": ["-y", "@atlashub/smartstack-mcp"]
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Claude Desktop
|
|
36
|
-
|
|
37
|
-
Config file location:
|
|
38
|
-
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
39
|
-
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
40
|
-
|
|
41
|
-
```json
|
|
42
|
-
{
|
|
43
|
-
"mcpServers": {
|
|
44
|
-
"smartstack": {
|
|
45
|
-
"command": "npx",
|
|
46
|
-
"args": ["-y", "@atlashub/smartstack-mcp"]
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## Context7 (Optional)
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
claude mcp add context7 -s user -- npx -y @upstash/context7-mcp
|
|
56
|
-
```
|
|
57
|
-
|
|
58
|
-
## Configuration
|
|
59
|
-
|
|
60
|
-
| Variable | Description | Required |
|
|
61
|
-
|----------|-------------|----------|
|
|
62
|
-
| `SMARTSTACK_PROJECT_PATH` | Path to your SmartStack.app project | Yes |
|
|
63
|
-
| `SMARTSTACK_API_URL` | SmartStack API URL | No |
|
|
64
|
-
| `LOG_LEVEL` | Logging level (debug, info, warn, error) | No |
|
|
65
|
-
|
|
66
|
-
## Features
|
|
67
|
-
|
|
68
|
-
### Tools
|
|
69
|
-
|
|
70
|
-
| Tool | Description |
|
|
71
|
-
|------|-------------|
|
|
72
|
-
| `validate_conventions` | Validate AtlasHub conventions |
|
|
73
|
-
| `check_migrations` | Analyze EF Core migrations |
|
|
74
|
-
| `scaffold_extension` | Generate code scaffolding |
|
|
75
|
-
| `api_docs` | Get API documentation |
|
|
76
|
-
|
|
77
|
-
### Resources
|
|
78
|
-
|
|
79
|
-
| Resource URI | Description |
|
|
80
|
-
|--------------|-------------|
|
|
81
|
-
| `smartstack://conventions` | Naming conventions |
|
|
82
|
-
| `smartstack://project` | Project information |
|
|
83
|
-
| `smartstack://api/{endpoint}` | API documentation |
|
|
84
|
-
| `smartstack://schema/{table}` | Database schema |
|
|
85
|
-
|
|
86
|
-
## License
|
|
87
|
-
|
|
88
|
-
MIT - AtlasHub
|
|
1
|
+
# @atlashub/smartstack-mcp
|
|
2
|
+
|
|
3
|
+
MCP server for SmartStack/AtlasHub platform development.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @atlashub/smartstack-mcp
|
|
9
|
+
claude mcp add -s user smartstack -- smartstack-mcp
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
### Claude Code CLI
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
claude mcp add -s user smartstack -- npx -y @atlashub/smartstack-mcp
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
### VS Code
|
|
21
|
+
|
|
22
|
+
Create `.mcp.json` at project root:
|
|
23
|
+
|
|
24
|
+
```json
|
|
25
|
+
{
|
|
26
|
+
"mcpServers": {
|
|
27
|
+
"smartstack": {
|
|
28
|
+
"command": "npx",
|
|
29
|
+
"args": ["-y", "@atlashub/smartstack-mcp"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Claude Desktop
|
|
36
|
+
|
|
37
|
+
Config file location:
|
|
38
|
+
- **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`
|
|
39
|
+
- **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"mcpServers": {
|
|
44
|
+
"smartstack": {
|
|
45
|
+
"command": "npx",
|
|
46
|
+
"args": ["-y", "@atlashub/smartstack-mcp"]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Context7 (Optional)
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
claude mcp add context7 -s user -- npx -y @upstash/context7-mcp
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Configuration
|
|
59
|
+
|
|
60
|
+
| Variable | Description | Required |
|
|
61
|
+
|----------|-------------|----------|
|
|
62
|
+
| `SMARTSTACK_PROJECT_PATH` | Path to your SmartStack.app project | Yes |
|
|
63
|
+
| `SMARTSTACK_API_URL` | SmartStack API URL | No |
|
|
64
|
+
| `LOG_LEVEL` | Logging level (debug, info, warn, error) | No |
|
|
65
|
+
|
|
66
|
+
## Features
|
|
67
|
+
|
|
68
|
+
### Tools
|
|
69
|
+
|
|
70
|
+
| Tool | Description |
|
|
71
|
+
|------|-------------|
|
|
72
|
+
| `validate_conventions` | Validate AtlasHub conventions |
|
|
73
|
+
| `check_migrations` | Analyze EF Core migrations |
|
|
74
|
+
| `scaffold_extension` | Generate code scaffolding |
|
|
75
|
+
| `api_docs` | Get API documentation |
|
|
76
|
+
|
|
77
|
+
### Resources
|
|
78
|
+
|
|
79
|
+
| Resource URI | Description |
|
|
80
|
+
|--------------|-------------|
|
|
81
|
+
| `smartstack://conventions` | Naming conventions |
|
|
82
|
+
| `smartstack://project` | Project information |
|
|
83
|
+
| `smartstack://api/{endpoint}` | API documentation |
|
|
84
|
+
| `smartstack://schema/{table}` | Database schema |
|
|
85
|
+
|
|
86
|
+
## License
|
|
87
|
+
|
|
88
|
+
MIT - AtlasHub
|
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://atlashub.ch/schemas/smartstack-mcp-config.json",
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"smartstack": {
|
|
5
|
-
"projectPath": "D:/SmartStack.app/features/Rework-to-package",
|
|
6
|
-
"apiUrl": "https://localhost:7055",
|
|
7
|
-
"apiEnabled": true
|
|
8
|
-
},
|
|
9
|
-
"conventions": {
|
|
10
|
-
"schemas": {
|
|
11
|
-
"platform": "core",
|
|
12
|
-
"extensions": "extensions"
|
|
13
|
-
},
|
|
14
|
-
"tablePrefixes": [
|
|
15
|
-
"auth_",
|
|
16
|
-
"nav_",
|
|
17
|
-
"usr_",
|
|
18
|
-
"ai_",
|
|
19
|
-
"cfg_",
|
|
20
|
-
"wkf_",
|
|
21
|
-
"support_",
|
|
22
|
-
"entra_",
|
|
23
|
-
"ref_",
|
|
24
|
-
"loc_",
|
|
25
|
-
"lic_"
|
|
26
|
-
],
|
|
27
|
-
"migrationFormat": "YYYYMMDD_NNN_{Description}",
|
|
28
|
-
"namespaces": {
|
|
29
|
-
"domain": "SmartStack.Domain",
|
|
30
|
-
"application": "SmartStack.Application",
|
|
31
|
-
"infrastructure": "SmartStack.Infrastructure",
|
|
32
|
-
"api": "SmartStack.Api"
|
|
33
|
-
},
|
|
34
|
-
"servicePattern": {
|
|
35
|
-
"interface": "I{Name}Service",
|
|
36
|
-
"implementation": "{Name}Service"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"efcore": {
|
|
40
|
-
"contexts": [
|
|
41
|
-
{
|
|
42
|
-
"name": "ApplicationDbContext",
|
|
43
|
-
"projectPath": "auto-detect",
|
|
44
|
-
"migrationsFolder": "Migrations"
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"validation": {
|
|
48
|
-
"checkModelSnapshot": true,
|
|
49
|
-
"checkMigrationOrder": true,
|
|
50
|
-
"requireBuildSuccess": true
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
"scaffolding": {
|
|
54
|
-
"outputPath": "auto-detect",
|
|
55
|
-
"templates": {
|
|
56
|
-
"service": "templates/service-extension.cs.hbs",
|
|
57
|
-
"entity": "templates/entity-extension.cs.hbs",
|
|
58
|
-
"controller": "templates/controller.cs.hbs",
|
|
59
|
-
"component": "templates/component.tsx.hbs"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://atlashub.ch/schemas/smartstack-mcp-config.json",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"smartstack": {
|
|
5
|
+
"projectPath": "D:/SmartStack.app/features/Rework-to-package",
|
|
6
|
+
"apiUrl": "https://localhost:7055",
|
|
7
|
+
"apiEnabled": true
|
|
8
|
+
},
|
|
9
|
+
"conventions": {
|
|
10
|
+
"schemas": {
|
|
11
|
+
"platform": "core",
|
|
12
|
+
"extensions": "extensions"
|
|
13
|
+
},
|
|
14
|
+
"tablePrefixes": [
|
|
15
|
+
"auth_",
|
|
16
|
+
"nav_",
|
|
17
|
+
"usr_",
|
|
18
|
+
"ai_",
|
|
19
|
+
"cfg_",
|
|
20
|
+
"wkf_",
|
|
21
|
+
"support_",
|
|
22
|
+
"entra_",
|
|
23
|
+
"ref_",
|
|
24
|
+
"loc_",
|
|
25
|
+
"lic_"
|
|
26
|
+
],
|
|
27
|
+
"migrationFormat": "YYYYMMDD_NNN_{Description}",
|
|
28
|
+
"namespaces": {
|
|
29
|
+
"domain": "SmartStack.Domain",
|
|
30
|
+
"application": "SmartStack.Application",
|
|
31
|
+
"infrastructure": "SmartStack.Infrastructure",
|
|
32
|
+
"api": "SmartStack.Api"
|
|
33
|
+
},
|
|
34
|
+
"servicePattern": {
|
|
35
|
+
"interface": "I{Name}Service",
|
|
36
|
+
"implementation": "{Name}Service"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"efcore": {
|
|
40
|
+
"contexts": [
|
|
41
|
+
{
|
|
42
|
+
"name": "ApplicationDbContext",
|
|
43
|
+
"projectPath": "auto-detect",
|
|
44
|
+
"migrationsFolder": "Migrations"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
"validation": {
|
|
48
|
+
"checkModelSnapshot": true,
|
|
49
|
+
"checkMigrationOrder": true,
|
|
50
|
+
"requireBuildSuccess": true
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"scaffolding": {
|
|
54
|
+
"outputPath": "auto-detect",
|
|
55
|
+
"templates": {
|
|
56
|
+
"service": "templates/service-extension.cs.hbs",
|
|
57
|
+
"entity": "templates/entity-extension.cs.hbs",
|
|
58
|
+
"controller": "templates/controller.cs.hbs",
|
|
59
|
+
"component": "templates/component.tsx.hbs"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|