Skip to main content
Glama
yjiace

AlibabaCloud DevOps MCP Server

by yjiace
commit.ts1.41 kB
import { listCommits, getCommit, createCommitComment, ListCommitsRequestSchema, GetCommitRequestSchema, CreateCommitCommentRequestSchema } from '../operations/codeup/commits.js'; /** * Handle the commit tool requests * * @param request - The tool request * @returns The tool response or null if not handled */ export async function handleCommitTools(request: any) { switch (request.params.name) { case 'list_commits': const listCommitsParams = ListCommitsRequestSchema.parse(request.params.arguments); const listCommitsResult = await listCommits(listCommitsParams); return { content: [{ type: "text", text: JSON.stringify(listCommitsResult, null, 2) }], }; case 'get_commit': const getCommitParams = GetCommitRequestSchema.parse(request.params.arguments); const getCommitResult = await getCommit(getCommitParams); return { content: [{ type: "text", text: JSON.stringify(getCommitResult, null, 2) }], }; case 'create_commit_comment': const createCommitCommentParams = CreateCommitCommentRequestSchema.parse(request.params.arguments); const createCommitCommentResult = await createCommitComment(createCommitCommentParams); return { content: [{ type: "text", text: JSON.stringify(createCommitCommentResult, null, 2) }], }; default: return null; } }

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/yjiace/alibabacloud-devops-mcp-server'

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