Registry / http-networking / mcpcat-api

mcpcat-api

JSON →
library0.1.9jsnpmunverified

MCPCat API is a TypeScript/JavaScript SDK for interacting with the MCPCat service. Version 0.1.8 provides a generated client using the Fetch API, supporting both Node.js and browser environments. It compiles to ES5/ES6 and works with CommonJS or ES module systems, with built-in TypeScript definitions. The SDK is generated from OpenAPI specs and is in early development with a focus on type safety and REST API integration.

npm install mcpcat-api
INSTALL
IMPORT
SIG · MCPCAT-API
M
mcpcat-api
http-networkingjavascriptv0.1.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default import
import MCPCatApi from 'mcpcat-api';
const MCPCatApi = require('mcpcat-api');
Default import recommended for ESM. CommonJS also supported via require.
ApiClient
import { ApiClient } from 'mcpcat-api';
const ApiClient = require('mcpcat-api').ApiClient;
Named export for the main client class.
Configuration
import { Configuration } from 'mcpcat-api';
import Configuration from 'mcpcat-api/Configuration';
Configuration is a named export, not default.

Initializes the MCPCat API client with base URL and API key, then fetches a list of models.

import MCPCatApi from 'mcpcat-api'; const api = new MCPCatApi({ basePath: 'https://api.mcpcat.com', apiKey: process.env.MCPCAT_API_KEY ?? '' }); async function getModels() { try { const response = await api.listModels(); console.log(response.data); } catch (error) { console.error('Error:', error); } } getModels();
Debug
Known issues
gotchaThe SDK uses fetch, which is not available in older Node.js versions (<18).
fix
Use Node.js 18+ or polyfill global fetch.
affects: >=0.1.0
deprecatedThe constructor option 'baseUri' is deprecated; use 'basePath' instead.
fix
Replace 'baseUri' with 'basePath' in the configuration object.
affects: 0.1.5
gotchaAPI key must be a string; passing a non-string will cause a runtime error.
fix
Ensure apiKey is a string, e.g., from environment variables.
affects: >=0.1.0
Errors
Common errors & fixes
TypeError: fetch is not defined
The SDK requires the fetch API, which is missing in Node.js versions before 18.
fix
Upgrade to Node.js 18+ or install a fetch polyfill like 'node-fetch'.
Error: Configuration must include 'apiKey'
The SDK configuration requires an API key for authentication.
fix
Pass an apiKey property when creating a new MCPCatApi instance.
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'data')
The response may be undefined if an error occurs and is not caught.
fix
Wrap API calls in try-catch blocks to handle errors.
Upgrade
Version history
0.1.9latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources
mcpcat-api — npm install mcpcat-api · libregistry