fix: collapsing d tags from same provider, loging public key at start

This commit is contained in:
gzuuus
2025-03-23 22:17:54 +01:00
parent 77c00763f2
commit 509f589ff9
4 changed files with 8 additions and 2 deletions

5
ROADMAP.md Normal file
View File

@@ -0,0 +1,5 @@
- [ ] Add encryption
- [ ] Add payments
- [ ] Add mcp inspector
- [ ] Discovery cli to bootstrap configuration
- [ ] Add one command, configless, quick run mode

View File

@@ -1,6 +1,6 @@
{ {
"name": "@dvmcp/bridge", "name": "@dvmcp/bridge",
"version": "0.1.11", "version": "0.1.12",
"description": "Bridge connecting MCP servers to Nostr's DVM ecosystem", "description": "Bridge connecting MCP servers to Nostr's DVM ecosystem",
"module": "index.ts", "module": "index.ts",
"type": "module", "type": "module",

View File

@@ -43,7 +43,7 @@ export class NostrAnnouncer {
tools: tools, tools: tools,
}), }),
tags: [ tags: [
['d', 'dvm-announcement'], ['d', `dvm-announcement-${CONFIG.mcp.name}`],
['k', `${TOOL_REQUEST_KIND}`], ['k', `${TOOL_REQUEST_KIND}`],
['capabilities', 'mcp-1.0'], ['capabilities', 'mcp-1.0'],
['t', 'mcp'], ['t', 'mcp'],

View File

@@ -18,6 +18,7 @@ export class DVMBridge {
constructor() { constructor() {
console.log('Initializing DVM Bridge...'); console.log('Initializing DVM Bridge...');
console.log('public key:', keyManager.getPublicKey());
this.mcpPool = new MCPPool(CONFIG.mcp.servers); this.mcpPool = new MCPPool(CONFIG.mcp.servers);
this.relayHandler = relayHandler; this.relayHandler = relayHandler;
this.nostrAnnouncer = new NostrAnnouncer(this.mcpPool); this.nostrAnnouncer = new NostrAnnouncer(this.mcpPool);