al-go-mcp-server 1.0.0 → 1.0.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/LICENSE +21 -21
- package/README.md +163 -44
- package/build/index.js +11 -11
- package/package.json +38 -38
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 Job Louage
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Job Louage
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,44 +1,163 @@
|
|
|
1
|
-
# AL-Go MCP Server
|
|
2
|
-
|
|
3
|
-
A Model Context Protocol (MCP) server
|
|
4
|
-
|
|
5
|
-
##
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
1
|
+
# AL-Go MCP Server
|
|
2
|
+
|
|
3
|
+
A Model Context Protocol (MCP) server that provides access to AL-Go documentation and resources from the [microsoft/AL-Go](https://github.com/microsoft/AL-Go) repository.
|
|
4
|
+
|
|
5
|
+
## Repository
|
|
6
|
+
|
|
7
|
+
🔗 **GitHub Repository**: [https://github.com/louagej/al-go-mcp-server](https://github.com/louagej/al-go-mcp-server)
|
|
8
|
+
📦 **npm Package**: [https://www.npmjs.com/package/al-go-mcp-server](https://www.npmjs.com/package/al-go-mcp-server)
|
|
9
|
+
|
|
10
|
+
## Features
|
|
11
|
+
|
|
12
|
+
- 🔍 **Search AL-Go Documentation**: Search through comprehensive AL-Go guides and documentation
|
|
13
|
+
- 📋 **Workflow Examples**: Access and explore AL-Go workflow templates and examples
|
|
14
|
+
- 📖 **Repository Navigation**: Browse AL-Go repository contents and resources
|
|
15
|
+
- ⚡ **Performance Optimized**: Cached responses and efficient GitHub API usage
|
|
16
|
+
- 🔐 **Optional Authentication**: Support for GitHub tokens for higher rate limits
|
|
17
|
+
- 🚀 **Easy Installation**: Available via npm and npx for instant usage
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
|
|
21
|
+
### With npm
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Install globally for command line usage
|
|
25
|
+
npm install -g al-go-mcp-server
|
|
26
|
+
|
|
27
|
+
# Or use directly with npx (no installation required)
|
|
28
|
+
npx al-go-mcp-server
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
## Usage
|
|
33
|
+
|
|
34
|
+
### VS Code with MCP Extension (Recommended)
|
|
35
|
+
|
|
36
|
+
You can configure the AL-Go MCP server in two ways:
|
|
37
|
+
|
|
38
|
+
#### Option 1: User Settings (Recommended)
|
|
39
|
+
Add to your **User MCP Configuration** for access across all projects in the same VS Code profile:
|
|
40
|
+
|
|
41
|
+
> **Note**: User settings are profile-specific. The server will be available for all projects opened with the same VS Code profile (e.g., "Node.js", "Default", etc.).
|
|
42
|
+
|
|
43
|
+
1. Open VS Code Command Palette (`Ctrl+Shift+P`)
|
|
44
|
+
2. Run **"MCP: Open User Configuration"**
|
|
45
|
+
3. Add the server configuration:
|
|
46
|
+
|
|
47
|
+
```json
|
|
48
|
+
{
|
|
49
|
+
"servers": {
|
|
50
|
+
"al-go-docs": {
|
|
51
|
+
"type": "stdio",
|
|
52
|
+
"command": "npx",
|
|
53
|
+
"args": ["al-go-mcp-server"]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"inputs": []
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Option 2: Project Settings
|
|
61
|
+
Add to your project's `.vscode/mcp.json` for project-specific configuration:
|
|
62
|
+
|
|
63
|
+
```json
|
|
64
|
+
{
|
|
65
|
+
"servers": {
|
|
66
|
+
"al-go-docs": {
|
|
67
|
+
"type": "stdio",
|
|
68
|
+
"command": "npx",
|
|
69
|
+
"args": ["al-go-mcp-server"]
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
### With GitHub Authentication (Optional)
|
|
76
|
+
|
|
77
|
+
For higher rate limits and better performance, provide a GitHub token. This can be added to either user or project settings:
|
|
78
|
+
|
|
79
|
+
**User Settings** (add `env` to the server configuration):
|
|
80
|
+
```json
|
|
81
|
+
{
|
|
82
|
+
"servers": {
|
|
83
|
+
"al-go-docs": {
|
|
84
|
+
"type": "stdio",
|
|
85
|
+
"command": "npx",
|
|
86
|
+
"args": ["al-go-mcp-server"],
|
|
87
|
+
"env": {
|
|
88
|
+
"GITHUB_TOKEN": "your_github_token_here"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"inputs": []
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
**Project Settings** (`.vscode/mcp.json`):
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"servers": {
|
|
100
|
+
"al-go-docs": {
|
|
101
|
+
"type": "stdio",
|
|
102
|
+
"command": "npx",
|
|
103
|
+
"args": ["al-go-mcp-server"],
|
|
104
|
+
"env": {
|
|
105
|
+
"GITHUB_TOKEN": "your_github_token_here"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Command Line (Advandced)
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
# If installed globally
|
|
116
|
+
al-go-mcp-server
|
|
117
|
+
|
|
118
|
+
# Or using npx (no installation needed)
|
|
119
|
+
npx al-go-mcp-server
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## Available Tools
|
|
124
|
+
|
|
125
|
+
When connected, the server provides these tools:
|
|
126
|
+
|
|
127
|
+
- **`search-al-go-docs`**: Search through AL-Go documentation with queries
|
|
128
|
+
- **`get-al-go-workflows`**: Get examples of AL-Go GitHub workflows
|
|
129
|
+
- **`refresh-al-go-cache`**: Refresh cached documentation (force update)
|
|
130
|
+
|
|
131
|
+
## Development
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
# Clone the repository
|
|
135
|
+
git clone https://github.com/louagej/al-go-mcp-server.git
|
|
136
|
+
cd al-go-mcp-server
|
|
137
|
+
|
|
138
|
+
# Install dependencies
|
|
139
|
+
npm install
|
|
140
|
+
|
|
141
|
+
# Build the project
|
|
142
|
+
npm run build
|
|
143
|
+
|
|
144
|
+
# Run locally
|
|
145
|
+
npm start
|
|
146
|
+
# or
|
|
147
|
+
npx tsx src/index.ts
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Contributing
|
|
151
|
+
|
|
152
|
+
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
153
|
+
|
|
154
|
+
## License
|
|
155
|
+
|
|
156
|
+
MIT - see [LICENSE](LICENSE) file for details.
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
**Links:**
|
|
161
|
+
- [AL-Go Repository](https://github.com/microsoft/AL-Go)
|
|
162
|
+
- [Model Context Protocol](https://github.com/modelcontextprotocol)
|
|
163
|
+
- [Business Central AL Development](https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-dev-overview)
|
package/build/index.js
CHANGED
|
@@ -144,17 +144,17 @@ server.registerPrompt("al-go-setup-help", {
|
|
|
144
144
|
scenario: z.string().optional().describe("Specific scenario or requirement")
|
|
145
145
|
}
|
|
146
146
|
}, ({ projectType, scenario }) => {
|
|
147
|
-
const basePrompt = `You are an expert in AL-Go for GitHub, Microsoft's development framework for Business Central extensions. Help the user set up an AL-Go project.
|
|
148
|
-
|
|
149
|
-
Project Type: ${projectType}
|
|
150
|
-
${scenario ? `Scenario: ${scenario}` : ''}
|
|
151
|
-
|
|
152
|
-
Please provide step-by-step guidance including:
|
|
153
|
-
1. Repository setup and structure
|
|
154
|
-
2. Required configuration files
|
|
155
|
-
3. Workflow configuration
|
|
156
|
-
4. Best practices and common pitfalls
|
|
157
|
-
|
|
147
|
+
const basePrompt = `You are an expert in AL-Go for GitHub, Microsoft's development framework for Business Central extensions. Help the user set up an AL-Go project.
|
|
148
|
+
|
|
149
|
+
Project Type: ${projectType}
|
|
150
|
+
${scenario ? `Scenario: ${scenario}` : ''}
|
|
151
|
+
|
|
152
|
+
Please provide step-by-step guidance including:
|
|
153
|
+
1. Repository setup and structure
|
|
154
|
+
2. Required configuration files
|
|
155
|
+
3. Workflow configuration
|
|
156
|
+
4. Best practices and common pitfalls
|
|
157
|
+
|
|
158
158
|
Use the AL-Go documentation and examples available through the MCP tools to provide accurate, up-to-date information.`;
|
|
159
159
|
return {
|
|
160
160
|
messages: [{
|
package/package.json
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "al-go-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "MCP server for AL-Go documentation integration",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./build/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"al-go-mcp-server": "
|
|
9
|
-
},
|
|
10
|
-
"scripts": {
|
|
11
|
-
"build": "tsc",
|
|
12
|
-
"start": "node build/index.js",
|
|
13
|
-
"dev": "tsc && node build/index.js",
|
|
14
|
-
"watch": "tsc --watch"
|
|
15
|
-
},
|
|
16
|
-
"keywords": [
|
|
17
|
-
"mcp",
|
|
18
|
-
"model-context-protocol",
|
|
19
|
-
"al-go",
|
|
20
|
-
"documentation",
|
|
21
|
-
"github"
|
|
22
|
-
],
|
|
23
|
-
"author": "Job Louage",
|
|
24
|
-
"license": "MIT",
|
|
25
|
-
"dependencies": {
|
|
26
|
-
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
27
|
-
"@octokit/rest": "^21.0.2",
|
|
28
|
-
"zod": "^3.23.8",
|
|
29
|
-
"node-fetch": "^3.3.2"
|
|
30
|
-
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@types/node": "^22.0.0",
|
|
33
|
-
"typescript": "^5.6.0"
|
|
34
|
-
},
|
|
35
|
-
"files": [
|
|
36
|
-
"build"
|
|
37
|
-
]
|
|
38
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "al-go-mcp-server",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "MCP server for AL-Go documentation integration",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./build/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"al-go-mcp-server": "build/index.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "tsc",
|
|
12
|
+
"start": "node build/index.js",
|
|
13
|
+
"dev": "tsc && node build/index.js",
|
|
14
|
+
"watch": "tsc --watch"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"mcp",
|
|
18
|
+
"model-context-protocol",
|
|
19
|
+
"al-go",
|
|
20
|
+
"documentation",
|
|
21
|
+
"github"
|
|
22
|
+
],
|
|
23
|
+
"author": "Job Louage",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@modelcontextprotocol/sdk": "^1.18.0",
|
|
27
|
+
"@octokit/rest": "^21.0.2",
|
|
28
|
+
"zod": "^3.23.8",
|
|
29
|
+
"node-fetch": "^3.3.2"
|
|
30
|
+
},
|
|
31
|
+
"devDependencies": {
|
|
32
|
+
"@types/node": "^22.0.0",
|
|
33
|
+
"typescript": "^5.6.0"
|
|
34
|
+
},
|
|
35
|
+
"files": [
|
|
36
|
+
"build"
|
|
37
|
+
]
|
|
38
|
+
}
|