magicpod-mcp-server 0.1.8 → 0.1.9

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.
@@ -12,7 +12,7 @@ export class MCPProxy {
12
12
  openApiLookup;
13
13
  constructor(name, openApiSpec, apiToken, otherTools) {
14
14
  this.otherTools = otherTools;
15
- this.server = new Server({ name, version: "0.1.8" }, { capabilities: { tools: {} } });
15
+ this.server = new Server({ name, version: "0.1.9" }, { capabilities: { tools: {} } });
16
16
  const baseUrl = openApiSpec.servers?.[0].url;
17
17
  if (!baseUrl) {
18
18
  throw new Error("No base URL found in OpenAPI spec");
@@ -3,7 +3,7 @@ import swagger2openapi from "swagger2openapi";
3
3
  import axios from "axios";
4
4
  const getOpenApiSpec = async (schemaUrl) => {
5
5
  try {
6
- const response = await axios.get(schemaUrl);
6
+ const response = await axios.get(schemaUrl, { headers: { "Accept": "*/*" } });
7
7
  const openApiV2Spec = response.data;
8
8
  return new Promise((resolve, reject) => {
9
9
  swagger2openapi.convertObj(openApiV2Spec, {}, (err, options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "magicpod-mcp-server",
3
- "version": "0.1.8",
3
+ "version": "0.1.9",
4
4
  "description": "Model Context Protocol server for MagicPod integration",
5
5
  "type": "module",
6
6
  "bin": {