@oneshot-agent/mcp-server 0.29.0 → 0.29.1
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/README.md +1 -1
- package/dist/index.js +1 -1
- package/dist/tools/analytics.d.ts +5 -0
- package/dist/tools/analytics.js +13 -5
- package/dist/tools/annotations.js +3 -3
- package/dist/tools/index.js +5 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ instead of the wallet variables for a credits-only session on your own machine.
|
|
|
226
226
|
| Tool | Description |
|
|
227
227
|
|------|-------------|
|
|
228
228
|
| `oneshot_spend_breakdown` | Spend by tool/category over a period |
|
|
229
|
-
| `
|
|
229
|
+
| `oneshot_return_on_spend` | Return on spend: cost vs. value produced |
|
|
230
230
|
| `oneshot_receipts_list` | List spend receipts |
|
|
231
231
|
| `oneshot_tag_receipt_value` | Tag a receipt with the value it generated |
|
|
232
232
|
|
package/dist/index.js
CHANGED
|
@@ -52,7 +52,7 @@ async function main() {
|
|
|
52
52
|
// Create MCP server
|
|
53
53
|
const server = new Server({
|
|
54
54
|
name: "oneshot-mcp",
|
|
55
|
-
version: "0.29.
|
|
55
|
+
version: "0.29.1", // keep in sync with package.json; guarded by version.test.ts
|
|
56
56
|
}, {
|
|
57
57
|
capabilities: {
|
|
58
58
|
tools: {},
|
|
@@ -10,3 +10,8 @@ export declare function handleRocs(agent: OneShot, args: Record<string, unknown>
|
|
|
10
10
|
export declare function handleReceiptsList(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").ReceiptsListResult>;
|
|
11
11
|
export declare function handleRocsByGoal(agent: OneShot, args: Record<string, unknown>): Promise<import("@oneshot-agent/sdk").RoCSByGoalResult>;
|
|
12
12
|
export declare function handleTagReceiptValue(agent: OneShot, args: Record<string, unknown>): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Old tool names (renamed in 0.29.1 because "rocs" was unclear to users and
|
|
15
|
+
* to ChatGPT's review scan). Still dispatched, never listed.
|
|
16
|
+
*/
|
|
17
|
+
export declare const LEGACY_TOOL_ALIASES: Record<string, (agent: OneShot, args: Record<string, unknown>) => Promise<unknown>>;
|
package/dist/tools/analytics.js
CHANGED
|
@@ -9,8 +9,8 @@ export const spendBreakdownTool = {
|
|
|
9
9
|
},
|
|
10
10
|
};
|
|
11
11
|
export const rocsTool = {
|
|
12
|
-
name: "
|
|
13
|
-
description: "Get
|
|
12
|
+
name: "oneshot_return_on_spend",
|
|
13
|
+
description: "Get the agent's return on spend over a period: what its tool calls cost compared with the value they produced (return on compute spend). Free.",
|
|
14
14
|
inputSchema: {
|
|
15
15
|
type: "object",
|
|
16
16
|
properties: {
|
|
@@ -54,9 +54,9 @@ export const tagReceiptValueTool = {
|
|
|
54
54
|
},
|
|
55
55
|
};
|
|
56
56
|
export const rocsByGoalTool = {
|
|
57
|
-
name: "
|
|
58
|
-
description: "
|
|
59
|
-
"Answers 'what did this
|
|
57
|
+
name: "oneshot_return_on_spend_by_goal",
|
|
58
|
+
description: "Return on spend per goal: what each goal cost (receipts) compared with the value it produced (tagged outcomes), grouped by goal_id. " +
|
|
59
|
+
"Answers 'what did this goal cost vs. earn' in one query. Free.",
|
|
60
60
|
inputSchema: {
|
|
61
61
|
type: "object",
|
|
62
62
|
properties: {
|
|
@@ -98,3 +98,11 @@ export async function handleTagReceiptValue(agent, args) {
|
|
|
98
98
|
label: args.label,
|
|
99
99
|
});
|
|
100
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* Old tool names (renamed in 0.29.1 because "rocs" was unclear to users and
|
|
103
|
+
* to ChatGPT's review scan). Still dispatched, never listed.
|
|
104
|
+
*/
|
|
105
|
+
export const LEGACY_TOOL_ALIASES = {
|
|
106
|
+
oneshot_rocs: handleRocs,
|
|
107
|
+
oneshot_rocs_by_goal: handleRocsByGoal,
|
|
108
|
+
};
|
|
@@ -64,7 +64,7 @@ export const TOOL_ANNOTATIONS = {
|
|
|
64
64
|
// LinkedIn
|
|
65
65
|
oneshot_linkedin_connect: write("Connect LinkedIn", OPEN),
|
|
66
66
|
oneshot_linkedin_accounts: read("List LinkedIn accounts", OWN),
|
|
67
|
-
oneshot_linkedin_sync:
|
|
67
|
+
oneshot_linkedin_sync: write("Sync LinkedIn messages", OPEN), // paid; imports history into the account
|
|
68
68
|
oneshot_linkedin_conversations: read("List LinkedIn conversations", OWN),
|
|
69
69
|
oneshot_linkedin_messages: read("Read LinkedIn messages", OWN),
|
|
70
70
|
oneshot_linkedin_reply: write("Send a LinkedIn message", OPEN),
|
|
@@ -78,8 +78,8 @@ export const TOOL_ANNOTATIONS = {
|
|
|
78
78
|
oneshot_resume_domain: write("Resume a sending domain", OWN),
|
|
79
79
|
// Analytics
|
|
80
80
|
oneshot_spend_breakdown: read("Show spending", OWN),
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
oneshot_return_on_spend: read("Show return on spend", OWN),
|
|
82
|
+
oneshot_return_on_spend_by_goal: read("Show return on spend by goal", OWN),
|
|
83
83
|
oneshot_receipts_list: read("List receipts", OWN),
|
|
84
84
|
oneshot_tag_receipt_value: write("Tag a receipt's value", OWN),
|
|
85
85
|
// Account
|
package/dist/tools/index.js
CHANGED
|
@@ -23,7 +23,7 @@ import { linkedinConnectTool, linkedinAccountsTool, linkedinSyncTool, linkedinCo
|
|
|
23
23
|
import { computeTool, computeStatusTool, computeTasksTool, computeCancelTool, computeRespondTool, computePauseTool, computeResumeTool, computeFundTool, handleCompute, handleComputeStatus, handleComputeTasks, handleComputeCancel, handleComputeRespond, handleComputePause, handleComputeResume, handleComputeFund } from "./compute.js";
|
|
24
24
|
import { listDomainsTool, pauseDomainTool, resumeDomainTool, handleListDomains, handlePauseDomain, handleResumeDomain } from "./domains.js";
|
|
25
25
|
import { TOOL_ANNOTATIONS } from "./annotations.js";
|
|
26
|
-
import { spendBreakdownTool, rocsTool, rocsByGoalTool, receiptsListTool, tagReceiptValueTool, handleSpendBreakdown, handleRocs, handleRocsByGoal, handleReceiptsList, handleTagReceiptValue } from "./analytics.js";
|
|
26
|
+
import { spendBreakdownTool, rocsTool, rocsByGoalTool, receiptsListTool, tagReceiptValueTool, handleSpendBreakdown, handleRocs, handleRocsByGoal, handleReceiptsList, handleTagReceiptValue, LEGACY_TOOL_ALIASES } from "./analytics.js";
|
|
27
27
|
// All available tools, before annotations
|
|
28
28
|
const toolDefinitions = [
|
|
29
29
|
// Communication
|
|
@@ -195,8 +195,10 @@ const handlers = {
|
|
|
195
195
|
"oneshot_resume_domain": handleResumeDomain,
|
|
196
196
|
// Analytics
|
|
197
197
|
"oneshot_spend_breakdown": handleSpendBreakdown,
|
|
198
|
-
"
|
|
199
|
-
"
|
|
198
|
+
"oneshot_return_on_spend": handleRocs,
|
|
199
|
+
"oneshot_return_on_spend_by_goal": handleRocsByGoal,
|
|
200
|
+
// Pre-0.29.1 names: callable, never listed, so existing clients keep working.
|
|
201
|
+
...LEGACY_TOOL_ALIASES,
|
|
200
202
|
"oneshot_receipts_list": handleReceiptsList,
|
|
201
203
|
"oneshot_tag_receipt_value": handleTagReceiptValue,
|
|
202
204
|
// Account
|