Skip to main content
Glama
netlify

Netlify MCP Server

Official
by netlify
get-deploy-for-site.ts750 B
import { z } from 'zod'; import { getAPIJSONResult } from '../../utils/api-networking.js'; import type { DomainTool } from '../types.js'; const getDeployBySiteIdParamsSchema = z.object({ siteId: z.string(), deployId: z.string() // todo: make optional and get last deploy for site when missing }); export const getDeployBySiteIdDomainTool: DomainTool<typeof getDeployBySiteIdParamsSchema> = { domain: 'deploy', operation: 'get-deploy-for-site', inputSchema: getDeployBySiteIdParamsSchema, toolAnnotations: { readOnlyHint: true, }, cb: async (params, {request}) => { const { siteId, deployId } = params; return JSON.stringify(await getAPIJSONResult(`/api/v1/sites/${siteId}/deploys/${deployId}`, {}, {}, request)); } }

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/netlify/netlify-mcp'

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