docs: misc updates for extensions directory (#5035)
Co-authored-by: Amed Rodriguez <amed@squareup.com>
This commit is contained in:
@@ -85,7 +85,7 @@ export function ServerCard({ server }: { server: MCPServer }) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!server.is_builtin && (
|
||||
{!server.is_builtin && (server.show_install_command !== false) && (
|
||||
<>
|
||||
<button
|
||||
onClick={() => setIsCommandVisible(!isCommandVisible)}
|
||||
@@ -139,7 +139,7 @@ export function ServerCard({ server }: { server: MCPServer }) {
|
||||
>
|
||||
Built-in
|
||||
</div>
|
||||
) : (
|
||||
) : server.show_install_link !== false ? (
|
||||
<a
|
||||
href={getGooseInstallLink(server)}
|
||||
target="_blank"
|
||||
@@ -149,7 +149,7 @@ export function ServerCard({ server }: { server: MCPServer }) {
|
||||
<span>Install</span>
|
||||
<Download className="h-4 w-4" />
|
||||
</a>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -103,7 +103,7 @@ const getDocumentationPath = (serverId: string): string => {
|
||||
Can be enabled on the Extensions page in Goose
|
||||
</span>
|
||||
</div>
|
||||
) : (
|
||||
) : server.show_install_command !== false ? (
|
||||
<>
|
||||
<div className="flex items-center gap-2 text-textStandard">
|
||||
<Terminal className="h-4 w-4" />
|
||||
@@ -129,7 +129,7 @@ const getDocumentationPath = (serverId: string): string => {
|
||||
)}
|
||||
</div>
|
||||
</>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
|
||||
{server.environmentVariables && (
|
||||
@@ -215,7 +215,7 @@ const getDocumentationPath = (serverId: string): string => {
|
||||
>
|
||||
Built-in
|
||||
</div>
|
||||
) : (
|
||||
) : server.show_install_link !== false ? (
|
||||
<a
|
||||
href={getGooseInstallLink(server)}
|
||||
target="_blank"
|
||||
@@ -225,7 +225,7 @@ const getDocumentationPath = (serverId: string): string => {
|
||||
<span>Install</span>
|
||||
<Download className="h-4 w-4" />
|
||||
</a>
|
||||
)}
|
||||
) : null}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -9,6 +9,8 @@ export interface MCPServer {
|
||||
installation_notes: string;
|
||||
is_builtin: boolean;
|
||||
endorsed: boolean;
|
||||
show_install_link?: boolean;
|
||||
show_install_command?: boolean;
|
||||
environmentVariables: {
|
||||
name: string;
|
||||
description: string;
|
||||
|
||||
Reference in New Issue
Block a user