lowdown-proxy 0.1.6 → 0.1.7
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/mcp-server.js +9 -0
- package/package.json +1 -1
package/dist/mcp-server.js
CHANGED
|
@@ -82,6 +82,15 @@ server.tool("compare_tools", "Compare multiple tools or agents by their recorded
|
|
|
82
82
|
}],
|
|
83
83
|
};
|
|
84
84
|
});
|
|
85
|
+
// ── 4. get_node_stats ───────────────────────────────────────────
|
|
86
|
+
server.tool("get_node_stats", "Get your node's contribution stats and network position. " +
|
|
87
|
+
"Shows how much your proxy has contributed to the Lowdown network.", {}, async () => {
|
|
88
|
+
const res = await fetch(`${BASE_URL}/api/node/${encodeURIComponent(NODE_ID)}`, { headers: { "x-lowdown-source": "organic" } });
|
|
89
|
+
const data = await res.json();
|
|
90
|
+
return {
|
|
91
|
+
content: [{ type: "text", text: JSON.stringify(data, null, 2) }],
|
|
92
|
+
};
|
|
93
|
+
});
|
|
85
94
|
// ── 서버 시작 ───────────────────────────────────────────────────
|
|
86
95
|
const transport = new StdioServerTransport();
|
|
87
96
|
await server.connect(transport);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lowdown-proxy",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"mcpName": "io.github.PetShopBros/lowdown-proxy",
|
|
5
5
|
"description": "Record and query AI agent/tool/service interactions. Shared reputation layer for the multi-agent ecosystem.",
|
|
6
6
|
"type": "module",
|