feat(types): add icon, options, and options_from to TypeScript types
Add icon field to McpManifestServer. Add options and options_from fields to McpManifestConfig. Add McpManifestOptionsFrom interface with file and path properties for JSONPath-based dynamic options
This commit is contained in:
10
src/types.ts
10
src/types.ts
@@ -26,6 +26,7 @@ export interface McpManifestServer {
|
|||||||
homepage?: string;
|
homepage?: string;
|
||||||
repository?: string;
|
repository?: string;
|
||||||
license?: string;
|
license?: string;
|
||||||
|
icon?: string;
|
||||||
keywords?: string[];
|
keywords?: string[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -52,6 +53,15 @@ export interface McpManifestConfig {
|
|||||||
env_var?: string;
|
env_var?: string;
|
||||||
arg?: string;
|
arg?: string;
|
||||||
prompt?: string;
|
prompt?: string;
|
||||||
|
options?: string[];
|
||||||
|
options_from?: McpManifestOptionsFrom;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface McpManifestOptionsFrom {
|
||||||
|
/** Path to a local JSON file. ~ is expanded to the user's home directory. */
|
||||||
|
file: string;
|
||||||
|
/** JSONPath expression to extract values from the file. */
|
||||||
|
path: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user