export declare const MCP_URL = "https://mcp.upstash.com/mcp"; export declare const SERVER_NAME = "upstash"; export declare const SKILL_NAME = "upstash"; export declare const SKILLS_REPO = "upstash/skills"; export declare const PLUGIN_ID = "upstash@upstash"; export type Scope = "global" | "project"; export type PluginKind = "claude" | "codex" | "cursor" | "gemini"; export interface AgentConfig { displayName: string; /** Set when the agent can install the upstash/skills plugin (skills + MCP in one step). */ plugin?: { kind: PluginKind; scopes: Scope[]; }; mcp: { format: "json" | "toml"; /** Candidate config files; the first that exists wins, otherwise the first is created. */ paths: (scope: Scope) => string[]; configKey: string; /** The `upstash` server entry. It carries no credential: the server signs in with OAuth on first use. */ entry: Record; }; /** Directory the `upstash` skill folder is written into. */ skillDir: (scope: Scope) => string; /** Paths whose existence means the agent is in use. */ detect: (scope: Scope) => string[]; } /** https://developers.openai.com/codex/config-advanced#config-and-state-locations (`CODEX_HOME`, default ~/.codex) */ export declare function codexHome(): string; /** https://code.visualstudio.com/docs/configure/settings#_settings-file-locations */ export declare function vscodeUserDir(platform?: NodeJS.Platform): string; /** * Where each agent keeps its MCP config and skills. Every entry links the * vendor docs its paths and entry shape come from; check them when an agent * changes its layout. */ export declare const AGENTS: { /** * MCP: https://code.claude.com/docs/en/mcp (user scope: ~/.claude.json, project scope: .mcp.json, `type: "http"`) * Skills: https://code.claude.com/docs/en/skills * Plugins: https://code.claude.com/docs/en/plugins/cli-reference */ claude: { displayName: string; plugin: { kind: "claude"; scopes: ("global" | "project")[]; }; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { type: string; url: string; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * MCP: https://developers.openai.com/codex/mcp#configure-with-configtoml (`[mcp_servers.]`, `url`; * project .codex/config.toml loads only in trusted projects) * Skills: https://developers.openai.com/codex/skills (~/.agents/skills, .agents/skills) * Plugins: https://developers.openai.com/codex/cli/reference#codex-plugin */ codex: { displayName: string; plugin: { kind: "codex"; scopes: "global"[]; }; mcp: { format: "toml"; paths: (s: Scope) => string[]; configKey: string; entry: { url: string; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * MCP: https://cursor.com/docs/context/mcp#configuration-locations (~/.cursor/mcp.json, .cursor/mcp.json) * Skills: https://cursor.com/docs/context/skills#skill-directories * Plugins: https://cursor.com/docs/plugins#test-plugins-locally */ cursor: { displayName: string; plugin: { kind: "cursor"; scopes: "global"[]; }; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { url: string; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * MCP: https://geminicli.com/docs/tools/mcp-server/#configuration-properties (`mcpServers`, `httpUrl`) * Settings files: https://geminicli.com/docs/reference/configuration/#settings-files * Skills: https://geminicli.com/docs/cli/skills/#discovery-tiers * Extensions: https://geminicli.com/docs/extensions/reference/#install-an-extension */ gemini: { displayName: string; plugin: { kind: "gemini"; scopes: "global"[]; }; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { httpUrl: string; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * MCP: https://code.visualstudio.com/docs/agents/reference/mcp-configuration#_configuration-file (top-level `servers`) * These docs now list .vscode/mcp.json and the user-profile mcp.json as deprecated in favour of * .mcp.json and ~/.copilot/mcp-config.json; VS Code still reads them: * https://code.visualstudio.com/docs/agent-customization/mcp-servers#_configure-the-mcpjson-file * Skills: https://code.visualstudio.com/docs/agent-customization/agent-skills */ vscode: { displayName: string; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { type: string; url: string; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * MCP: https://docs.github.com/en/copilot/how-tos/copilot-cli/customize-copilot/add-mcp-servers * (~/.copilot/mcp-config.json, project .mcp.json, `tools: ["*"]`) * Skills: https://docs.github.com/en/copilot/concepts/agents/about-agent-skills */ copilot: { displayName: string; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { type: string; url: string; tools: string[]; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; /** * Config files: https://opencode.ai/docs/config#locations * MCP: https://opencode.ai/docs/mcp-servers#remote (`mcp`, `type: "remote"`) * Skills: https://opencode.ai/docs/skills#place-files */ opencode: { displayName: string; mcp: { format: "json"; paths: (s: Scope) => string[]; configKey: string; entry: { type: string; url: string; enabled: boolean; }; }; skillDir: (s: Scope) => string; detect: (s: Scope) => string[]; }; }; export type AgentName = keyof typeof AGENTS; export declare const AGENT_NAMES: AgentName[]; export declare function getAgent(name: AgentName): AgentConfig; //# sourceMappingURL=agents.d.ts.map