@floatonnear/mcp 0.1.0 → 0.1.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/dist/server.js +11 -1
- package/package.json +1 -1
package/dist/server.js
CHANGED
|
@@ -77,7 +77,17 @@ const limitShape = z
|
|
|
77
77
|
decimals: z.number().int().min(0).max(38).default(6),
|
|
78
78
|
}))
|
|
79
79
|
.min(1);
|
|
80
|
-
|
|
80
|
+
// The name a client displays in its server list, so this string -- not the
|
|
81
|
+
// package name, not the config key -- is the product's label in the one place
|
|
82
|
+
// the product is visible. It was "near-vault": the repo's directory name,
|
|
83
|
+
// leaking outward as the user-facing identity while the config key create-float
|
|
84
|
+
// writes has always been `float`.
|
|
85
|
+
//
|
|
86
|
+
// The version stays a literal rather than being read from package.json at
|
|
87
|
+
// startup: a wrong relative path would break the server outright instead of
|
|
88
|
+
// merely reporting a stale version. server.smoke.test.ts asserts the two agree,
|
|
89
|
+
// so a bump cannot land with only one of them moved.
|
|
90
|
+
const server = new McpServer({ name: "float", version: "0.1.1" });
|
|
81
91
|
// ----------------------------------------------------------------- reads
|
|
82
92
|
server.tool("vault_tree", "Read the whole budget tree: every node, its caps, parent, bound agent account, cooldown and freeze state. No key required.", {}, async () => json(await viewFunction(cfg.rpcUrl, requireVault(), "get_tree", {})));
|
|
83
93
|
server.tool("vault_budget", "Read one node's budget for a UTC day: cap, executed, in-flight (pending) and available, in human units. Omit `day` for today. No key required.", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@floatonnear/mcp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "MCP server for the hierarchical budget vault. The agent key signs request_payment only; owner methods emit unsigned payloads for wallet approval.",
|
|
6
6
|
"license": "MIT",
|