@agentwonderland/mcp 0.1.56 → 0.1.58
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/core/__tests__/api-client.test.js +0 -40
- package/dist/core/api-client.js +0 -18
- package/dist/core/version.d.ts +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +0 -0
- package/package.json +1 -1
- package/src/core/__tests__/api-client.test.ts +0 -44
- package/src/core/api-client.ts +0 -18
- package/src/core/version.ts +1 -1
- package/dist/tools/__tests__/playbooks.test.d.ts +0 -1
- package/dist/tools/__tests__/playbooks.test.js +0 -2123
- package/dist/tools/observability.d.ts +0 -2
- package/dist/tools/observability.js +0 -20
- package/dist/tools/playbooks.d.ts +0 -2
- package/dist/tools/playbooks.js +0 -984
- package/src/tools/__tests__/playbooks.test.ts +0 -2364
- package/src/tools/playbooks.ts +0 -1221
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { apiPost } from "../core/api-client.js";
|
|
2
|
-
function text(t) {
|
|
3
|
-
return { content: [{ type: "text", text: t }] };
|
|
4
|
-
}
|
|
5
|
-
export function registerObservabilityTools(server) {
|
|
6
|
-
server.tool("open_observability_dashboard", "Generate a secure one-click sign-in URL for the Agent Wonderland web observability dashboard. The dashboard shows your agent runs, spend, rebates, and recent activity.", {}, async () => {
|
|
7
|
-
const result = await apiPost("/observability/link", {}, { ensureConsumerPrincipal: true });
|
|
8
|
-
const lines = [
|
|
9
|
-
"Your secure observability link is ready:",
|
|
10
|
-
result.url,
|
|
11
|
-
"",
|
|
12
|
-
`Expires: ${result.expires_at}`,
|
|
13
|
-
];
|
|
14
|
-
if (result.consumer_principal) {
|
|
15
|
-
lines.push(`Consumer principal: ${result.consumer_principal}`);
|
|
16
|
-
}
|
|
17
|
-
lines.push("", "Open the link in your browser to view usage metrics, spend, rebates, and recent runs.");
|
|
18
|
-
return text(lines.join("\n"));
|
|
19
|
-
});
|
|
20
|
-
}
|