Skip to content

Commit 7858c79

Browse files
Pauttheadclaude
andcommitted
fix: remove outputSchema to fix RuntimeError in MCP clients that validate structured output
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4880f67 commit 7858c79

5 files changed

Lines changed: 1 addition & 116 deletions

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface Env {
1010
}
1111

1212
const SERVER_NAME = "mcp-x-intelligence";
13-
const SERVER_VERSION = "1.1.0";
13+
const SERVER_VERSION = "1.2.0";
1414
const PROTOCOL_VERSION = "2024-11-05";
1515

1616
/** All tool manifests in registration order. */

src/tools/account.ts

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -19,49 +19,6 @@ export const ACCOUNT_MANIFEST = {
1919
},
2020
required: ["username"],
2121
},
22-
outputSchema: {
23-
type: "object",
24-
properties: {
25-
username: { type: "string" },
26-
name: { type: "string" },
27-
followers: { type: "number" },
28-
following: { type: "number" },
29-
verified: { type: "boolean" },
30-
bio: { type: "string" },
31-
created_at: { type: "string" },
32-
metrics: {
33-
type: "object",
34-
properties: {
35-
avg_likes: { type: "number" },
36-
avg_retweets: { type: "number" },
37-
avg_replies: { type: "number" },
38-
engagement_rate: { type: "number" },
39-
},
40-
},
41-
top_5_posts: {
42-
type: "array",
43-
items: {
44-
type: "object",
45-
properties: {
46-
url: { type: "string" },
47-
text: { type: "string" },
48-
likes: { type: "number" },
49-
},
50-
},
51-
},
52-
most_active_hours: {
53-
type: "array",
54-
items: {
55-
type: "object",
56-
properties: {
57-
hour: { type: "number" },
58-
count: { type: "number" },
59-
label: { type: "string" },
60-
},
61-
},
62-
},
63-
},
64-
},
6522
annotations: {
6623
readOnlyHint: true,
6724
openWorldHint: true,

src/tools/niche.ts

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -19,27 +19,6 @@ export const NICHE_MANIFEST = {
1919
},
2020
required: ["keyword"],
2121
},
22-
outputSchema: {
23-
type: "object",
24-
properties: {
25-
leaders: {
26-
type: "array",
27-
items: {
28-
type: "object",
29-
properties: {
30-
username: { type: "string" },
31-
name: { type: "string" },
32-
followers: { type: "number" },
33-
verified: { type: "boolean" },
34-
bio: { type: "string" },
35-
profile_url: { type: "string" },
36-
},
37-
},
38-
},
39-
count: { type: "number" },
40-
keyword: { type: "string" },
41-
},
42-
},
4322
annotations: {
4423
readOnlyHint: true,
4524
openWorldHint: true,

src/tools/search.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -31,39 +31,6 @@ export const SEARCH_MANIFEST = {
3131
},
3232
required: ["query"],
3333
},
34-
outputSchema: {
35-
type: "object",
36-
properties: {
37-
results: {
38-
type: "array",
39-
items: {
40-
type: "object",
41-
properties: {
42-
id: { type: "string" },
43-
url: { type: "string" },
44-
text: { type: "string" },
45-
author_username: { type: "string" },
46-
author_name: { type: "string" },
47-
likes: { type: "number" },
48-
retweets: { type: "number" },
49-
replies: { type: "number" },
50-
bookmarks: { type: "number" },
51-
created_at: { type: "string" },
52-
},
53-
},
54-
},
55-
count: { type: "number" },
56-
query: { type: "string" },
57-
filters: {
58-
type: "object",
59-
properties: {
60-
min_likes: { type: "number" },
61-
min_retweets: { type: "number" },
62-
hours_back: { type: "number" },
63-
},
64-
},
65-
},
66-
},
6734
annotations: {
6835
readOnlyHint: true,
6936
openWorldHint: true,

src/tools/trends.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,6 @@ export const TRENDS_MANIFEST = {
1616
},
1717
required: [],
1818
},
19-
outputSchema: {
20-
type: "object",
21-
properties: {
22-
trends: {
23-
type: "array",
24-
items: {
25-
type: "object",
26-
properties: {
27-
name: { type: "string" },
28-
tweet_volume: { type: ["number", "null"] },
29-
url: { type: "string" },
30-
},
31-
},
32-
},
33-
count: { type: "number" },
34-
woeid: { type: "number" },
35-
},
36-
},
3719
annotations: {
3820
readOnlyHint: true,
3921
openWorldHint: true,

0 commit comments

Comments
 (0)