Skip to main content
Glama
yjiace

AlibabaCloud DevOps MCP Server

by yjiace
packages.ts1.74 kB
import * as packageRepositories from '../operations/packages/repositories.js'; import * as artifacts from '../operations/packages/artifacts.js'; import * as types from '../common/types.js'; export const handlePackageManagementTools = async (request: any) => { switch (request.params.name) { // Package Repository Operations case "list_package_repositories": { const args = types.ListPackageRepositoriesSchema.parse(request.params.arguments); const packageRepoList = await packageRepositories.listPackageRepositoriesFunc( args.organizationId, args.repoTypes ?? undefined, args.repoCategories ?? undefined, args.perPage, args.page ); return { content: [{ type: "text", text: JSON.stringify(packageRepoList, null, 2) }], }; } // Package Artifact Operations case "list_artifacts": { const args = types.ListArtifactsSchema.parse(request.params.arguments); const artifactsList = await artifacts.listArtifactsFunc( args.organizationId, args.repoId, args.repoType, args.page, args.perPage, args.search ?? undefined, args.orderBy, args.sort ); return { content: [{ type: "text", text: JSON.stringify(artifactsList, null, 2) }], }; } case "get_artifact": { const args = types.GetArtifactSchema.parse(request.params.arguments); const artifact = await artifacts.getArtifactFunc( args.organizationId, args.repoId, args.id, args.repoType ); return { content: [{ type: "text", text: JSON.stringify(artifact, 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