mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-06 02:12:12 +02:00
Update nostr_dvmcp_server.js
This commit is contained in:
@@ -52,7 +52,8 @@ const config = {
|
|||||||
"wss://relay.damus.io",
|
"wss://relay.damus.io",
|
||||||
];
|
];
|
||||||
|
|
||||||
// replace publickey with a unique one (it doesn't matter as much, we just do the requests)
|
// replace private key with a unique one (it doesn't matter as much, we just do the requests)
|
||||||
|
// both hex and nsec are supported
|
||||||
let pkey = "e318cb3e6ac163814dd297c2c7d745faacfbc2a826eb4f6d6c81430426a83c2b"
|
let pkey = "e318cb3e6ac163814dd297c2c7d745faacfbc2a826eb4f6d6c81430426a83c2b"
|
||||||
|
|
||||||
// Create an MCP server for Stdio
|
// Create an MCP server for Stdio
|
||||||
@@ -195,7 +196,7 @@ async function handle_dvm_request(args, name, pubkey) {
|
|||||||
|
|
||||||
handleMsg: async (relayUrl, message) =>
|
handleMsg: async (relayUrl, message) =>
|
||||||
{
|
{
|
||||||
console.log("Received message from", relayUrl, message.asJson());
|
//console.log("Received message from", relayUrl, message.asJson());
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user