Skip to content

Commit 21f06e2

Browse files
authored
Merge pull request #2 from deco-cx/feat/icon
feat: expose icon
2 parents c1f3024 + 6a3178f commit 21f06e2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

deno.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@deco/mcp",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"exports": "./mod.ts",
55
"tasks": {
66
"check": "deno fmt && deno lint && deno check mod.ts"

mcp/server.ts

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ const slugify = (name: string) => {
6868
};
6969
export interface Tool {
7070
name: string;
71+
icon?: string;
7172
resolveType: string;
7273
description: string;
7374
outputSchema: JSONSchema7;
@@ -178,11 +179,15 @@ export const getTools = <TManifest extends AppManifest>(
178179
additionalProperties: true,
179180
};
180181
};
182+
183+
const icon = (funcDefinition as { logo?: string }).logo;
184+
181185
return {
182186
name: toolName,
183187
resolveType,
184188
description: funcDefinition.description ?? inputSchema?.description ??
185189
resolveType,
190+
icon,
186191
outputSchema: normalizeSchema(outputSchema),
187192
inputSchema: normalizeSchema(inputSchema),
188193
};

0 commit comments

Comments
 (0)