Skip to content

Commit b568b33

Browse files
authored
fix: Add actor id data to actor info (#687)
* send actorId data * Update structured_output_schemas.ts
1 parent 5dfac0e commit b568b33

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/tools/structured_output_schemas.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ export const actorInfoSchema = {
101101
properties: {
102102
title: { type: 'string', description: 'Actor title' },
103103
url: { type: 'string', description: 'Actor URL' },
104+
id: { type: 'string', description: 'Actor ID' },
104105
fullName: { type: 'string', description: 'Full Actor name (username/name)' },
105106
developer: developerSchema,
106107
description: { type: 'string', description: 'Actor description' },
@@ -121,7 +122,7 @@ export const actorInfoSchema = {
121122
modifiedAt: { type: 'string', description: 'Last modification date' },
122123
isDeprecated: { type: 'boolean', description: 'Whether the Actor is deprecated' },
123124
},
124-
required: ['url', 'fullName', 'developer', 'description', 'categories', 'pricing'],
125+
required: ['url', 'id', 'fullName', 'developer', 'description', 'categories', 'pricing', 'isDeprecated'],
125126
};
126127

127128
/**

src/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,7 @@ export type ActorsMcpServerOptions = {
576576
export type StructuredActorCard = {
577577
title?: string;
578578
url: string;
579+
id: string;
579580
fullName: string;
580581
pictureUrl?: string;
581582
developer: {

src/utils/actor_card.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ export function formatActorToStructuredCard(
227227
return {
228228
title: data.title,
229229
url: data.actorUrl,
230+
id: actor.id,
230231
fullName: data.actorFullName,
231232
pictureUrl: data.pictureUrl,
232233
developer: data.developer,

0 commit comments

Comments
 (0)