mirror of
https://github.com/aljazceru/goose.git
synced 2025-12-18 06:34:26 +01:00
Add Pieces for Developers MCP server to the extensions library (#2074)
Co-authored-by: Jim Bennett <jim@pieces.app>
This commit is contained in:
@@ -35,7 +35,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
handleGeneratedLink(link, true);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Handle custom extension
|
||||
const cmd = urlParams.get('cmd');
|
||||
if (!cmd) {
|
||||
@@ -93,7 +93,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
tab.addEventListener('click', () => {
|
||||
tabs.forEach(t => t.classList.remove('active'));
|
||||
tab.classList.add('active');
|
||||
|
||||
|
||||
document.querySelectorAll('.tab-content').forEach(content => {
|
||||
content.classList.remove('active');
|
||||
});
|
||||
@@ -197,6 +197,23 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
return `goose://extension?${queryParams}`;
|
||||
}
|
||||
|
||||
// Handle the case where the command is a URL
|
||||
if (server.url) {
|
||||
const queryParams = [
|
||||
`url=${encodeURIComponent(server.url)}`,
|
||||
`id=${encodeURIComponent(server.id)}`,
|
||||
`name=${encodeURIComponent(server.name)}`,
|
||||
`description=${encodeURIComponent(server.description)}`,
|
||||
...server.environmentVariables
|
||||
.filter((env) => env.required)
|
||||
.map(
|
||||
(env) => `env=${encodeURIComponent(`${env.name}=${env.description}`)}`
|
||||
),
|
||||
].join("&");
|
||||
|
||||
return `goose://extension?${queryParams}`;
|
||||
}
|
||||
|
||||
const parts = server.command.split(" ");
|
||||
const baseCmd = parts[0];
|
||||
const args = parts.slice(1);
|
||||
|
||||
@@ -142,5 +142,16 @@
|
||||
"endorsed": false,
|
||||
"githubStars": 27,
|
||||
"environmentVariables": []
|
||||
},
|
||||
{
|
||||
"id": "pieces",
|
||||
"name": "Pieces",
|
||||
"description": "Provides access to your Pieces Long-Term Memory. You need to have Pieces installed to use this.",
|
||||
"url": "http://localhost:39300/model_context_protocol/2024-11-05/sse",
|
||||
"link": "https://pieces.app?utm_source=goose&utm_medium=collab&utm_campaign=mcp",
|
||||
"installation_notes": "You need to install Pieces first, and have this running.",
|
||||
"is_builtin": false,
|
||||
"endorsed": false,
|
||||
"environmentVariables": []
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user