Skip to main content
Glama

Convex MCP server

Official
by get-convex
diff.ts974 B
import { Project } from "ts-morph"; import { diffStringsUnified } from "jest-diff"; import chalk from "chalk"; import { relative } from "path"; export function diffProjects( root: string, original: Project, modified: Project, ) { // This assumes that the files in both projects are the same. // This works as long as codemods don’t create/delete/move files. const files = original.getSourceFiles(); for (const file of files) { const originalCode = file.getFullText(); const modifiedCode = modified .getSourceFileOrThrow(file.getFilePath()) .getFullText(); if (originalCode === modifiedCode) { continue; } console.log(chalk.bold(relative(root, file.getFilePath()))); const diff = diffStringsUnified(originalCode, modifiedCode, { aColor: chalk.red, bColor: chalk.green, omitAnnotationLines: true, contextLines: 2, expand: false, }); console.log(diff); console.log(); } }

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/get-convex/convex-backend'

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