Skip to main content
Glama

Vibe Check MCP

import { describe, it, expect } from 'vitest'; import { updateConstitution, resetConstitution, getConstitution, __testing } from '../src/tools/constitution.js'; describe('constitution utilities', () => { it('updates, resets, and retrieves rules', () => { updateConstitution('s1', 'r1'); updateConstitution('s1', 'r2'); expect(getConstitution('s1')).toEqual(['r1', 'r2']); resetConstitution('s1', ['a']); expect(getConstitution('s1')).toEqual(['a']); }); it('cleans up stale sessions', () => { updateConstitution('s2', 'rule'); const map = __testing._getMap(); map['s2'].updated = Date.now() - 2 * 60 * 60 * 1000; __testing.cleanup(); expect(getConstitution('s2')).toEqual([]); }); });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/PV-Bhat/vibe-check-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server