al-go-mcp-server 1.0.10 → 1.0.12
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 +9 -6
- package/build/index.js +201 -201
- package/build/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ Add to your **User MCP Configuration** for access across all projects in the sam
|
|
|
50
50
|
"al-go-docs": {
|
|
51
51
|
"type": "stdio",
|
|
52
52
|
"command": "npx",
|
|
53
|
-
"args": ["al-go-mcp-server"]
|
|
53
|
+
"args": ["--yes", "al-go-mcp-server@latest"]
|
|
54
54
|
}
|
|
55
55
|
},
|
|
56
56
|
"inputs": []
|
|
@@ -66,7 +66,7 @@ Add to your project's `.vscode/mcp.json` for project-specific configuration:
|
|
|
66
66
|
"al-go-docs": {
|
|
67
67
|
"type": "stdio",
|
|
68
68
|
"command": "npx",
|
|
69
|
-
"args": ["al-go-mcp-server"]
|
|
69
|
+
"args": ["--yes", "al-go-mcp-server@latest"]
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
@@ -83,7 +83,7 @@ For higher rate limits and better performance, provide a GitHub token. This can
|
|
|
83
83
|
"al-go-docs": {
|
|
84
84
|
"type": "stdio",
|
|
85
85
|
"command": "npx",
|
|
86
|
-
"args": ["al-go-mcp-server"],
|
|
86
|
+
"args": ["--yes", "al-go-mcp-server@latest"],
|
|
87
87
|
"env": {
|
|
88
88
|
"GITHUB_TOKEN": "your_github_token_here"
|
|
89
89
|
}
|
|
@@ -100,7 +100,7 @@ For higher rate limits and better performance, provide a GitHub token. This can
|
|
|
100
100
|
"al-go-docs": {
|
|
101
101
|
"type": "stdio",
|
|
102
102
|
"command": "npx",
|
|
103
|
-
"args": ["al-go-mcp-server"],
|
|
103
|
+
"args": ["--yes", "al-go-mcp-server@latest"],
|
|
104
104
|
"env": {
|
|
105
105
|
"GITHUB_TOKEN": "your_github_token_here"
|
|
106
106
|
}
|
|
@@ -115,8 +115,11 @@ For higher rate limits and better performance, provide a GitHub token. This can
|
|
|
115
115
|
# If installed globally
|
|
116
116
|
al-go-mcp-server
|
|
117
117
|
|
|
118
|
-
# Or using npx (no installation needed)
|
|
119
|
-
npx al-go-mcp-server
|
|
118
|
+
# Or using npx (no installation needed, always latest)
|
|
119
|
+
npx --yes al-go-mcp-server@latest
|
|
120
|
+
|
|
121
|
+
# Check version
|
|
122
|
+
npx --yes al-go-mcp-server@latest --version
|
|
120
123
|
```
|
|
121
124
|
|
|
122
125
|
|
package/build/index.js
CHANGED
|
@@ -10,12 +10,8 @@ import { fileURLToPath } from "url";
|
|
|
10
10
|
// Handle command line arguments
|
|
11
11
|
const args = process.argv.slice(2);
|
|
12
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
13
|
try {
|
|
18
|
-
const packageJson =
|
|
14
|
+
const { packageJson } = getPackageVersion();
|
|
19
15
|
console.log(`al-go-mcp-server v${packageJson.version}`);
|
|
20
16
|
process.exit(0);
|
|
21
17
|
}
|
|
@@ -49,189 +45,198 @@ For more information, visit: https://github.com/louagej/al-go-mcp-server
|
|
|
49
45
|
* It fetches documentation from the microsoft/AL-Go repository and provides
|
|
50
46
|
* search capabilities for AL-Go specific queries.
|
|
51
47
|
*/
|
|
52
|
-
//
|
|
53
|
-
|
|
54
|
-
const
|
|
55
|
-
const
|
|
56
|
-
const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
name: "al-go-mcp-server",
|
|
60
|
-
version: packageJson.version
|
|
61
|
-
});
|
|
62
|
-
// Initialize services lazily to avoid startup messages for --version/--help
|
|
63
|
-
let alGoService;
|
|
64
|
-
let documentIndex;
|
|
65
|
-
function getAlGoService() {
|
|
66
|
-
if (!alGoService) {
|
|
67
|
-
alGoService = new AlGoService();
|
|
68
|
-
}
|
|
69
|
-
return alGoService;
|
|
70
|
-
}
|
|
71
|
-
function getDocumentIndex() {
|
|
72
|
-
if (!documentIndex) {
|
|
73
|
-
documentIndex = new DocumentIndex();
|
|
74
|
-
}
|
|
75
|
-
return documentIndex;
|
|
48
|
+
// Function to get version from package.json
|
|
49
|
+
function getPackageVersion() {
|
|
50
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
51
|
+
const __dirname = path.dirname(__filename);
|
|
52
|
+
const packageJsonPath = path.join(__dirname, '..', 'package.json');
|
|
53
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
54
|
+
return { version: packageJson.version, packageJson };
|
|
76
55
|
}
|
|
77
|
-
//
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
description: "Version information for the AL-Go MCP server",
|
|
81
|
-
mimeType: "application/json"
|
|
82
|
-
}, async (uri) => {
|
|
83
|
-
return {
|
|
84
|
-
contents: [{
|
|
85
|
-
uri: uri.href,
|
|
86
|
-
text: JSON.stringify({
|
|
87
|
-
name: packageJson.name,
|
|
88
|
-
version: packageJson.version,
|
|
89
|
-
description: packageJson.description,
|
|
90
|
-
author: packageJson.author
|
|
91
|
-
}, null, 2),
|
|
92
|
-
mimeType: "application/json"
|
|
93
|
-
}]
|
|
94
|
-
};
|
|
95
|
-
});
|
|
96
|
-
// Resource: Get AL-Go repository information
|
|
97
|
-
server.registerResource("al-go-repo-info", "al-go://repo/info", {
|
|
98
|
-
title: "AL-Go Repository Information",
|
|
99
|
-
description: "Basic information about the AL-Go repository",
|
|
100
|
-
mimeType: "application/json"
|
|
101
|
-
}, async (uri) => {
|
|
102
|
-
const repoInfo = await getAlGoService().getRepositoryInfo();
|
|
103
|
-
return {
|
|
104
|
-
contents: [{
|
|
105
|
-
uri: uri.href,
|
|
106
|
-
text: JSON.stringify(repoInfo, null, 2),
|
|
107
|
-
mimeType: "application/json"
|
|
108
|
-
}]
|
|
109
|
-
};
|
|
110
|
-
});
|
|
111
|
-
// Resource: Get specific AL-Go documentation file
|
|
112
|
-
server.registerResource("al-go-doc", "al-go://docs/{path}", {
|
|
113
|
-
title: "AL-Go Documentation File",
|
|
114
|
-
description: "Get content from a specific AL-Go documentation file"
|
|
115
|
-
}, async (uri) => {
|
|
116
|
-
// Extract path from URI
|
|
117
|
-
const urlPath = new URL(uri.href).pathname.replace('/docs/', '');
|
|
118
|
-
const content = await getAlGoService().getDocumentContent(urlPath);
|
|
119
|
-
return {
|
|
120
|
-
contents: [{
|
|
121
|
-
uri: uri.href,
|
|
122
|
-
text: content,
|
|
123
|
-
mimeType: "text/markdown"
|
|
124
|
-
}]
|
|
125
|
-
};
|
|
126
|
-
});
|
|
127
|
-
// Tool: Search AL-Go documentation
|
|
128
|
-
server.registerTool("search-al-go-docs", {
|
|
129
|
-
title: "Search AL-Go Documentation",
|
|
130
|
-
description: "Search through AL-Go documentation for specific queries",
|
|
131
|
-
inputSchema: {
|
|
132
|
-
query: z.string().describe("Search query for AL-Go documentation"),
|
|
133
|
-
limit: z.number().default(10).describe("Maximum number of results to return")
|
|
134
|
-
}
|
|
135
|
-
}, async ({ query, limit }) => {
|
|
136
|
-
try {
|
|
137
|
-
// Use direct API search instead of indexing
|
|
138
|
-
const results = await getDocumentIndex().search(query, limit);
|
|
139
|
-
const resultText = results.map((result, index) => `${index + 1}. **${result.title}** (${result.path})\n ${result.excerpt}\n Score: ${result.score.toFixed(2)}\n`).join('\n');
|
|
140
|
-
return {
|
|
141
|
-
content: [{
|
|
142
|
-
type: "text",
|
|
143
|
-
text: `Found ${results.length} results for "${query}":\n\n${resultText}`
|
|
144
|
-
}]
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
catch (error) {
|
|
148
|
-
return {
|
|
149
|
-
content: [{
|
|
150
|
-
type: "text",
|
|
151
|
-
text: `Error searching AL-Go documentation: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
152
|
-
}],
|
|
153
|
-
isError: true
|
|
154
|
-
};
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
// Tool: Get AL-Go workflow examples
|
|
158
|
-
server.registerTool("get-al-go-workflows", {
|
|
159
|
-
title: "Get AL-Go Workflow Examples",
|
|
160
|
-
description: "Get examples of AL-Go GitHub workflows",
|
|
161
|
-
inputSchema: {
|
|
162
|
-
workflowType: z.enum(["cicd", "deployment", "testing", "all"]).default("all").describe("Type of workflows to retrieve")
|
|
163
|
-
}
|
|
164
|
-
}, async ({ workflowType }) => {
|
|
165
|
-
try {
|
|
166
|
-
const workflows = await getAlGoService().getWorkflowExamples(workflowType);
|
|
167
|
-
const workflowText = workflows.map((workflow) => `## ${workflow.name}\n**Path:** ${workflow.path}\n**Description:** ${workflow.description}\n\n\`\`\`yaml\n${workflow.content}\n\`\`\`\n`).join('\n---\n\n');
|
|
168
|
-
return {
|
|
169
|
-
content: [{
|
|
170
|
-
type: "text",
|
|
171
|
-
text: `AL-Go Workflow Examples (${workflowType}):\n\n${workflowText}`
|
|
172
|
-
}]
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
catch (error) {
|
|
176
|
-
return {
|
|
177
|
-
content: [{
|
|
178
|
-
type: "text",
|
|
179
|
-
text: `Error retrieving AL-Go workflows: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
180
|
-
}],
|
|
181
|
-
isError: true
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
// Tool: Get server version
|
|
186
|
-
server.registerTool("get-server-version", {
|
|
187
|
-
title: "Get AL-Go MCP Server Version",
|
|
188
|
-
description: "Get version information for the AL-Go MCP server",
|
|
189
|
-
inputSchema: {}
|
|
190
|
-
}, async () => {
|
|
191
|
-
return {
|
|
192
|
-
content: [{
|
|
193
|
-
type: "text",
|
|
194
|
-
text: `AL-Go MCP Server v${packageJson.version}\n\nAuthor: ${packageJson.author}\nDescription: ${packageJson.description}\nRepository: ${packageJson.repository?.url || 'N/A'}`
|
|
195
|
-
}]
|
|
196
|
-
};
|
|
197
|
-
});
|
|
198
|
-
// Tool: Refresh documentation cache
|
|
199
|
-
server.registerTool("refresh-al-go-cache", {
|
|
200
|
-
title: "Refresh AL-Go Documentation Cache",
|
|
201
|
-
description: "Refresh the cached AL-Go documentation from the repository",
|
|
202
|
-
inputSchema: {
|
|
203
|
-
force: z.boolean().default(false).describe("Force refresh even if cache is recent")
|
|
204
|
-
}
|
|
205
|
-
}, async ({ force }) => {
|
|
56
|
+
// Main function to start the server
|
|
57
|
+
async function main() {
|
|
58
|
+
console.error("Starting AL-Go MCP Server...");
|
|
206
59
|
try {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
};
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
60
|
+
// Get package info
|
|
61
|
+
const { packageJson } = getPackageVersion();
|
|
62
|
+
// Initialize the MCP server
|
|
63
|
+
const server = new McpServer({
|
|
64
|
+
name: "al-go-mcp-server",
|
|
65
|
+
version: packageJson.version
|
|
66
|
+
});
|
|
67
|
+
// Initialize services lazily to avoid startup messages for --version/--help
|
|
68
|
+
let alGoService;
|
|
69
|
+
let documentIndex;
|
|
70
|
+
function getAlGoService() {
|
|
71
|
+
if (!alGoService) {
|
|
72
|
+
alGoService = new AlGoService();
|
|
73
|
+
}
|
|
74
|
+
return alGoService;
|
|
75
|
+
}
|
|
76
|
+
function getDocumentIndex() {
|
|
77
|
+
if (!documentIndex) {
|
|
78
|
+
documentIndex = new DocumentIndex();
|
|
79
|
+
}
|
|
80
|
+
return documentIndex;
|
|
81
|
+
}
|
|
82
|
+
// Resource: Get server version information
|
|
83
|
+
server.registerResource("server-version", "al-go://server/version", {
|
|
84
|
+
title: "AL-Go MCP Server Version",
|
|
85
|
+
description: "Version information for the AL-Go MCP server",
|
|
86
|
+
mimeType: "application/json"
|
|
87
|
+
}, async (uri) => {
|
|
88
|
+
return {
|
|
89
|
+
contents: [{
|
|
90
|
+
uri: uri.href,
|
|
91
|
+
text: JSON.stringify({
|
|
92
|
+
name: packageJson.name,
|
|
93
|
+
version: packageJson.version,
|
|
94
|
+
description: packageJson.description,
|
|
95
|
+
author: packageJson.author
|
|
96
|
+
}, null, 2),
|
|
97
|
+
mimeType: "application/json"
|
|
98
|
+
}]
|
|
99
|
+
};
|
|
100
|
+
});
|
|
101
|
+
// Resource: Get AL-Go repository information
|
|
102
|
+
server.registerResource("al-go-repo-info", "al-go://repo/info", {
|
|
103
|
+
title: "AL-Go Repository Information",
|
|
104
|
+
description: "Basic information about the AL-Go repository",
|
|
105
|
+
mimeType: "application/json"
|
|
106
|
+
}, async (uri) => {
|
|
107
|
+
const repoInfo = await getAlGoService().getRepositoryInfo();
|
|
108
|
+
return {
|
|
109
|
+
contents: [{
|
|
110
|
+
uri: uri.href,
|
|
111
|
+
text: JSON.stringify(repoInfo, null, 2),
|
|
112
|
+
mimeType: "application/json"
|
|
113
|
+
}]
|
|
114
|
+
};
|
|
115
|
+
});
|
|
116
|
+
// Resource: Get specific AL-Go documentation file
|
|
117
|
+
server.registerResource("al-go-doc", "al-go://docs/{path}", {
|
|
118
|
+
title: "AL-Go Documentation File",
|
|
119
|
+
description: "Get content from a specific AL-Go documentation file"
|
|
120
|
+
}, async (uri) => {
|
|
121
|
+
// Extract path from URI
|
|
122
|
+
const urlPath = new URL(uri.href).pathname.replace('/docs/', '');
|
|
123
|
+
const content = await getAlGoService().getDocumentContent(urlPath);
|
|
124
|
+
return {
|
|
125
|
+
contents: [{
|
|
126
|
+
uri: uri.href,
|
|
127
|
+
text: content,
|
|
128
|
+
mimeType: "text/markdown"
|
|
129
|
+
}]
|
|
130
|
+
};
|
|
131
|
+
});
|
|
132
|
+
// Tool: Search AL-Go documentation
|
|
133
|
+
server.registerTool("search-al-go-docs", {
|
|
134
|
+
title: "Search AL-Go Documentation",
|
|
135
|
+
description: "Search through AL-Go documentation for specific queries",
|
|
136
|
+
inputSchema: {
|
|
137
|
+
query: z.string().describe("Search query for AL-Go documentation"),
|
|
138
|
+
limit: z.number().default(10).describe("Maximum number of results to return")
|
|
139
|
+
}
|
|
140
|
+
}, async ({ query, limit }) => {
|
|
141
|
+
try {
|
|
142
|
+
// Use direct API search instead of indexing
|
|
143
|
+
const results = await getDocumentIndex().search(query, limit);
|
|
144
|
+
const resultText = results.map((result, index) => `${index + 1}. **${result.title}** (${result.path})\n ${result.excerpt}\n Score: ${result.score.toFixed(2)}\n`).join('\n');
|
|
145
|
+
return {
|
|
146
|
+
content: [{
|
|
147
|
+
type: "text",
|
|
148
|
+
text: `Found ${results.length} results for "${query}":\n\n${resultText}`
|
|
149
|
+
}]
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
catch (error) {
|
|
153
|
+
return {
|
|
154
|
+
content: [{
|
|
155
|
+
type: "text",
|
|
156
|
+
text: `Error searching AL-Go documentation: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
157
|
+
}],
|
|
158
|
+
isError: true
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
// Tool: Get AL-Go workflow examples
|
|
163
|
+
server.registerTool("get-al-go-workflows", {
|
|
164
|
+
title: "Get AL-Go Workflow Examples",
|
|
165
|
+
description: "Get examples of AL-Go GitHub workflows",
|
|
166
|
+
inputSchema: {
|
|
167
|
+
workflowType: z.enum(["cicd", "deployment", "testing", "all"]).default("all").describe("Type of workflows to retrieve")
|
|
168
|
+
}
|
|
169
|
+
}, async ({ workflowType }) => {
|
|
170
|
+
try {
|
|
171
|
+
const workflows = await getAlGoService().getWorkflowExamples(workflowType);
|
|
172
|
+
const workflowText = workflows.map((workflow) => `## ${workflow.name}\n**Path:** ${workflow.path}\n**Description:** ${workflow.description}\n\n\`\`\`yaml\n${workflow.content}\n\`\`\`\n`).join('\n---\n\n');
|
|
173
|
+
return {
|
|
174
|
+
content: [{
|
|
175
|
+
type: "text",
|
|
176
|
+
text: `AL-Go Workflow Examples (${workflowType}):\n\n${workflowText}`
|
|
177
|
+
}]
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
catch (error) {
|
|
181
|
+
return {
|
|
182
|
+
content: [{
|
|
183
|
+
type: "text",
|
|
184
|
+
text: `Error retrieving AL-Go workflows: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
185
|
+
}],
|
|
186
|
+
isError: true
|
|
187
|
+
};
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
// Tool: Get server version
|
|
191
|
+
server.registerTool("get-server-version", {
|
|
192
|
+
title: "Get AL-Go MCP Server Version",
|
|
193
|
+
description: "Get version information for the AL-Go MCP server",
|
|
194
|
+
inputSchema: {}
|
|
195
|
+
}, async () => {
|
|
196
|
+
return {
|
|
197
|
+
content: [{
|
|
198
|
+
type: "text",
|
|
199
|
+
text: `AL-Go MCP Server v${packageJson.version}\n\nAuthor: ${packageJson.author}\nDescription: ${packageJson.description}\nRepository: ${packageJson.repository?.url || 'N/A'}`
|
|
200
|
+
}]
|
|
201
|
+
};
|
|
202
|
+
});
|
|
203
|
+
// Tool: Refresh documentation cache
|
|
204
|
+
server.registerTool("refresh-al-go-cache", {
|
|
205
|
+
title: "Refresh AL-Go Documentation Cache",
|
|
206
|
+
description: "Refresh the cached AL-Go documentation from the repository",
|
|
207
|
+
inputSchema: {
|
|
208
|
+
force: z.boolean().default(false).describe("Force refresh even if cache is recent")
|
|
209
|
+
}
|
|
210
|
+
}, async ({ force }) => {
|
|
211
|
+
try {
|
|
212
|
+
await getDocumentIndex().refresh(getAlGoService(), force);
|
|
213
|
+
return {
|
|
214
|
+
content: [{
|
|
215
|
+
type: "text",
|
|
216
|
+
text: "AL-Go documentation cache refreshed successfully."
|
|
217
|
+
}]
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
catch (error) {
|
|
221
|
+
return {
|
|
222
|
+
content: [{
|
|
223
|
+
type: "text",
|
|
224
|
+
text: `Error refreshing AL-Go cache: ${error instanceof Error ? error.message : 'Unknown error'}`
|
|
225
|
+
}],
|
|
226
|
+
isError: true
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
// Prompt: AL-Go project setup help
|
|
231
|
+
server.registerPrompt("al-go-setup-help", {
|
|
232
|
+
title: "AL-Go Project Setup Help",
|
|
233
|
+
description: "Get help with setting up AL-Go for Business Central projects",
|
|
234
|
+
argsSchema: {
|
|
235
|
+
projectType: z.enum(["per-tenant-extension", "app-source", "template"]).describe("Type of AL-Go project"),
|
|
236
|
+
scenario: z.string().optional().describe("Specific scenario or requirement")
|
|
237
|
+
}
|
|
238
|
+
}, ({ projectType, scenario }) => {
|
|
239
|
+
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.
|
|
235
240
|
|
|
236
241
|
Project Type: ${projectType}
|
|
237
242
|
${scenario ? `Scenario: ${scenario}` : ''}
|
|
@@ -243,21 +248,16 @@ Please provide step-by-step guidance including:
|
|
|
243
248
|
4. Best practices and common pitfalls
|
|
244
249
|
|
|
245
250
|
Use the AL-Go documentation and examples available through the MCP tools to provide accurate, up-to-date information.`;
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
});
|
|
256
|
-
// Main function to start the server
|
|
257
|
-
async function main() {
|
|
258
|
-
console.error("Starting AL-Go MCP Server...");
|
|
259
|
-
try {
|
|
260
|
-
// Document index will be initialized on first search request
|
|
251
|
+
return {
|
|
252
|
+
messages: [{
|
|
253
|
+
role: "user",
|
|
254
|
+
content: {
|
|
255
|
+
type: "text",
|
|
256
|
+
text: basePrompt
|
|
257
|
+
}
|
|
258
|
+
}]
|
|
259
|
+
};
|
|
260
|
+
});
|
|
261
261
|
// Start the server with stdio transport
|
|
262
262
|
const transport = new StdioServerTransport();
|
|
263
263
|
await server.connect(transport);
|
package/build/index.js.map
CHANGED
|
@@ -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;AAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,KAAK,CAAC;AAEpC,gCAAgC;AAChC,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;AACnC,IAAI,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;IACtD,
|
|
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;AAC5D,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,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AAG,EAAE;IACzB,OAAO,CAAC,KAAK,CAAC,mCAAmC,CAAC,CAAC;IACnD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC;AAEH,mBAAmB;AACnB,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;IACnB,OAAO,CAAC,KAAK,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;IACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "al-go-mcp-server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "MCP server for AL-Go documentation integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"node-fetch": "^3.3.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/node": "^
|
|
36
|
+
"@types/node": "^24.6.2",
|
|
37
37
|
"typescript": "^5.6.0"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|