f341991a1f
- New tools: gitea_repo_mirror_create, gitea_repo_mirror_delete, gitea_repo_mirror_setup_github_backup - One-step backup setup: creates GitHub repo + configures push mirror + triggers sync - GitHub token/org stored in shared config, no need to pass every call - Config filename standardized to .mcp_mokogitea.json (shared across all Gitea MCPs) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
38 lines
863 B
TypeScript
38 lines
863 B
TypeScript
/* Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
*
|
|
* This file is part of a Moko Consulting project.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* FILE INFORMATION
|
|
* DEFGROUP: gitea-api-mcp.Types
|
|
* INGROUP: gitea-api-mcp
|
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/gitea-api-mcp
|
|
* PATH: /src/types.ts
|
|
* VERSION: 01.00.00
|
|
* BRIEF: TypeScript type definitions for Gitea API MCP server
|
|
*/
|
|
|
|
export interface GiteaConnection {
|
|
baseUrl: string;
|
|
token: string;
|
|
/** Skip TLS certificate verification (self-signed certs) */
|
|
insecure?: boolean;
|
|
}
|
|
|
|
export interface GitHubBackupConfig {
|
|
token: string;
|
|
org: string;
|
|
}
|
|
|
|
export interface GiteaConfig {
|
|
connections: Record<string, GiteaConnection>;
|
|
defaultConnection: string;
|
|
github?: GitHubBackupConfig;
|
|
}
|
|
|
|
export interface ApiResponse {
|
|
status: number;
|
|
data: unknown;
|
|
}
|