From f6e3cd508eb8c0b34714bb11a15cc35e2b31abe6 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Fri, 7 Feb 2025 12:37:46 +0100 Subject: [PATCH 01/16] Update continue-config.json --- continue-config.json | 41 ++++++++++++++++++++++++++--------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/continue-config.json b/continue-config.json index ba550b5..93d816f 100644 --- a/continue-config.json +++ b/continue-config.json @@ -1,16 +1,27 @@ { - "models": [ - { - "title": "On-prem Llama3-8b", - "model": "llama3:8b", - "apiBase": "http://localhost:11434", - "provider": "ollama" - } - ], - "tabAutocompleteModel": { - "title": "Starcoder2 3b", - "provider": "ollama", - "model": "starcoder2:3b" - }, - "allowAnonymousTelemetry": false - } + "models": [ + { + "title": "On-prem Llama3-8b", + "model": "llama3:8b", + "apiBase": "http://localhost:11434", + "provider": "ollama" + } + ], + "tabAutocompleteModel": { + "title": "Starcoder2 3b", + "provider": "ollama", + "model": "starcoder2:3b" + }, + "allowAnonymousTelemetry": false, + "experimental": { + "modelContextProtocolServers": [ + { + "transport": { + "type": "stdio", + "command": "jbang", + "args": ["--quiet", "https://github.com/quarkiverse/quarkus-mcp-servers/blob/main/kubernetes/src/main/java/io/quarkus/mcp/servers/kubernetes/MCPServerKubernetes.java"] + } + } + ] +} +} From e8f00a310bb277214274af67c6f63336e3bb868c Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 13:29:09 +0100 Subject: [PATCH 02/16] chore: removing projects definition Signed-off-by: Ilya Buziuk --- devfile.yaml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index d976f8d..906bf49 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -3,13 +3,6 @@ metadata: generateName: cde-ollama-continue attributes: controller.devfile.io/storage-type: ephemeral -projects: - - name: cde-ollama-continue - git: - remotes: - origin: 'https://github.com/redhat-developer-demos/cde-ollama-continue' - checkoutFrom: - revision: main components: - name: udi container: From 749c0b5277e7d7e233af8cb004b32164c8480f1e Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 13:50:26 +0100 Subject: [PATCH 03/16] fix: jbang trust add https://github.com/quarkiverse/quarkus-mcp-servers/ Signed-off-by: Ilya Buziuk --- devfile.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devfile.yaml b/devfile.yaml index 906bf49..f4e121b 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -38,6 +38,10 @@ commands: exec: component: ollama commandLine: "ollama pull starcoder2:3b" + - id: trustmcp + exec: + component: udi + commandLine: "jbang trust add https://github.com/quarkiverse/quarkus-mcp-servers/" - id: copyconfig exec: component: udi @@ -46,4 +50,5 @@ events: postStart: - pullmodel - pullautocompletemodel + - trustmcp - copyconfig From 5b19e1cd7d7d88cc3a4b91a11307b373385865de Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:05:28 +0100 Subject: [PATCH 04/16] fixup! removing poststart mcpc Signed-off-by: Ilya Buziuk --- devfile.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index f4e121b..18e70a7 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -50,5 +50,4 @@ events: postStart: - pullmodel - pullautocompletemodel - - trustmcp - copyconfig From 424094d768113ba23bdd974a72d5bda700c675da Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:25:12 +0100 Subject: [PATCH 05/16] chore: add trustmcp as poststart Signed-off-by: Ilya Buziuk --- devfile.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/devfile.yaml b/devfile.yaml index 18e70a7..51d24b9 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -48,6 +48,7 @@ commands: commandLine: "mkdir /home/user/.continue && cp /projects/cde-ollama-continue/continue-config.json /home/user/.continue/config.json" events: postStart: + - trustmcp - pullmodel - pullautocompletemodel - copyconfig From 971e62d1172822feb9d6f6e254d360615c776f58 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:28:58 +0100 Subject: [PATCH 06/16] removing copy config Signed-off-by: Ilya Buziuk --- devfile.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 51d24b9..d9a2318 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -51,4 +51,3 @@ events: - trustmcp - pullmodel - pullautocompletemodel - - copyconfig From ec84631535b6030d256a33725cca0610d123e232 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:37:10 +0100 Subject: [PATCH 07/16] fixing mcp command Signed-off-by: Ilya Buziuk --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index d9a2318..6f16007 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -41,7 +41,7 @@ commands: - id: trustmcp exec: component: udi - commandLine: "jbang trust add https://github.com/quarkiverse/quarkus-mcp-servers/" + commandLine: "jbang trust add 'https://github.com/quarkiverse/quarkus-mcp-servers/'" - id: copyconfig exec: component: udi From 0ba1b385d15aacda3bc0b61b0fd853dfb5582a16 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:41:31 +0100 Subject: [PATCH 08/16] fixup! config update Signed-off-by: Ilya Buziuk --- devfile.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 6f16007..4d5edb8 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -41,11 +41,11 @@ commands: - id: trustmcp exec: component: udi - commandLine: "jbang trust add 'https://github.com/quarkiverse/quarkus-mcp-servers/'" + commandLine: "jbang trust add '*'" - id: copyconfig exec: component: udi - commandLine: "mkdir /home/user/.continue && cp /projects/cde-ollama-continue/continue-config.json /home/user/.continue/config.json" + commandLine: "mkdir /home/user/.continue && cp /projects/cdegit-ollama-continue/continue-config.json /home/user/.continue/config.json" events: postStart: - trustmcp From 19f268c09632930640fcf809f992313fbd66f12e Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:43:02 +0100 Subject: [PATCH 09/16] config update Signed-off-by: Ilya Buziuk --- devfile.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 4d5edb8..3f917e5 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -45,9 +45,10 @@ commands: - id: copyconfig exec: component: udi - commandLine: "mkdir /home/user/.continue && cp /projects/cdegit-ollama-continue/continue-config.json /home/user/.continue/config.json" + commandLine: "mkdir /home/user/.continue && cp /projects/cde-ollama-continue/continue-config.json /home/user/.continue/config.json" events: postStart: - - trustmcp - pullmodel - pullautocompletemodel + - trustmcp + From fc40c5336f73bfc40a2ac2b2e9f84031d9a21d16 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:45:16 +0100 Subject: [PATCH 10/16] version test Signed-off-by: Ilya Buziuk --- devfile.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 3f917e5..23559c2 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -41,7 +41,7 @@ commands: - id: trustmcp exec: component: udi - commandLine: "jbang trust add '*'" + commandLine: "jbang version" - id: copyconfig exec: component: udi @@ -51,4 +51,3 @@ events: - pullmodel - pullautocompletemodel - trustmcp - From e5b75dd831b42638b5036d343fad1d09a3b866cd Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:53:44 +0100 Subject: [PATCH 11/16] semantic check Signed-off-by: Ilya Buziuk --- devfile.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 23559c2..6d8b308 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -38,10 +38,13 @@ commands: exec: component: ollama commandLine: "ollama pull starcoder2:3b" - - id: trustmcp + - id: show-cluster-url exec: + label: "3. Show Cluster URL" component: udi - commandLine: "jbang version" + commandLine: | + oc whoami --show-console + workingDir: ${PROJECT_SOURCE} - id: copyconfig exec: component: udi @@ -50,4 +53,4 @@ events: postStart: - pullmodel - pullautocompletemodel - - trustmcp + - show-cluster-url From 7931353e499f4f5c266fcf49632433c6072c3b5e Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 14:58:01 +0100 Subject: [PATCH 12/16] switch to jbang Signed-off-by: Ilya Buziuk --- devfile.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 6d8b308..98da714 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -43,7 +43,7 @@ commands: label: "3. Show Cluster URL" component: udi commandLine: | - oc whoami --show-console + jbang version workingDir: ${PROJECT_SOURCE} - id: copyconfig exec: From 8fec52b900d1854b1d46555f18c697c46de51d2c Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 15:29:35 +0100 Subject: [PATCH 13/16] remove postStart Signed-off-by: Ilya Buziuk --- devfile.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 98da714..553312f 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -43,7 +43,7 @@ commands: label: "3. Show Cluster URL" component: udi commandLine: | - jbang version + jbang --quiet version workingDir: ${PROJECT_SOURCE} - id: copyconfig exec: @@ -53,4 +53,3 @@ events: postStart: - pullmodel - pullautocompletemodel - - show-cluster-url From 46ef900055231b0bd979bbec753dcf4212e1d490 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 15:45:38 +0100 Subject: [PATCH 14/16] update command Signed-off-by: Ilya Buziuk --- devfile.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/devfile.yaml b/devfile.yaml index 553312f..326dfc7 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -38,9 +38,9 @@ commands: exec: component: ollama commandLine: "ollama pull starcoder2:3b" - - id: show-cluster-url + - id: trust-quarkus-mcp-servers exec: - label: "3. Show Cluster URL" + label: "Trust Quarkus MCP Servers" component: udi commandLine: | jbang --quiet version @@ -53,3 +53,4 @@ events: postStart: - pullmodel - pullautocompletemodel + - trust-quarkus-mcp-servers From be808d21bbd67224b0102f09472c220ac960e71b Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 17:49:47 +0100 Subject: [PATCH 15/16] Adding source /Users/ibuziuk/.bashrc workaround Signed-off-by: Ilya Buziuk --- devfile.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devfile.yaml b/devfile.yaml index 326dfc7..a920123 100644 --- a/devfile.yaml +++ b/devfile.yaml @@ -43,7 +43,7 @@ commands: label: "Trust Quarkus MCP Servers" component: udi commandLine: | - jbang --quiet version + source $HOME/.bashrc && jbang trust add https://github.com/quarkiverse/quarkus-mcp-servers/ workingDir: ${PROJECT_SOURCE} - id: copyconfig exec: @@ -54,3 +54,4 @@ events: - pullmodel - pullautocompletemodel - trust-quarkus-mcp-servers + - copyconfig From 850dd15b44ddf4780a16dbdf4fe5e93a84657a22 Mon Sep 17 00:00:00 2001 From: Ilya Buziuk Date: Mon, 3 Mar 2025 18:27:36 +0100 Subject: [PATCH 16/16] updating continue config Signed-off-by: Ilya Buziuk --- continue-config.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/continue-config.json b/continue-config.json index 93d816f..e9796b6 100644 --- a/continue-config.json +++ b/continue-config.json @@ -18,8 +18,8 @@ { "transport": { "type": "stdio", - "command": "jbang", - "args": ["--quiet", "https://github.com/quarkiverse/quarkus-mcp-servers/blob/main/kubernetes/src/main/java/io/quarkus/mcp/servers/kubernetes/MCPServerKubernetes.java"] + "command": "npx", + "args": ["-y", "kubernetes-mcp-server@latest"] } } ]