mcp-harbor
Version:
A Node.js application for connecting to Harbor and providing operations capabilities.
27 lines (26 loc) • 1.3 kB
TypeScript
import { HarborArtifact, HarborChart, HarborChartVersion, HarborRepository, ProjectData, DeleteResponse } from "../types/index.js";
export declare class HarborService {
private client;
constructor(apiUrl: string, auth: {
username: string;
password: string;
});
getProjects(): Promise<HarborRepository[]>;
getProject(projectId: string): Promise<HarborRepository>;
createProject(projectData: ProjectData): Promise<HarborRepository>;
deleteProject(projectId: string): Promise<void>;
getRepositories(projectId: string): Promise<HarborRepository[]>;
deleteRepository(projectId: string, repositoryName: string): Promise<void>;
getTags(projectId: string, repositoryName: string): Promise<HarborArtifact[]>;
deleteTag(projectId: string, repositoryName: string, tagName: string): Promise<DeleteResponse>;
getCharts(projectId: string): Promise<HarborChart[]>;
getChartVersions(projectId: string, chartName: string): Promise<HarborChartVersion[]>;
deleteChart(projectId: string, chartName: string, version: string): Promise<DeleteResponse>;
private handleError;
handleToolRequest(toolName: string, args: Record<string, unknown>): Promise<{
content: {
type: string;
text: string;
}[];
}>;
}