acp migration (ui) : ui connect to acp directly instead of goosed (#10081)
This commit is contained in:
@@ -68,7 +68,7 @@ export default function DeeplinkGenerator() {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
if (urlParams.toString()) {
|
||||
try {
|
||||
if (urlParams.get('cmd') === 'goosed' && urlParams.getAll('arg').includes('mcp')) {
|
||||
if (urlParams.get('cmd') === 'goose' && urlParams.getAll('arg').includes('mcp')) {
|
||||
const args = urlParams.getAll('arg');
|
||||
const extensionId = args[args.indexOf('mcp') + 1];
|
||||
if (!extensionId) {
|
||||
@@ -187,7 +187,7 @@ export default function DeeplinkGenerator() {
|
||||
const generateDeeplink = (server: ServerConfig): string => {
|
||||
if (server.is_builtin) {
|
||||
const queryParams = [
|
||||
'cmd=goosed',
|
||||
'cmd=goose',
|
||||
'arg=mcp',
|
||||
`arg=${encodeURIComponent(server.id)}`,
|
||||
`description=${encodeURIComponent(server.id)}`
|
||||
|
||||
@@ -3,7 +3,7 @@ import type { MCPServer } from "../types/server";
|
||||
export function getGooseInstallLink(server: MCPServer): string {
|
||||
if (server.is_builtin) {
|
||||
const queryParams = [
|
||||
'cmd=goosed',
|
||||
'cmd=goose',
|
||||
'arg=mcp',
|
||||
`arg=${encodeURIComponent(server.id)}`,
|
||||
`description=${encodeURIComponent(server.id)}`
|
||||
@@ -53,4 +53,4 @@ export function getGooseInstallLink(server: MCPServer): string {
|
||||
].join("&");
|
||||
|
||||
return `goose://extension?${queryParams}`;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user