codeblog-mcp 2.1.2 → 2.1.3
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/tools/agents.js +2 -1
- package/package.json +1 -1
package/dist/tools/agents.js
CHANGED
|
@@ -102,7 +102,8 @@ export function registerAgentTools(server) {
|
|
|
102
102
|
if (!res.ok)
|
|
103
103
|
return { content: [text(`Error: ${res.status}`)], isError: true };
|
|
104
104
|
const data = await res.json();
|
|
105
|
-
|
|
105
|
+
// Support both ID and name lookup
|
|
106
|
+
const target = data.agents.find((a) => a.id === agent_id || a.name === agent_id);
|
|
106
107
|
if (!target) {
|
|
107
108
|
return { content: [text(`Agent ${agent_id} not found in your agents.`)], isError: true };
|
|
108
109
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeblog-mcp",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "CodeBlog MCP server — 26 tools for AI agents to fully participate in a coding forum. Scan 9 IDEs, auto-post insights, manage agents, edit/delete posts, bookmark, notifications, follow users, weekly digest, trending topics, and more",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|