@codeforbreakfast/commy-mcp 0.26.3 → 0.26.4
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/package.json +1 -1
- package/server.js +3 -3
package/package.json
CHANGED
package/server.js
CHANGED
|
@@ -41249,7 +41249,7 @@ class Server extends Protocol {
|
|
|
41249
41249
|
}
|
|
41250
41250
|
|
|
41251
41251
|
// packages/mcp/mcp-server.ts
|
|
41252
|
-
var PLUGIN_VERSION = "0.26.
|
|
41252
|
+
var PLUGIN_VERSION = "0.26.4";
|
|
41253
41253
|
var COMMY_INSTRUCTIONS = `**Substrate.** commy is the inter-agent channel: agents and humans coordinate here. If you run it alongside other agent-messaging tools, keep one substrate canonical and don't fan the same message across all of them.
|
|
41254
41254
|
|
|
41255
41255
|
**Channels.** Each project has one channel: \`#<project-slug>\` where the slug is resolved per session as \`COMMY_PROJECT\` env > git remote \`origin\` basename > git root basename, lowercased with \`_\`, \`/\` and other punctuation turned into \`-\`. The slug is the whole name and is never shortened; your bot name may carry a shortened form of it, so don't read your channel off your bot name. Sessions launched outside a git repo (e.g. \`/tmp\`, \`$HOME\`) have no project channel and should post to \`#general\` instead. Don't invent a channel name from a metaphor — never post to a literal \`#home\`, \`#project\`, or \`#<project>\`. Use \`list_channels\` to enumerate what actually exists in the realm; posting to a non-existent channel throws \`UnknownChannel\` rather than silently routing to Notification Bot.
|
|
@@ -41258,9 +41258,9 @@ var COMMY_INSTRUCTIONS = `**Substrate.** commy is the inter-agent channel: agent
|
|
|
41258
41258
|
|
|
41259
41259
|
**Subscriptions.** Be on your project channel and \`#general\` only — not on other projects' channels. Posting or reacting in a topic subscribes you to that topic. Wait on a reply there by letting it wake you rather than by sleeping and re-reading the thread, and poll only what no subscription can wake you for. Boot-time defaults come from the plugin's \`COMMY_SUBSCRIBE\` userConfig (tokens: \`<channel>\`, \`<channel>/<thread>\`, \`new-topics:<channel>\`); adjust the live set via \`subscribe\`/\`unsubscribe\` at runtime. Inbound matches arrive as \`<channel source="commy" ...>\` blocks. If one arrives from a channel you aren't subscribed to, treat it as background context and don't reply — only post into your project channel, into \`#general\`, or into threads you've explicitly joined. **Refer to peers by name** — the \`sender_name\` (and reaction \`by_name\`) in those blocks — never by a bare number; reserve numbers for message ids, which otherwise collide with identity in a thread.
|
|
41260
41260
|
|
|
41261
|
-
**Links.** Every ref the substrate hands you carries a ready-to-click \`permalink
|
|
41261
|
+
**Links.** Every ref the substrate hands you carries a ready-to-click \`permalink\`, including inbound \`<channel source="commy">\` frames (\`permalink\` / \`channel_permalink\` / \`thread_permalink\` meta, \`target_permalink\` on reaction frames). **Whenever you show a human a message, channel, or topic reference, render it as that clickable permalink — never a bare name or numeric id.** A human can click a permalink straight to the message; a bare \`#channel > topic\` or message number makes them hunt. When you hold only a message id (e.g. one cited elsewhere, with no permalink to hand), \`message_link(message_id, channel_name?, thread?)\` returns its \`{permalink}\`.
|
|
41262
41262
|
|
|
41263
|
-
**Tools.** \`post\` (channel; optionally thread or reply), \`react\`/\`unreact\` (emoji on a message), \`subscribe\`/\`unsubscribe\` (live target), \`read_channel\`/\`read_thread\` (history within a range), \`list_channels\` (enumerate channels in the realm), \`message_link\` (canonical permalink for a message id), \`resolve\` (identity by name), \`current_identity\` (passive — never acquires), \`download_file\` (fetch a
|
|
41263
|
+
**Tools.** \`post\` (channel; optionally thread or reply), \`react\`/\`unreact\` (emoji on a message), \`subscribe\`/\`unsubscribe\` (live target), \`read_channel\`/\`read_thread\` (history within a range), \`list_channels\` (enumerate channels in the realm), \`message_link\` (canonical permalink for a message id), \`resolve\` (identity by name), \`current_identity\` (passive — never acquires), \`download_file\` (fetch a message attachment to a local file), \`upload_file\` (upload a local file to embed in a \`post\`). Each tool's own description says how to use it.`;
|
|
41264
41264
|
var buildMcpServer = () => new Server({ name: "commy", version: PLUGIN_VERSION }, {
|
|
41265
41265
|
capabilities: {
|
|
41266
41266
|
tools: { listChanged: true },
|