@breaknorm_hu/mcp-server 0.1.1 → 0.1.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/dist/index.js +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var BreakNormClient = class {
|
|
|
10
10
|
apiKey;
|
|
11
11
|
constructor(apiKey, baseUrl) {
|
|
12
12
|
this.apiKey = apiKey;
|
|
13
|
-
this.baseUrl = (baseUrl || "https://breaknorm.
|
|
13
|
+
this.baseUrl = (baseUrl || "https://breaknorm.hu").replace(/\/$/, "");
|
|
14
14
|
}
|
|
15
15
|
async request(method, path, options) {
|
|
16
16
|
const url = new URL(`/api/v1${path}`, this.baseUrl);
|
|
@@ -294,10 +294,10 @@ async function main() {
|
|
|
294
294
|
const apiKey = process.env.BREAKNORM_API_KEY;
|
|
295
295
|
if (!apiKey) {
|
|
296
296
|
console.error("Error: BREAKNORM_API_KEY environment variable is required.");
|
|
297
|
-
console.error("Get your API key at https://breaknorm.
|
|
297
|
+
console.error("Get your API key at https://breaknorm.hu/app/settings/developers");
|
|
298
298
|
process.exit(1);
|
|
299
299
|
}
|
|
300
|
-
const baseUrl = process.env.BREAKNORM_BASE_URL || "https://breaknorm.
|
|
300
|
+
const baseUrl = process.env.BREAKNORM_BASE_URL || "https://breaknorm.hu";
|
|
301
301
|
const client = new BreakNormClient(apiKey, baseUrl);
|
|
302
302
|
const server = new McpServer({
|
|
303
303
|
name: SERVER_NAME,
|