chore: include pre-built dist for github install

This commit is contained in:
Robin Mordasiewicz
2026-03-14 04:56:50 +00:00
parent a7f0a4cf46
commit bce8ff3a75
1011 changed files with 150081 additions and 0 deletions
@@ -0,0 +1,2 @@
export declare function expandEnvVars(value: string): string;
export declare function expandEnvVarsInObject<T>(obj: T): T;
+10
View File
@@ -0,0 +1,10 @@
/**
* MCP Configuration Loader
*
* Loads Claude Code .mcp.json format configurations from multiple scopes
* and transforms them to OpenCode SDK format
*/
export * from "./types";
export * from "./loader";
export * from "./transformer";
export * from "./env-expander";
+4
View File
@@ -0,0 +1,4 @@
import type { LoadedMcpServer, McpLoadResult } from "./types";
export declare function getSystemMcpServerNames(): Set<string>;
export declare function loadMcpConfigs(disabledMcps?: string[]): Promise<McpLoadResult>;
export declare function formatLoadedServersForToast(loadedServers: LoadedMcpServer[]): string;
+2
View File
@@ -0,0 +1,2 @@
import type { ClaudeCodeMcpServer, McpServerConfig } from "./types";
export declare function transformMcpServer(name: string, server: ClaudeCodeMcpServer): McpServerConfig;
+39
View File
@@ -0,0 +1,39 @@
export type McpScope = "user" | "project" | "local";
export interface ClaudeCodeMcpServer {
type?: "http" | "sse" | "stdio";
url?: string;
command?: string;
args?: string[];
env?: Record<string, string>;
headers?: Record<string, string>;
oauth?: {
clientId?: string;
scopes?: string[];
};
disabled?: boolean;
}
export interface ClaudeCodeMcpConfig {
mcpServers?: Record<string, ClaudeCodeMcpServer>;
}
export interface McpLocalConfig {
type: "local";
command: string[];
environment?: Record<string, string>;
enabled?: boolean;
}
export interface McpRemoteConfig {
type: "remote";
url: string;
headers?: Record<string, string>;
enabled?: boolean;
}
export type McpServerConfig = McpLocalConfig | McpRemoteConfig;
export interface LoadedMcpServer {
name: string;
scope: McpScope;
config: McpServerConfig;
}
export interface McpLoadResult {
servers: Record<string, McpServerConfig>;
loadedServers: LoadedMcpServer[];
}