chore: include pre-built dist for github install
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
export declare function expandEnvVars(value: string): string;
|
||||
export declare function expandEnvVarsInObject<T>(obj: T): T;
|
||||
+10
@@ -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";
|
||||
@@ -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;
|
||||
@@ -0,0 +1,2 @@
|
||||
import type { ClaudeCodeMcpServer, McpServerConfig } from "./types";
|
||||
export declare function transformMcpServer(name: string, server: ClaudeCodeMcpServer): McpServerConfig;
|
||||
+39
@@ -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[];
|
||||
}
|
||||
Reference in New Issue
Block a user