Skip to main content
Glama
by mohalmah
test-mcp-deployment-fix.jsโ€ข1.28 kB
// Test script to verify MCP deployment creation works import { apiTool } from './tools/google-app-script-api/apps-script-api/script-projects-deployments-create.js'; const scriptId = '1fSY7y3Rh84FsgJmrFIMm4AUOV3mPgelLRvZ4Dahrv68zyDzX-cGbeYjn'; async function testDeploymentCreation() { console.log('๐Ÿงช Testing MCP deployment creation...'); try { const result = await apiTool.function({ scriptId: scriptId, manifestFileName: 'appsscript', versionNumber: 1, description: 'Test deployment via MCP tools' }); console.log('โœ… Deployment creation result:', JSON.stringify(result, null, 2)); if (result.deploymentId) { console.log('๐ŸŽ‰ Deployment created successfully!'); console.log(`๐Ÿ“ฑ Deployment ID: ${result.deploymentId}`); if (result.entryPoints && result.entryPoints.length > 0) { const webAppEntry = result.entryPoints.find(entry => entry.entryPointType === 'WEB_APP'); if (webAppEntry) { console.log(`๐ŸŒ Web App URL: ${webAppEntry.webApp.url}`); } } } else { console.log('โŒ Deployment creation failed:', result); } } catch (error) { console.error('๐Ÿ’ฅ Error during deployment creation:', error); } } testDeploymentCreation();

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/mohalmah/google-appscript-mcp-server'

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