@giantswarm-io/pro 1.15.14 → 1.16.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/lib/mcp/giantswarm.svg +1 -0
- package/src/lib/mcp/icon.js +17 -0
- package/src/lib/mcp/server.js +3 -1
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><linearGradient id="a" gradientUnits="userSpaceOnUse" x1="16" y1="28.8116" x2="16" y2="2"><stop offset="0" stop-color="#E14760"/><stop offset="1" stop-color="#FA8816"/></linearGradient><path fill="url(#a)" d="M30.9,11.4l-7.1-9c-0.4-0.5-1.2-0.5-1.5,0.1l-3,4.3c-1-0.5-2.1-0.8-3.2-0.8c-1.3,0-2.4,0.3-3.4,0.9L9.7,2.5C9.3,2,8.6,2,8.2,2.5l-7.1,9c-0.3,0.4,0.2,0.8,0.5,0.5l6.1-5.4c0.2-0.2,0.5-0.1,0.6,0L9.1,9c-3.5,0.9-6.1,4-6,7.7c0,4.2,3.3,7.6,7.4,7.9c0.1,1.5,1,3.2,3.8,4.2c0.2,0.1,0.4-0.2,0.3-0.4c-0.3-0.4-0.6-0.9-0.7-1.4c0.7,0.2,1.4,0.4,2.1,0.4c0.7,0,1.3-0.1,1.9-0.3c-0.1,0.5-0.4,1-0.6,1.4c-0.1,0.2,0,0.5,0.3,0.4c2.8-1,3.8-2.6,3.9-4.2c4.3-0.1,7.7-3.6,7.7-8c0-3.8-2.7-6.9-6.2-7.7l0.8-2.4c0.2-0.2,0.4-0.2,0.6,0l6.1,5.4C30.7,12.2,31.2,11.8,30.9,11.4z"/><ellipse transform="matrix(-0.8521 0.5233 -0.5233 -0.8521 26.8355 27.7139)" fill="#FFF" cx="9.5" cy="17.6" rx="4.2" ry="5.7"/><path fill="#E54D42" d="M7.8,20.2c0,0-0.1-0.3-0.1-0.7c0-0.5,0.1-0.7,0.1-0.7l2.1-0.9l-2.1-0.9c0,0-0.1-0.3-0.1-0.7c0-0.5,0.1-0.7,0.1-0.7l3.7,1.6c0,0,0.1,0.3,0.1,0.7c0,0.5-0.1,0.8-0.1,0.8L7.8,20.2z"/><ellipse transform="matrix(0.8521 0.5233 -0.5233 0.8521 12.583 -9.2355)" fill="#FFF" cx="22.6" cy="17.6" rx="4.2" ry="5.7"/><path fill="#E54D42" d="M20,18.6c0,0-0.1-0.2-0.1-0.7c0-0.5,0.1-0.7,0.1-0.7h4.9c0,0,0.1,0.2,0.1,0.7c0,0.5-0.1,0.7-0.1,0.7H20z"/></svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The MCP server's icon (serverInfo.icons): the Giant Swarm logo.
|
|
3
|
+
*
|
|
4
|
+
* giantswarm.svg is a byte-identical copy of brand/giantswarm.svg in
|
|
5
|
+
* https://github.com/giantswarm/mcp-toolkit (d3c53e0), the logo Giant Swarm's
|
|
6
|
+
* Go MCP servers advertise; brand.GiantSwarmIcon() there builds the same icon.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { readFileSync } from 'node:fs';
|
|
10
|
+
|
|
11
|
+
const svg = readFileSync(new URL('./giantswarm.svg', import.meta.url));
|
|
12
|
+
|
|
13
|
+
export const serverIcon = {
|
|
14
|
+
src: `data:image/svg+xml;base64,${svg.toString('base64')}`,
|
|
15
|
+
mimeType: 'image/svg+xml',
|
|
16
|
+
sizes: ['any']
|
|
17
|
+
};
|
package/src/lib/mcp/server.js
CHANGED
|
@@ -31,6 +31,7 @@ import { tools, toolHandlers } from './tools.js';
|
|
|
31
31
|
import { validateToolArguments } from './validate.js';
|
|
32
32
|
import { listResources, readResource } from './resources.js';
|
|
33
33
|
import { logger } from '../logger.js';
|
|
34
|
+
import { serverIcon } from './icon.js';
|
|
34
35
|
import { version } from '../version.js';
|
|
35
36
|
|
|
36
37
|
/**
|
|
@@ -43,7 +44,8 @@ export function createMCPServer() {
|
|
|
43
44
|
const server = new Server(
|
|
44
45
|
{
|
|
45
46
|
name: 'giantswarm-pro',
|
|
46
|
-
version
|
|
47
|
+
version,
|
|
48
|
+
icons: [serverIcon]
|
|
47
49
|
},
|
|
48
50
|
{
|
|
49
51
|
capabilities: {
|