@venizia/ignis-docs 0.0.6-3 → 0.0.7-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 +125 -388
- package/dist/mcp-server/common/config.d.ts +0 -21
- package/dist/mcp-server/common/config.d.ts.map +1 -1
- package/dist/mcp-server/common/config.js +1 -36
- package/dist/mcp-server/common/config.js.map +1 -1
- package/dist/mcp-server/helpers/docs.helper.d.ts +0 -24
- package/dist/mcp-server/helpers/docs.helper.d.ts.map +1 -1
- package/dist/mcp-server/helpers/docs.helper.js +0 -25
- package/dist/mcp-server/helpers/docs.helper.js.map +1 -1
- package/dist/mcp-server/helpers/github.helper.d.ts +0 -13
- package/dist/mcp-server/helpers/github.helper.d.ts.map +1 -1
- package/dist/mcp-server/helpers/github.helper.js +3 -20
- package/dist/mcp-server/helpers/github.helper.js.map +1 -1
- package/dist/mcp-server/index.js +0 -20
- package/dist/mcp-server/index.js.map +1 -1
- package/dist/mcp-server/tools/base.tool.d.ts +2 -79
- package/dist/mcp-server/tools/base.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/base.tool.js +1 -38
- package/dist/mcp-server/tools/base.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-content.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-content.tool.js +0 -9
- package/dist/mcp-server/tools/docs/get-document-content.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.js +0 -9
- package/dist/mcp-server/tools/docs/get-document-metadata.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/get-package-overview.tool.d.ts +0 -6
- package/dist/mcp-server/tools/docs/get-package-overview.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/get-package-overview.tool.js +1 -24
- package/dist/mcp-server/tools/docs/get-package-overview.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/list-categories.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/list-categories.tool.js +0 -9
- package/dist/mcp-server/tools/docs/list-categories.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/list-documents.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/list-documents.tool.js +0 -9
- package/dist/mcp-server/tools/docs/list-documents.tool.js.map +1 -1
- package/dist/mcp-server/tools/docs/search-documents.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/docs/search-documents.tool.js +0 -9
- package/dist/mcp-server/tools/docs/search-documents.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/list-project-files.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/list-project-files.tool.js +0 -9
- package/dist/mcp-server/tools/github/list-project-files.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/search-code.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/search-code.tool.js +1 -13
- package/dist/mcp-server/tools/github/search-code.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/verify-dependencies.tool.d.ts +0 -4
- package/dist/mcp-server/tools/github/verify-dependencies.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/verify-dependencies.tool.js +1 -18
- package/dist/mcp-server/tools/github/verify-dependencies.tool.js.map +1 -1
- package/dist/mcp-server/tools/github/view-source-file.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/github/view-source-file.tool.js +0 -9
- package/dist/mcp-server/tools/github/view-source-file.tool.js.map +1 -1
- package/dist/mcp-server/tools/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/index.js +0 -2
- package/dist/mcp-server/tools/index.js.map +1 -1
- package/package.json +1 -1
- package/wiki/best-practices/api-usage-examples.md +7 -5
- package/wiki/best-practices/code-style-standards/advanced-patterns.md +1 -1
- package/wiki/best-practices/code-style-standards/constants-configuration.md +1 -1
- package/wiki/best-practices/code-style-standards/control-flow.md +1 -1
- package/wiki/best-practices/code-style-standards/function-patterns.md +1 -1
- package/wiki/best-practices/common-pitfalls.md +1 -1
- package/wiki/best-practices/data-modeling.md +33 -1
- package/wiki/best-practices/error-handling.md +7 -4
- package/wiki/best-practices/performance-optimization.md +1 -1
- package/wiki/best-practices/security-guidelines.md +5 -4
- package/wiki/guides/core-concepts/components-guide.md +1 -1
- package/wiki/guides/core-concepts/controllers.md +14 -8
- package/wiki/guides/core-concepts/persistent/models.md +32 -0
- package/wiki/guides/core-concepts/services.md +2 -1
- package/wiki/guides/get-started/5-minute-quickstart.md +1 -1
- package/wiki/guides/tutorials/building-a-crud-api.md +2 -1
- package/wiki/guides/tutorials/complete-installation.md +2 -2
- package/wiki/guides/tutorials/ecommerce-api.md +3 -3
- package/wiki/guides/tutorials/realtime-chat.md +7 -6
- package/wiki/index.md +2 -1
- package/wiki/references/base/components.md +2 -1
- package/wiki/references/base/controllers.md +8 -4
- package/wiki/references/base/middlewares.md +2 -1
- package/wiki/references/base/models.md +11 -2
- package/wiki/references/base/services.md +2 -1
- package/wiki/references/components/authentication/api.md +525 -205
- package/wiki/references/components/authentication/errors.md +502 -105
- package/wiki/references/components/authentication/index.md +388 -75
- package/wiki/references/components/authentication/usage.md +426 -264
- package/wiki/references/components/authorization/usage.md +62 -0
- package/wiki/references/components/health-check.md +2 -1
- package/wiki/references/components/socket-io/index.md +9 -4
- package/wiki/references/components/socket-io/usage.md +1 -1
- package/wiki/references/components/static-asset/index.md +3 -5
- package/wiki/references/components/swagger.md +2 -1
- package/wiki/references/configuration/environment-variables.md +2 -1
- package/wiki/references/configuration/index.md +2 -1
- package/wiki/references/helpers/error/index.md +1 -1
- package/wiki/references/helpers/inversion/index.md +1 -1
- package/wiki/references/helpers/redis/index.md +2 -9
- package/wiki/references/quick-reference.md +3 -5
- package/wiki/references/utilities/crypto.md +2 -2
- package/wiki/references/utilities/date.md +5 -5
- package/wiki/references/utilities/index.md +3 -11
- package/wiki/references/utilities/jsx.md +4 -2
- package/wiki/references/utilities/module.md +1 -1
- package/wiki/references/utilities/parse.md +4 -4
- package/wiki/references/utilities/performance.md +2 -2
- package/wiki/references/utilities/promise.md +4 -4
- package/wiki/references/utilities/request.md +2 -2
package/README.md
CHANGED
|
@@ -1,9 +1,42 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
3
|
+
# :fire: IGNIS - @venizia/ignis-docs
|
|
5
4
|
|
|
6
|
-
Documentation and
|
|
5
|
+
**Documentation site and MCP server for the Ignis Framework**
|
|
6
|
+
|
|
7
|
+
[](https://www.npmjs.com/package/@venizia/ignis-docs)
|
|
8
|
+
[](https://opensource.org/licenses/MIT)
|
|
9
|
+
[](https://www.typescriptlang.org/)
|
|
10
|
+
[](https://modelcontextprotocol.io/)
|
|
11
|
+
|
|
12
|
+
VitePress-powered documentation site and an MCP server with 11 tools that gives AI assistants real-time access to Ignis knowledge -- search docs, browse source code, and verify dependencies.
|
|
13
|
+
|
|
14
|
+
[Installation](#installation) • [MCP Setup](#mcp-server-setup) • [Available Tools](#available-mcp-tools) • [Online Docs](https://venizia-ai.github.io/ignis)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Highlights
|
|
21
|
+
|
|
22
|
+
| | Feature | |
|
|
23
|
+
| :---: | :--- | :--- |
|
|
24
|
+
| **1** | **11 MCP Tools** | Search docs, browse code, verify deps from any AI assistant |
|
|
25
|
+
| **2** | **Fuzzy Search** | Fuse.js-powered search across all documentation |
|
|
26
|
+
| **3** | **VitePress Site** | Full-featured docs with guides, API references, and tutorials |
|
|
27
|
+
| **4** | **CLI Binary** | Ships as `ignis-docs-mcp` for easy MCP integration |
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Features
|
|
32
|
+
|
|
33
|
+
- **VitePress Documentation Site** -- Full-featured docs with guides, API references, tutorials, and best practices
|
|
34
|
+
- **MCP Server** -- 11 tools for AI assistants to search docs, browse source code, and verify dependencies
|
|
35
|
+
- **Fuzzy Search** -- Fuse.js-powered search across all documentation (title weight 0.7, content weight 0.3)
|
|
36
|
+
- **GitHub Integration** -- Browse project files, search code, and verify dependency versions directly from AI tools
|
|
37
|
+
- **CLI Binary** -- Ships as `ignis-docs-mcp` for easy integration with Claude Desktop and other MCP-compatible clients
|
|
38
|
+
|
|
39
|
+
---
|
|
7
40
|
|
|
8
41
|
## Installation
|
|
9
42
|
|
|
@@ -13,7 +46,11 @@ bun add @venizia/ignis-docs
|
|
|
13
46
|
npm install @venizia/ignis-docs
|
|
14
47
|
```
|
|
15
48
|
|
|
16
|
-
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## MCP Server Setup
|
|
52
|
+
|
|
53
|
+
### Claude Desktop
|
|
17
54
|
|
|
18
55
|
Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
19
56
|
|
|
@@ -28,432 +65,132 @@ Add to your Claude Desktop config (`claude_desktop_config.json`):
|
|
|
28
65
|
}
|
|
29
66
|
```
|
|
30
67
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
## Available MCP Tools
|
|
34
|
-
|
|
35
|
-
| Tool | Description |
|
|
36
|
-
|------|-------------|
|
|
37
|
-
| **search** | Search documentation by keyword |
|
|
38
|
-
| **getDocContent** | Get full content of a document |
|
|
39
|
-
| **listDocs** | List all available documents |
|
|
40
|
-
| **listCategories** | List documentation categories |
|
|
41
|
-
| **getDocMetadata** | Get document metadata |
|
|
42
|
-
|
|
43
|
-
## About Ignis
|
|
44
|
-
|
|
45
|
-
Ignis brings together the structured, enterprise development experience of **LoopBack 4** with the blazing speed and simplicity of **Hono** - giving you the best of both worlds.
|
|
68
|
+
Alternatively, use `npx`:
|
|
46
69
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## MCP Docs Server | PROMP REQUEST:
|
|
60
|
-
|
|
61
|
-
**Question:** With Bun runtime + package management, create a monorepo project, "packages" is root folder of contain another project folder. Inside "packages" have two folder "be" and "fe". Just implement be with best practice ignis framework.
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
## Plan: Create Bun Workspace Monorepo with Production-Ready Ignis Backend
|
|
65
|
-
|
|
66
|
-
## User Requirements ✅
|
|
67
|
-
- **Backend Scope**: Production Starter Kit (CRUD API + Authentication + Components)
|
|
68
|
-
- **Components**: Swagger (API Docs), Health Check, Authentication (JWT)
|
|
69
|
-
- **Frontend**: Empty placeholder with basic package.json
|
|
70
|
-
- **Architecture**: Follow Ignis best practices
|
|
71
|
-
|
|
72
|
-
---
|
|
73
|
-
|
|
74
|
-
## Implementation Plan
|
|
70
|
+
```json
|
|
71
|
+
{
|
|
72
|
+
"mcpServers": {
|
|
73
|
+
"ignis-docs": {
|
|
74
|
+
"command": "npx",
|
|
75
|
+
"args": ["@venizia/ignis-docs@latest"]
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
```
|
|
75
80
|
|
|
76
|
-
###
|
|
81
|
+
### Claude Code
|
|
77
82
|
|
|
78
|
-
|
|
79
|
-
- `package.json` - Root workspace configuration
|
|
80
|
-
- `.gitignore` - Ignore node_modules, dist, .env files
|
|
81
|
-
- `README.md` - Project documentation
|
|
83
|
+
Add to your Claude Code MCP settings:
|
|
82
84
|
|
|
83
|
-
**Root package.json structure:**
|
|
84
85
|
```json
|
|
85
86
|
{
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"be:dev": "bun --cwd packages/be run server:dev",
|
|
92
|
-
"be:build": "bun --cwd packages/be run build",
|
|
93
|
-
"be:lint": "bun --cwd packages/be run lint"
|
|
87
|
+
"mcpServers": {
|
|
88
|
+
"ignis-docs": {
|
|
89
|
+
"command": "bunx",
|
|
90
|
+
"args": ["@venizia/ignis-docs@latest"]
|
|
91
|
+
}
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
```
|
|
97
95
|
|
|
98
96
|
---
|
|
99
97
|
|
|
100
|
-
|
|
98
|
+
## Available MCP Tools
|
|
101
99
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
│ └── clean.sh
|
|
113
|
-
└── src/
|
|
114
|
-
├── index.ts # Entry point
|
|
115
|
-
├── application.ts # Main application class
|
|
116
|
-
├── migration.ts # Drizzle migration config
|
|
117
|
-
├── controllers/
|
|
118
|
-
│ ├── hello.controller.ts
|
|
119
|
-
│ └── todo.controller.ts
|
|
120
|
-
├── services/
|
|
121
|
-
│ └── authentication.service.ts
|
|
122
|
-
├── repositories/
|
|
123
|
-
│ └── todo.repository.ts
|
|
124
|
-
├── datasources/
|
|
125
|
-
│ └── postgres.datasource.ts
|
|
126
|
-
└── models/
|
|
127
|
-
└── todo.model.ts
|
|
128
|
-
```
|
|
100
|
+
### Documentation Tools
|
|
101
|
+
|
|
102
|
+
| Tool | Description |
|
|
103
|
+
| --- | --- |
|
|
104
|
+
| **searchDocs** | Search documentation by keyword with fuzzy matching |
|
|
105
|
+
| **getDocContent** | Get the full content of a specific document |
|
|
106
|
+
| **listDocs** | List all available documentation pages |
|
|
107
|
+
| **listCategories** | List documentation categories and their structure |
|
|
108
|
+
| **getDocMetadata** | Get metadata (title, path, category) for a document |
|
|
109
|
+
| **getPackageOverview** | Get an overview of a specific Ignis package |
|
|
129
110
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
111
|
+
### GitHub Tools
|
|
112
|
+
|
|
113
|
+
| Tool | Description |
|
|
114
|
+
| --- | --- |
|
|
115
|
+
| **searchCode** | Search the Ignis source code by keyword |
|
|
116
|
+
| **listProjectFiles** | List files in a specific directory of the repository |
|
|
117
|
+
| **viewSourceFile** | View the contents of a source file |
|
|
118
|
+
| **verifyDependencies** | Check dependency versions and compatibility |
|
|
135
119
|
|
|
136
120
|
---
|
|
137
121
|
|
|
138
|
-
|
|
122
|
+
## Documentation Site
|
|
139
123
|
|
|
140
|
-
|
|
141
|
-
```bash
|
|
142
|
-
bun add hono @hono/zod-openapi @scalar/hono-api-reference @venizia/ignis dotenv-flow
|
|
143
|
-
bun add drizzle-orm drizzle-zod pg lodash
|
|
144
|
-
```
|
|
124
|
+
### Development
|
|
145
125
|
|
|
146
|
-
**Development dependencies:**
|
|
147
126
|
```bash
|
|
148
|
-
|
|
149
|
-
bun
|
|
150
|
-
```
|
|
127
|
+
# Start dev server
|
|
128
|
+
bun run docs:dev
|
|
151
129
|
|
|
152
|
-
|
|
130
|
+
# Build static site
|
|
131
|
+
bun run docs:build
|
|
153
132
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
**tsconfig.json:**
|
|
157
|
-
- Extend from `@venizia/dev-configs/tsconfig.common.json`
|
|
158
|
-
- Configure path aliases: `@/*` → `src/*`
|
|
159
|
-
- Output to `dist/`
|
|
160
|
-
|
|
161
|
-
**.prettierrc.mjs:**
|
|
162
|
-
- Import from `@venizia/dev-configs`
|
|
163
|
-
|
|
164
|
-
**eslint.config.mjs:**
|
|
165
|
-
- Import from `@venizia/dev-configs`
|
|
166
|
-
|
|
167
|
-
**.env.example:**
|
|
168
|
-
```env
|
|
169
|
-
# Application
|
|
170
|
-
HOST=0.0.0.0
|
|
171
|
-
PORT=3000
|
|
172
|
-
APP_ENV_APPLICATION_NAME=ignis-backend
|
|
173
|
-
|
|
174
|
-
# Database
|
|
175
|
-
APP_ENV_POSTGRES_HOST=localhost
|
|
176
|
-
APP_ENV_POSTGRES_PORT=5432
|
|
177
|
-
APP_ENV_POSTGRES_USERNAME=postgres
|
|
178
|
-
APP_ENV_POSTGRES_PASSWORD=your_password
|
|
179
|
-
APP_ENV_POSTGRES_DATABASE=ignis_db
|
|
180
|
-
|
|
181
|
-
# Authentication (REQUIRED - Generate strong secrets!)
|
|
182
|
-
APP_ENV_APPLICATION_SECRET=your-strong-application-secret-here
|
|
183
|
-
APP_ENV_JWT_SECRET=your-strong-jwt-secret-here
|
|
184
|
-
APP_ENV_JWT_EXPIRES_IN=86400
|
|
133
|
+
# Preview production build
|
|
134
|
+
bun run docs:preview
|
|
185
135
|
```
|
|
186
136
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
### 5. Core Implementation Files
|
|
190
|
-
|
|
191
|
-
#### `src/application.ts`
|
|
192
|
-
**Features:**
|
|
193
|
-
- Register PostgresDataSource
|
|
194
|
-
- Register TodoRepository
|
|
195
|
-
- Register TodoController, HelloController
|
|
196
|
-
- Register AuthenticationService
|
|
197
|
-
- Register all 3 components: HealthCheckComponent, SwaggerComponent, AuthenticateComponent
|
|
198
|
-
- Register JWTAuthenticationStrategy
|
|
199
|
-
- Configure app with base path `/api`
|
|
200
|
-
|
|
201
|
-
#### `src/models/todo.model.ts`
|
|
202
|
-
**Schema:**
|
|
203
|
-
- `id` (UUID, auto-generated)
|
|
204
|
-
- `title` (text, required)
|
|
205
|
-
- `description` (text, optional)
|
|
206
|
-
- `isCompleted` (boolean, default false)
|
|
207
|
-
- `createdAt`, `modifiedAt` (timestamps, auto-generated)
|
|
208
|
-
|
|
209
|
-
#### `src/datasources/postgres.datasource.ts`
|
|
210
|
-
**Features:**
|
|
211
|
-
- Connect to PostgreSQL using environment variables
|
|
212
|
-
- Register Todo model schema
|
|
213
|
-
- Implement connect/disconnect lifecycle
|
|
214
|
-
|
|
215
|
-
#### `src/repositories/todo.repository.ts`
|
|
216
|
-
**Features:**
|
|
217
|
-
- Extend `DefaultCRUDRepository<TTodoSchema>`
|
|
218
|
-
- Inject PostgresDataSource
|
|
219
|
-
|
|
220
|
-
#### `src/controllers/todo.controller.ts`
|
|
221
|
-
**Features:**
|
|
222
|
-
- Use `ControllerFactory.defineCrudController()` for auto-generated CRUD endpoints
|
|
223
|
-
- Base path: `/todos`
|
|
224
|
-
- All operations protected by JWT (optional - can be added later)
|
|
225
|
-
|
|
226
|
-
#### `src/controllers/hello.controller.ts`
|
|
227
|
-
**Features:**
|
|
228
|
-
- Simple GET `/hello` endpoint
|
|
229
|
-
- Returns `{ message: "Hello, World!" }`
|
|
230
|
-
- OpenAPI schema with Zod
|
|
231
|
-
|
|
232
|
-
#### `src/services/authentication.service.ts`
|
|
233
|
-
**Features:**
|
|
234
|
-
- Implement `IAuthService` interface
|
|
235
|
-
- `signIn()` method with hardcoded test credentials (test_username / test_password)
|
|
236
|
-
- Generate JWT using JWTTokenService
|
|
237
|
-
- TODO comments for production implementation (database lookup, password hashing)
|
|
238
|
-
|
|
239
|
-
#### `src/migration.ts`
|
|
240
|
-
**Features:**
|
|
241
|
-
- Drizzle Kit configuration
|
|
242
|
-
- Point to todo.model.ts
|
|
243
|
-
- Use PostgreSQL dialect
|
|
244
|
-
- Connection from environment variables
|
|
245
|
-
|
|
246
|
-
#### `src/index.ts`
|
|
247
|
-
**Features:**
|
|
248
|
-
- Import dotenv-flow
|
|
249
|
-
- Create Application instance
|
|
250
|
-
- Start server
|
|
251
|
-
|
|
252
|
-
---
|
|
253
|
-
|
|
254
|
-
### 6. Frontend Package Structure (`packages/fe/`)
|
|
137
|
+
### Structure
|
|
255
138
|
|
|
256
|
-
**Minimal setup:**
|
|
257
139
|
```
|
|
258
|
-
|
|
259
|
-
├──
|
|
260
|
-
|
|
140
|
+
wiki/
|
|
141
|
+
├── guides/ # Getting started, core concepts, tutorials
|
|
142
|
+
├── references/ # API documentation
|
|
143
|
+
│ ├── base/ # BaseApplication, BaseController, BaseEntity, etc.
|
|
144
|
+
│ ├── components/ # HealthCheck, Swagger, Auth, Mail, SocketIO, etc.
|
|
145
|
+
│ ├── helpers/ # Logger, Redis, Queue, Storage, Crypto, etc.
|
|
146
|
+
│ └── utilities/ # Parse, Date, Promise, Performance utilities
|
|
147
|
+
├── best-practices/ # Architecture, security, performance, code style
|
|
148
|
+
└── changelogs/ # Version release notes
|
|
261
149
|
```
|
|
262
150
|
|
|
263
|
-
|
|
264
|
-
```json
|
|
265
|
-
{
|
|
266
|
-
"name": "@ignis-monorepo/fe",
|
|
267
|
-
"version": "1.0.0",
|
|
268
|
-
"private": true,
|
|
269
|
-
"description": "Frontend application - framework to be determined"
|
|
270
|
-
}
|
|
271
|
-
```
|
|
151
|
+
### Online Documentation
|
|
272
152
|
|
|
273
|
-
|
|
274
|
-
```markdown
|
|
275
|
-
# Frontend Application
|
|
153
|
+
[https://venizia-ai.github.io/ignis](https://venizia-ai.github.io/ignis)
|
|
276
154
|
|
|
277
|
-
|
|
155
|
+
---
|
|
278
156
|
|
|
279
|
-
##
|
|
280
|
-
- Choose your framework (React, Vue, Svelte, etc.)
|
|
281
|
-
- Run framework setup command
|
|
282
|
-
- Configure to work with backend at http://localhost:3000/api
|
|
283
|
-
```
|
|
157
|
+
## MCP Server Development
|
|
284
158
|
|
|
285
|
-
|
|
159
|
+
```bash
|
|
160
|
+
# Development mode
|
|
161
|
+
bun run mcp:dev
|
|
286
162
|
|
|
287
|
-
|
|
163
|
+
# Build MCP server
|
|
164
|
+
bun run mcp:build
|
|
288
165
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
- Remove `artifact.zip`
|
|
166
|
+
# Start MCP server
|
|
167
|
+
bun run mcp:start
|
|
292
168
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
{
|
|
296
|
-
"lint": "bun run eslint && bun run prettier:cli",
|
|
297
|
-
"lint:fix": "bun run eslint --fix && bun run prettier:fix",
|
|
298
|
-
"prettier:cli": "prettier \"**/*.{js,ts}\" -l",
|
|
299
|
-
"prettier:fix": "bun run prettier:cli --write",
|
|
300
|
-
"eslint": "eslint --report-unused-disable-directives .",
|
|
301
|
-
"build": "tsc -p tsconfig.json && tsc-alias -p tsconfig.json",
|
|
302
|
-
"clean": "sh ./scripts/clean.sh",
|
|
303
|
-
"rebuild": "bun run clean && bun run build",
|
|
304
|
-
"migrate:dev": "NODE_ENV=development drizzle-kit push --config=src/migration.ts",
|
|
305
|
-
"generate-migration:dev": "NODE_ENV=development drizzle-kit generate --config=src/migration.ts",
|
|
306
|
-
"preserver:dev": "bun run rebuild",
|
|
307
|
-
"server:dev": "NODE_ENV=development bun .",
|
|
308
|
-
"server:prod": "NODE_ENV=production bun ."
|
|
309
|
-
}
|
|
169
|
+
# Clean + rebuild
|
|
170
|
+
bun run mcp:rebuild
|
|
310
171
|
```
|
|
311
172
|
|
|
312
|
-
|
|
173
|
+
### Configuration
|
|
313
174
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
CREATE DATABASE ignis_db;
|
|
322
|
-
\q
|
|
323
|
-
```
|
|
324
|
-
|
|
325
|
-
2. **Copy .env.example to .env and configure:**
|
|
326
|
-
```bash
|
|
327
|
-
cd packages/be
|
|
328
|
-
cp .env.example .env
|
|
329
|
-
# Edit .env with your database credentials and secrets
|
|
330
|
-
```
|
|
331
|
-
|
|
332
|
-
3. **Generate strong secrets:**
|
|
333
|
-
```bash
|
|
334
|
-
# Use these commands to generate secrets:
|
|
335
|
-
openssl rand -base64 32 # For APP_ENV_APPLICATION_SECRET
|
|
336
|
-
openssl rand -base64 32 # For APP_ENV_JWT_SECRET
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
4. **Install dependencies:**
|
|
340
|
-
```bash
|
|
341
|
-
bun install
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
5. **Run database migration:**
|
|
345
|
-
```bash
|
|
346
|
-
bun run be:dev # This will run migration automatically via preserver:dev
|
|
347
|
-
```
|
|
348
|
-
|
|
349
|
-
6. **Test the API:**
|
|
350
|
-
- Health check: `http://localhost:3000/health`
|
|
351
|
-
- API docs: `http://localhost:3000/doc/explorer`
|
|
352
|
-
- Hello endpoint: `http://localhost:3000/api/hello`
|
|
353
|
-
- Sign in: `POST http://localhost:3000/api/auth/sign-in` with `{"identifier": {"value": "test_username"}, "credential": {"value": "test_password"}}`
|
|
354
|
-
- Todos CRUD: `http://localhost:3000/api/todos`
|
|
175
|
+
| Setting | Default | Description |
|
|
176
|
+
| --- | --- | --- |
|
|
177
|
+
| `snippetLength` | `320` | Max characters per search result snippet |
|
|
178
|
+
| `defaultLimit` | `10` | Default number of search results |
|
|
179
|
+
| `maxLimit` | `50` | Maximum number of search results |
|
|
180
|
+
| `searchThreshold` | `0.4` | Fuse.js fuzzy match threshold (0 = exact, 1 = loose) |
|
|
181
|
+
| `repo` | `VENIZIA-AI/ignis` | GitHub repository for source code tools |
|
|
355
182
|
|
|
356
183
|
---
|
|
357
184
|
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
After setup, the following endpoints will be available:
|
|
361
|
-
|
|
362
|
-
| Method | Path | Description | Auth Required |
|
|
363
|
-
|--------|------|-------------|---------------|
|
|
364
|
-
| `GET` | `/health` | Health check | No |
|
|
365
|
-
| `POST` | `/health/ping` | Ping-pong test | No |
|
|
366
|
-
| `GET` | `/doc/explorer` | Swagger UI (Scalar) | No |
|
|
367
|
-
| `GET` | `/doc/openapi.json` | OpenAPI spec | No |
|
|
368
|
-
| `GET` | `/api/hello` | Hello world | No |
|
|
369
|
-
| `POST` | `/api/auth/sign-in` | JWT login | No |
|
|
370
|
-
| `GET` | `/api/todos` | List todos | No* |
|
|
371
|
-
| `POST` | `/api/todos` | Create todo | No* |
|
|
372
|
-
| `GET` | `/api/todos/:id` | Get todo | No* |
|
|
373
|
-
| `PATCH` | `/api/todos/:id` | Update todo | No* |
|
|
374
|
-
| `DELETE` | `/api/todos/:id` | Delete todo | No* |
|
|
375
|
-
|
|
376
|
-
*Note: Todo endpoints can be easily protected with JWT by adding `authStrategies: [Authentication.STRATEGY_JWT]` to route configs*
|
|
377
|
-
|
|
378
|
-
---
|
|
185
|
+
## Related Links
|
|
379
186
|
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
2. `.gitignore` - Git ignore patterns
|
|
385
|
-
3. `README.md` - Project documentation
|
|
386
|
-
|
|
387
|
-
**packages/be/:**
|
|
388
|
-
1. `package.json` - Backend dependencies and scripts
|
|
389
|
-
2. `tsconfig.json` - TypeScript configuration
|
|
390
|
-
3. `.prettierrc.mjs` - Prettier config
|
|
391
|
-
4. `.prettierignore` - Prettier ignore patterns
|
|
392
|
-
5. `eslint.config.mjs` - ESLint config
|
|
393
|
-
6. `.env.example` - Environment variable template
|
|
394
|
-
7. `scripts/clean.sh` - Cleanup script
|
|
395
|
-
8. `src/index.ts` - Entry point
|
|
396
|
-
9. `src/application.ts` - Main application class
|
|
397
|
-
10. `src/migration.ts` - Database migration config
|
|
398
|
-
11. `src/models/todo.model.ts` - Todo model
|
|
399
|
-
12. `src/datasources/postgres.datasource.ts` - Database connection
|
|
400
|
-
13. `src/repositories/todo.repository.ts` - Todo data access
|
|
401
|
-
14. `src/controllers/todo.controller.ts` - Todo API endpoints
|
|
402
|
-
15. `src/controllers/hello.controller.ts` - Hello endpoint
|
|
403
|
-
16. `src/services/authentication.service.ts` - Auth logic
|
|
404
|
-
|
|
405
|
-
**packages/fe/:**
|
|
406
|
-
1. `package.json` - Frontend package placeholder
|
|
407
|
-
2. `README.md` - Frontend setup instructions
|
|
187
|
+
- [Ignis Framework](https://github.com/VENIZIA-AI/ignis) -- Main repository
|
|
188
|
+
- [Online Documentation](https://venizia-ai.github.io/ignis) -- Full documentation site
|
|
189
|
+
- [MCP Server Guide](https://github.com/VENIZIA-AI/ignis/blob/main/packages/docs/wiki/get-started/mcp-docs-server.md) -- Detailed setup guide
|
|
190
|
+
- [Model Context Protocol](https://modelcontextprotocol.io/) -- MCP specification
|
|
408
191
|
|
|
409
192
|
---
|
|
410
193
|
|
|
411
|
-
##
|
|
412
|
-
|
|
413
|
-
```
|
|
414
|
-
┌─────────────────────────────────────────────────────────────┐
|
|
415
|
-
│ HTTP Requests │
|
|
416
|
-
└──────────────────────┬──────────────────────────────────────┘
|
|
417
|
-
│
|
|
418
|
-
▼
|
|
419
|
-
┌─────────────────────────┐
|
|
420
|
-
│ Components Layer │
|
|
421
|
-
│ • HealthCheckComponent │
|
|
422
|
-
│ • SwaggerComponent │
|
|
423
|
-
│ • AuthenticateComponent│
|
|
424
|
-
└────────────┬────────────┘
|
|
425
|
-
│
|
|
426
|
-
▼
|
|
427
|
-
┌─────────────────────────┐
|
|
428
|
-
│ Controllers Layer │
|
|
429
|
-
│ • HelloController │
|
|
430
|
-
│ • TodoController │
|
|
431
|
-
│ • (Auth auto-registered)│
|
|
432
|
-
└────────────┬────────────┘
|
|
433
|
-
│
|
|
434
|
-
▼
|
|
435
|
-
┌─────────────────────────┐
|
|
436
|
-
│ Services Layer │
|
|
437
|
-
│ • AuthenticationService│
|
|
438
|
-
│ • (Business logic) │
|
|
439
|
-
└────────────┬────────────┘
|
|
440
|
-
│
|
|
441
|
-
▼
|
|
442
|
-
┌─────────────────────────┐
|
|
443
|
-
│ Repositories Layer │
|
|
444
|
-
│ • TodoRepository │
|
|
445
|
-
└────────────┬────────────┘
|
|
446
|
-
│
|
|
447
|
-
▼
|
|
448
|
-
┌─────────────────────────┐
|
|
449
|
-
│ DataSources Layer │
|
|
450
|
-
│ • PostgresDataSource │
|
|
451
|
-
└────────────┬────────────┘
|
|
452
|
-
│
|
|
453
|
-
▼
|
|
454
|
-
┌─────────────────────────┐
|
|
455
|
-
│ PostgreSQL DB │
|
|
456
|
-
└─────────────────────────┘
|
|
457
|
-
```
|
|
194
|
+
## License
|
|
458
195
|
|
|
459
|
-
|
|
196
|
+
MIT
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Centralized configuration for the Ignis MCP Documentation Server.
|
|
3
|
-
* All tool constants and settings are defined here for easy maintenance.
|
|
4
|
-
*/
|
|
5
1
|
export declare class MCPConfigs {
|
|
6
2
|
static readonly server: {
|
|
7
3
|
readonly name: "ignis-docs";
|
|
8
4
|
readonly version: "0.0.1";
|
|
9
5
|
};
|
|
10
|
-
/** Runtime-configurable branch (set via CLI argument) */
|
|
11
6
|
private static _branch;
|
|
12
7
|
static readonly github: {
|
|
13
8
|
apiBase: string;
|
|
@@ -16,45 +11,29 @@ export declare class MCPConfigs {
|
|
|
16
11
|
repoPath: string;
|
|
17
12
|
repoName: string;
|
|
18
13
|
userAgent: string;
|
|
19
|
-
/** Get current branch (configurable at runtime) */
|
|
20
14
|
readonly branch: string;
|
|
21
15
|
};
|
|
22
|
-
/**
|
|
23
|
-
* Set the GitHub branch to use for fetching source code.
|
|
24
|
-
* Call this before starting the server.
|
|
25
|
-
* @param branch - Branch name (e.g., 'main', 'develop', 'feature/xyz')
|
|
26
|
-
*/
|
|
27
16
|
static setBranch(opts: {
|
|
28
17
|
branch: string;
|
|
29
18
|
}): void;
|
|
30
19
|
static readonly search: {
|
|
31
|
-
/** Maximum characters for content snippet in search results */
|
|
32
20
|
snippetLength: number;
|
|
33
|
-
/** Default number of results to return */
|
|
34
21
|
defaultLimit: number;
|
|
35
|
-
/** Maximum allowed results per search */
|
|
36
22
|
maxLimit: number;
|
|
37
|
-
/** Minimum query length required */
|
|
38
23
|
minQueryLength: number;
|
|
39
24
|
};
|
|
40
25
|
static readonly codeSearch: {
|
|
41
|
-
/** Default number of results to return */
|
|
42
26
|
defaultLimit: number;
|
|
43
|
-
/** Maximum allowed results per search (GitHub API limit) */
|
|
44
27
|
maxLimit: number;
|
|
45
|
-
/** Minimum query length required */
|
|
46
28
|
minQueryLength: number;
|
|
47
|
-
/** Rate limit warning threshold */
|
|
48
29
|
rateLimitWarningThreshold: number;
|
|
49
30
|
};
|
|
50
31
|
static readonly fuse: {
|
|
51
32
|
includeScore: boolean;
|
|
52
|
-
/** Lower threshold = stricter matching (0.0 = exact, 1.0 = match anything) */
|
|
53
33
|
threshold: number;
|
|
54
34
|
minMatchCharLength: number;
|
|
55
35
|
findAllMatches: boolean;
|
|
56
36
|
ignoreLocation: boolean;
|
|
57
|
-
/** Search field weights: title matches are prioritized over content */
|
|
58
37
|
keys: {
|
|
59
38
|
name: string;
|
|
60
39
|
weight: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../mcp-server/common/config.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../mcp-server/common/config.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,MAAM;;;MAAqD;IAE3E,OAAO,CAAC,MAAM,CAAC,OAAO,CAAkB;IAExC,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;;;yBAQN,MAAM;MAGpB;IAEF,MAAM,CAAC,SAAS,CAAC,IAAI,EAAE;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;IAIzC,MAAM,CAAC,QAAQ,CAAC,MAAM;;;;;MAKpB;IAEF,MAAM,CAAC,QAAQ,CAAC,UAAU;;;;;MAKxB;IAEF,MAAM,CAAC,QAAQ,CAAC,IAAI;;;;;;;;;;MAWlB;CACH"}
|