File tree Expand file tree Collapse file tree 2 files changed +25
-17
lines changed Expand file tree Collapse file tree 2 files changed +25
-17
lines changed Original file line number Diff line number Diff line change 1
- export const MCP_POLICY_NAME = " MCP=*" ;
1
+ export const MCP_POLICY_NAME = ' MCP=*' ;
2
2
export const DD_BUILD_WITH_SECRET_SUPPORT = 184396 ;
3
- export const CATALOG_URL = "http://localhost:9911/catalog.yaml" ;
4
3
// export const CATALOG_URL = "https://raw.githubusercontent.com/docker/labs-ai-tools-for-devs/refs/heads/main/prompts/catalog.yaml";
4
+ export const CATALOG_URL = import . meta. env . DEV
5
+ ? '/catalog'
6
+ : 'https://desktop.docker.com/mcp/catalog/catalog.yaml' ;
5
7
6
8
export const getUnsupportedSecretMessage = ( ddVersion : {
7
9
version : string ;
8
10
build : number ;
9
11
} ) =>
10
12
`Secret support is not available in this version of Docker Desktop. You are on version ${ ddVersion . version } , but the minimum required version is 4.40.0.` ;
11
13
12
- export const DOCKER_MCP_IMAGE = " alpine/socat" ;
13
- export const DOCKER_MCP_CONTAINER_ARGS = " STDIO TCP:host.docker.internal:8811" ;
14
+ export const DOCKER_MCP_IMAGE = ' alpine/socat' ;
15
+ export const DOCKER_MCP_CONTAINER_ARGS = ' STDIO TCP:host.docker.internal:8811' ;
14
16
export const DOCKER_MCP_COMMAND = `docker run -i --rm ${ DOCKER_MCP_IMAGE } ${ DOCKER_MCP_CONTAINER_ARGS } ` ;
15
17
16
18
export const CATALOG_LAYOUT_SX = {
17
- width : " 90vw" ,
18
- maxWidth : " 1200px" ,
19
+ width : ' 90vw' ,
20
+ maxWidth : ' 1200px' ,
19
21
} ;
20
22
21
- export const ASSIGNED_SECRET_PLACEHOLDER = " ********" ;
23
+ export const ASSIGNED_SECRET_PLACEHOLDER = ' ********' ;
22
24
23
25
// Filenames in docker-prompts volume
24
- export const REGISTRY_YAML = 'registry.yaml'
25
- export const CONFIG_YAML = 'config.yaml'
26
+ export const REGISTRY_YAML = 'registry.yaml' ;
27
+ export const CONFIG_YAML = 'config.yaml' ;
Original file line number Diff line number Diff line change 1
- import { defineConfig } from "vite" ;
2
- import react from "@vitejs/plugin-react" ;
1
+ import react from '@vitejs/plugin-react' ;
2
+ import { defineConfig } from 'vite' ;
3
3
4
4
// https://vitejs.dev/config/
5
5
export default defineConfig ( {
6
6
plugins : [ react ( ) ] ,
7
- base : "./" ,
7
+ base : './' ,
8
8
build : {
9
- outDir : " build" ,
9
+ outDir : ' build' ,
10
10
chunkSizeWarningLimit : 100 ,
11
11
rollupOptions : {
12
12
output : {
13
13
manualChunks : {
14
- vendor : [ " react" , " react-dom" ] ,
15
- " ui-libs" : [ " @mui/material" , " @emotion/react" , " @emotion/styled" ] ,
14
+ vendor : [ ' react' , ' react-dom' ] ,
15
+ ' ui-libs' : [ ' @mui/material' , ' @emotion/react' , ' @emotion/styled' ] ,
16
16
} ,
17
17
} ,
18
18
onwarn ( warning , warn ) {
19
- if ( warning . code === " MODULE_LEVEL_DIRECTIVE" ) {
19
+ if ( warning . code === ' MODULE_LEVEL_DIRECTIVE' ) {
20
20
return ;
21
21
}
22
22
warn ( warning ) ;
@@ -26,6 +26,12 @@ export default defineConfig({
26
26
assetsInclude : [ './static-assets/**/*' ] ,
27
27
server : {
28
28
port : 3000 ,
29
- strictPort : true ,
29
+ proxy : {
30
+ '/catalog' : {
31
+ target : 'https://desktop.docker.com/mcp/catalog/catalog.yaml' ,
32
+ changeOrigin : true ,
33
+ rewrite : ( path ) => path . replace ( / ^ \/ c a t a l o g / , '' ) ,
34
+ } ,
35
+ } ,
30
36
} ,
31
37
} ) ;
You can’t perform that action at this time.
0 commit comments