Skip to main content
Glama
workspace.cts1.08 kB
// @ts-check const path = require('path'); const fs = require('fs'); /** * Gets the test monorepo path for VS Code tests * @returns {string} */ function getTestMonorepoPath() { const testMonorepoPath = path.resolve(__dirname, '../fixtures/test-monorepo'); if (!fs.existsSync(testMonorepoPath)) { throw new Error(`Test monorepo not found at ${testMonorepoPath}`); } return testMonorepoPath; } /** * Validates and returns the test workspace path * @param {string} workspacePath * @returns {string} */ function validateTestWorkspacePath(workspacePath) { if (!fs.existsSync(workspacePath)) { throw new Error(`Test workspace not found at ${workspacePath}`); } return workspacePath; } /** * Sets up the test workspace for VS Code tests * @returns {string} */ function setupTestWorkspace() { const testMonorepoPath = getTestMonorepoPath(); validateTestWorkspacePath(testMonorepoPath); return testMonorepoPath; } module.exports = { getTestMonorepoPath, validateTestWorkspacePath, setupTestWorkspace };

Latest Blog Posts

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/patelnav/my-tools-mcp'

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