al-go-mcp-server 1.0.0 → 1.0.2

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 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 for accessing AL-Go documentation and workflows from the `microsoft/AL-Go` repository.
4
-
5
- ## Features
6
- - Search and access AL-Go documentation and workflows
7
- - Works with public GitHub API (no token required for public repos)
8
- - Optional: Use a GitHub token for higher rate limits
9
- - Can be run via `npx` and configured in `.vscode/mcp.json`
10
-
11
- ## Usage
12
-
13
- ### 1. As a local or global npm package
14
-
15
- ```
16
- npx al-go-mcp-server
17
- ```
18
-
19
- ### 2. In `.vscode/mcp.json`
20
-
21
- ```json
22
- {
23
- "servers": {
24
- "al-go-docs": {
25
- "type": "stdio",
26
- "command": "npx",
27
- "args": ["al-go-mcp-server"],
28
- "env": {
29
- "GITHUB_TOKEN": "your_token_here" // Optional
30
- }
31
- }
32
- }
33
- }
34
- ```
35
-
36
- ## Development
37
-
38
- - Clone the repo
39
- - Run `npm install`
40
- - Run `npm run build`
41
- - Run `npm start` or `npx tsx src/index.ts`
42
-
43
- ## License
44
- MIT
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
@@ -4,6 +4,44 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
4
4
  import { z } from "zod";
5
5
  import { AlGoService } from "./services/AlGoService.js";
6
6
  import { DocumentIndex } from "./services/DocumentIndex.js";
7
+ import fs from "fs";
8
+ import path from "path";
9
+ import { fileURLToPath } from "url";
10
+ // Handle command line arguments
11
+ const args = process.argv.slice(2);
12
+ if (args.includes('--version') || args.includes('-v')) {
13
+ // Read version from package.json
14
+ const __filename = fileURLToPath(import.meta.url);
15
+ const __dirname = path.dirname(__filename);
16
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
17
+ try {
18
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
19
+ console.log(`al-go-mcp-server v${packageJson.version}`);
20
+ process.exit(0);
21
+ }
22
+ catch (error) {
23
+ console.log('al-go-mcp-server (version unknown)');
24
+ process.exit(0);
25
+ }
26
+ }
27
+ if (args.includes('--help') || args.includes('-h')) {
28
+ console.log(`
29
+ AL-Go MCP Server
30
+
31
+ A Model Context Protocol server for accessing AL-Go documentation.
32
+
33
+ Usage:
34
+ npx al-go-mcp-server Start the MCP server
35
+ npx al-go-mcp-server --version Show version information
36
+ npx al-go-mcp-server --help Show this help message
37
+
38
+ Environment Variables:
39
+ GITHUB_TOKEN Optional GitHub token for higher rate limits
40
+
41
+ For more information, visit: https://github.com/louagej/al-go-mcp-server
42
+ `);
43
+ process.exit(0);
44
+ }
7
45
  /**
8
46
  * AL-Go Documentation MCP Server
9
47
  *
@@ -14,7 +52,7 @@ import { DocumentIndex } from "./services/DocumentIndex.js";
14
52
  // Initialize the MCP server
15
53
  const server = new McpServer({
16
54
  name: "al-go-mcp-server",
17
- version: "1.0.0"
55
+ version: "1.0.1"
18
56
  });
19
57
  // Initialize services
20
58
  const alGoService = new AlGoService();
@@ -144,17 +182,17 @@ server.registerPrompt("al-go-setup-help", {
144
182
  scenario: z.string().optional().describe("Specific scenario or requirement")
145
183
  }
146
184
  }, ({ 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
-
185
+ 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.
186
+
187
+ Project Type: ${projectType}
188
+ ${scenario ? `Scenario: ${scenario}` : ''}
189
+
190
+ Please provide step-by-step guidance including:
191
+ 1. Repository setup and structure
192
+ 2. Required configuration files
193
+ 3. Workflow configuration
194
+ 4. Best practices and common pitfalls
195
+
158
196
  Use the AL-Go documentation and examples available through the MCP tools to provide accurate, up-to-date information.`;
159
197
  return {
160
198
  messages: [{
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,yCAAyC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2CAA2C,CAAC;AACjF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAE5D;;;;;;GAMG;AAEH,4BAA4B;AAC5B,MAAM,MAAM,GAAG,IAAI,SAAS,CAAC;IAC3B,IAAI,EAAE,kBAAkB;IACxB,OAAO,EAAE,OAAO;CACjB,CAAC,CAAC;AAEH,sBAAsB;AACtB,MAAM,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC;AACtC,MAAM,aAAa,GAAG,IAAI,aAAa,EAAE,CAAC;AAE1C,6CAA6C;AAC7C,MAAM,CAAC,gBAAgB,CACrB,iBAAiB,E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OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,38 +1,38 @@
1
- {
2
- "name": "al-go-mcp-server",
3
- "version": "1.0.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": "./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
- }
1
+ {
2
+ "name": "al-go-mcp-server",
3
+ "version": "1.0.2",
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
+ }