@ganeshminuscule/cryotos-cmms-mcp-client
v1.0.0
Published
Enterprise-grade JavaScript client for Cryotos CMMS MCP Server
Downloads
19
Maintainers
Readme
Cryotos CMMS MCP Client
Enterprise-grade JavaScript/TypeScript client for interacting with the Cryotos CMMS MCP Server.
Installation
npm install cryotos-cmms-mcp-clientOr use directly with npx:
npx cryotos-cmms-mcp-client <command> [options]Usage
As a Library
// ESM
import { CryotosMcpClient } from 'cryotos-cmms-mcp-client';
// CommonJS
const { CryotosMcpClient } = require('cryotos-cmms-mcp-client');
// Create client instance
const client = new CryotosMcpClient({
baseUrl: 'http://localhost:8080/api',
timeout: 30000
});
// Get account details
async function getAccountDetails() {
try {
const accountDetails = await client.getAccountDetails();
console.log('Account Details:', accountDetails);
} catch (error) {
console.error('Error:', error.message);
}
}
getAccountDetails();As CLI Tool
# Get account details
npx cryotos-cmms-mcp-client account --url http://localhost:8080/api
# Check server health
npx cryotos-cmms-mcp-client health --url http://localhost:8080/api
# Get help
npx cryotos-cmms-mcp-client --helpIntegration with Claude
To integrate this client with Claude AI, you have two options:
Option 1: Use as an API directly (Recommended for Enterprise)
- Expose your MCP server through a secure API gateway
- Configure Claude to call your API endpoints directly
- Ensure proper authentication and rate limiting
Option 2: Use the MCP Client via Claude's execution capabilities
// Sample Claude execution of MCP client
const { CryotosMcpClient } = require('cryotos-cmms-mcp-client');
// Create client with Claude-provided configuration
const client = new CryotosMcpClient({
baseUrl: process.env.CRYOTOS_MCP_URL || 'http://localhost:8080/api'
});
// Execute API calls
async function getDataForClaude() {
const accountDetails = await client.getAccountDetails();
return JSON.stringify(accountDetails);
}
// Return data to Claude
getDataForClaude().then(console.log);Development
# Install dependencies
npm install
# Generate API client from OpenAPI spec
npm run generate-api
# Build the package
npm run build
# Run tests
npm testLicense
MIT
