@centia-io/mcp-server 1.0.5 → 1.0.6

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.
Files changed (4) hide show
  1. package/README.md +143 -131
  2. package/centia-api.json +3502 -3134
  3. package/dist/index.js +6 -2
  4. package/package.json +32 -32
package/dist/index.js CHANGED
@@ -411,12 +411,12 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
411
411
  }
412
412
  }
413
413
  try {
414
- const response = await axios({ ...config, url });
414
+ const response = await axios({ ...config, url, maxRedirects: 0, validateStatus: (status) => status < 400 });
415
415
  return {
416
416
  content: [
417
417
  {
418
418
  type: "text",
419
- text: response.status === 200 ? JSON.stringify(response.data, null, 2) : response.statusText,
419
+ text: response.data != null ? JSON.stringify(response.data, null, 2) : "OK",
420
420
  },
421
421
  ],
422
422
  };
@@ -436,6 +436,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
436
436
  async function main() {
437
437
  const transport = new StdioServerTransport();
438
438
  await server.connect(transport);
439
+ await server.sendLoggingMessage({
440
+ level: "info",
441
+ data: "Server started successfully",
442
+ });
439
443
  console.error("Centia MCP Server running on stdio");
440
444
  }
441
445
  main().catch((error) => {
package/package.json CHANGED
@@ -1,32 +1,32 @@
1
- {
2
- "name": "@centia-io/mcp-server",
3
- "version": "1.0.5",
4
- "publishConfig": { "access": "public" },
5
- "description": "Centia MCP Server",
6
- "type": "module",
7
- "bin": {
8
- "mcp-server": "dist/index.js"
9
- },
10
- "files": [
11
- "dist",
12
- "centia-api.json"
13
- ],
14
- "scripts": {
15
- "build": "tsc",
16
- "start": "node dist/index.js",
17
- "dev": "tsx src/index.ts"
18
- },
19
- "keywords": [],
20
- "author": "",
21
- "license": "ISC",
22
- "dependencies": {
23
- "@modelcontextprotocol/sdk": "^1.26.0",
24
- "axios": "^1.13.5",
25
- "zod": "^4.3.6"
26
- },
27
- "devDependencies": {
28
- "@types/node": "^25.2.2",
29
- "tsx": "^4.21.0",
30
- "typescript": "^5.9.3"
31
- }
32
- }
1
+ {
2
+ "name": "@centia-io/mcp-server",
3
+ "version": "1.0.6",
4
+ "publishConfig": { "access": "public" },
5
+ "description": "Centia MCP Server",
6
+ "type": "module",
7
+ "bin": {
8
+ "mcp-server": "dist/index.js"
9
+ },
10
+ "files": [
11
+ "dist",
12
+ "centia-api.json"
13
+ ],
14
+ "scripts": {
15
+ "build": "tsc",
16
+ "start": "node dist/index.js",
17
+ "dev": "tsx src/index.ts"
18
+ },
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "dependencies": {
23
+ "@modelcontextprotocol/sdk": "^1.26.0",
24
+ "axios": "^1.13.5",
25
+ "zod": "^4.3.6"
26
+ },
27
+ "devDependencies": {
28
+ "@types/node": "^25.2.2",
29
+ "tsx": "^4.21.0",
30
+ "typescript": "^5.9.3"
31
+ }
32
+ }