notebin.io now has a remote mcp server at https://notebin.io/mcp that you can use with your Coding agent to fetch your NIP-C0 code snippets.
Example MCP config:
"mcp": {
"servers": {
"notebin.io": {
"url": "https://notebin.io/mcp"
}
}
}
The minimum you need to provide is your npub, but you can also provide a limit, a programming language and tags
Make sure to create a few code snippets first at
notebin.io (a site and relay for code snippets) supports profile pages for users now, you can also update your profile information by clicking on the user dropdown and selecting "account"
You can now sort by last edited, created at and title in Comet.
Title is particularly useful if you're writing a book or course where you can number the titles.
Each notebook should have it's own sort state.
I refactored the code snippet MCP code to use typescript and be simpler to understand, if you're just learning how to integrate nostr with MCP I recommend checking out the tools directory:
The domain for Tauri (the rust desktop application framework) has expired. Reminder that if you have a good domain to put it on auto-renew. Hopefully they’re able to get it back.
In this demo we ask Claude to post a simple python code snippet. The MCP server reaches out via unix domain socket to have the event signed so Claude nor the MCP server needs to know the private key. This will allow you to have Claude post code snippets that you like on your behalf without needed to expose your private key/nsec.
@grownostr