mcp-cisco-support
Version:
MCP server for Cisco Support APIs including Bug Search and future tools
30 lines • 1.2 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const mcp_server_1 = require("../src/mcp-server");
describe('Simple Tests', () => {
beforeAll(() => {
// Disable logging during tests
const { setLogging } = require('../src/mcp-server');
setLogging(false);
});
test('should be able to import and call getAvailableTools', () => {
const tools = (0, mcp_server_1.getAvailableTools)();
expect(tools).toBeDefined();
expect(Array.isArray(tools)).toBe(true);
expect(tools.length).toBeGreaterThan(0);
});
test('should have bug API tools', () => {
const tools = (0, mcp_server_1.getAvailableTools)();
const bugTools = tools.filter(tool => tool.name.includes('bug'));
expect(bugTools.length).toBe(8); // 8 bug API tools
});
test('should have tool descriptions', () => {
const tools = (0, mcp_server_1.getAvailableTools)();
tools.forEach(tool => {
expect(tool.name).toBeTruthy();
expect(tool.description).toBeTruthy();
expect(tool.inputSchema).toBeDefined();
});
});
});
//# sourceMappingURL=simple.test.js.map