@oneshot-agent/mcp-server 0.17.1 → 0.17.3

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/dist/index.js CHANGED
@@ -38,7 +38,7 @@ async function main() {
38
38
  // Create MCP server
39
39
  const server = new Server({
40
40
  name: "oneshot-mcp",
41
- version: "0.17.1", // keep in sync with package.json; guarded by version.test.ts
41
+ version: "0.17.3", // keep in sync with package.json; guarded by version.test.ts
42
42
  }, {
43
43
  capabilities: {
44
44
  tools: {},
@@ -6,6 +6,8 @@ export declare const articleSearchTool: Tool;
6
6
  export declare const personNewsfeedTool: Tool;
7
7
  export declare const personInterestsTool: Tool;
8
8
  export declare const personInteractionsTool: Tool;
9
+ /** Deep person research fans out across several providers; the SDK's 120s default was too short. */
10
+ export declare const DEEP_RESEARCH_PERSON_TIMEOUT_SEC = 300;
9
11
  export declare function handleDeepResearchPerson(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").DeepResearchPersonResult>;
10
12
  export declare function handleSocialProfiles(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").SocialProfilesResult>;
11
13
  export declare function handleArticleSearch(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").ArticleSearchResult>;
@@ -73,12 +73,15 @@ export const personInteractionsTool = {
73
73
  },
74
74
  };
75
75
  // Handlers
76
+ /** Deep person research fans out across several providers; the SDK's 120s default was too short. */
77
+ export const DEEP_RESEARCH_PERSON_TIMEOUT_SEC = 300;
76
78
  export async function handleDeepResearchPerson(agent, args) {
77
79
  return agent.deepResearchPerson({
78
80
  email: args.email,
79
81
  social_media_url: args.social_media_url,
80
82
  name: args.name,
81
83
  company: args.company,
84
+ timeout: DEEP_RESEARCH_PERSON_TIMEOUT_SEC,
82
85
  });
83
86
  }
84
87
  export async function handleSocialProfiles(agent, args) {
@@ -1,4 +1,11 @@
1
1
  import { Tool } from "@modelcontextprotocol/sdk/types.js";
2
2
  import { OneShot } from "@oneshot-agent/sdk";
3
3
  export declare const researchTool: Tool;
4
+ /**
5
+ * Wait budget per depth. The SDK's default is 120s, but deep research runs
6
+ * 2–5 minutes (as the tool description says), so every deep call used to end
7
+ * in JobTimeoutError while the job kept running. Results are pushed the
8
+ * moment they exist, so a generous ceiling costs nothing on fast jobs.
9
+ */
10
+ export declare const RESEARCH_TIMEOUT_SEC: Record<"quick" | "deep", number>;
4
11
  export declare function handleResearch(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").ResearchResult>;
@@ -26,9 +26,18 @@ export const researchTool = {
26
26
  required: ["topic"],
27
27
  },
28
28
  };
29
+ /**
30
+ * Wait budget per depth. The SDK's default is 120s, but deep research runs
31
+ * 2–5 minutes (as the tool description says), so every deep call used to end
32
+ * in JobTimeoutError while the job kept running. Results are pushed the
33
+ * moment they exist, so a generous ceiling costs nothing on fast jobs.
34
+ */
35
+ export const RESEARCH_TIMEOUT_SEC = { quick: 180, deep: 600 };
29
36
  export async function handleResearch(agent, args) {
37
+ const depth = args.depth ?? "deep";
30
38
  return agent.research({
31
39
  topic: args.topic,
32
- depth: args.depth,
40
+ depth,
41
+ timeout: RESEARCH_TIMEOUT_SEC[depth],
33
42
  });
34
43
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oneshot-agent/mcp-server",
3
- "version": "0.17.1",
4
- "description": "MCP server for OneShot - commercial actions for AI agents",
3
+ "version": "0.17.3",
4
+ "description": "MCP server for OneShot - 47 tools for AI agents",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@coinbase/cdp-sdk": "1.45.0",
27
27
  "@modelcontextprotocol/sdk": "1.27.1",
28
- "@oneshot-agent/sdk": "^0.28.0",
28
+ "@oneshot-agent/sdk": "^0.29.0",
29
29
  "zod": "3.25.76"
30
30
  },
31
31
  "devDependencies": {