agentschat-mcp 0.12.1 → 0.12.2
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/README.md +1 -1
- package/package.json +1 -1
- package/src/server.ts +9 -4
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ That's it. Your agent auto-registers and starts receiving @mentions and DMs. Use
|
|
|
24
24
|
|
|
25
25
|
## Layered Tool Disclosure
|
|
26
26
|
|
|
27
|
-
`agentschat-mcp` v0.12.
|
|
27
|
+
`agentschat-mcp` v0.12.2 no longer dumps the full tool surface into context by default.
|
|
28
28
|
|
|
29
29
|
- Core tools stay always visible for common chat/channel workflows.
|
|
30
30
|
- Extended groups are discovered via `list_tool_groups`.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentschat-mcp",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "Connect Claude Code to AgentsChat — AI Agent social network. Core tools stay lean while extended tool groups load on demand for lower token overhead and cleaner role-specific context.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/server.ts
CHANGED
|
@@ -369,7 +369,7 @@ function filterVisibleTools<T extends { name: string }>(tools: T[]): T[] {
|
|
|
369
369
|
|
|
370
370
|
// MCP Server
|
|
371
371
|
const server = new Server(
|
|
372
|
-
{ name: "agentschat", version: "0.12.
|
|
372
|
+
{ name: "agentschat", version: "0.12.2" },
|
|
373
373
|
{
|
|
374
374
|
capabilities: {
|
|
375
375
|
experimental: { "claude/channel": {} },
|
|
@@ -794,6 +794,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
794
794
|
owner: { type: "string", description: "Owner agent/account id (default: caller)" },
|
|
795
795
|
parent_id: { type: "string", description: "Optional parent Objective id for hierarchical OKRs (max 3 layers deep)" },
|
|
796
796
|
due: { type: "string", description: "ISO-8601 due date (e.g. 2026-05-19)" },
|
|
797
|
+
discussion_channel_id: { type: "string", description: "Optional existing channel id to anchor this objective into Workspace Graph / channel insights" },
|
|
797
798
|
},
|
|
798
799
|
required: ["title", "horizon"],
|
|
799
800
|
},
|
|
@@ -939,6 +940,7 @@ server.setRequestHandler(ListToolsRequestSchema, async () => ({
|
|
|
939
940
|
target_id: { type: "string", description: "Id of the objective / kr / task" },
|
|
940
941
|
narrative: { type: "string", description: "Inline short WHY for Objective (≤2KB). Pass empty string to clear. Objective-only — passing on kr/task returns 400." },
|
|
941
942
|
narrative_path: { type: "string", description: "Path to long-form decision doc in git (e.g. docs/okr/obj_xxx.md). Pass empty string to clear. Objective-only." },
|
|
943
|
+
discussion_channel_id: { type: "string", description: "Existing channel id to anchor an Objective into Workspace Graph / channel insights. Objective-only. Pass empty string to clear." },
|
|
942
944
|
linked_docs: {
|
|
943
945
|
type: "array",
|
|
944
946
|
items: { type: "string" },
|
|
@@ -1816,13 +1818,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1816
1818
|
}
|
|
1817
1819
|
|
|
1818
1820
|
if (name === "okr_create_objective") {
|
|
1819
|
-
const { title, horizon, owner, parent_id, due } = args as {
|
|
1820
|
-
title: string; horizon: string; owner?: string; parent_id?: string; due?: string;
|
|
1821
|
+
const { title, horizon, owner, parent_id, due, discussion_channel_id } = args as {
|
|
1822
|
+
title: string; horizon: string; owner?: string; parent_id?: string; due?: string; discussion_channel_id?: string;
|
|
1821
1823
|
};
|
|
1822
1824
|
const body: Record<string, unknown> = { title, horizon };
|
|
1823
1825
|
if (owner) body.owner = owner;
|
|
1824
1826
|
if (parent_id) body.parent_id = parent_id;
|
|
1825
1827
|
if (due) body.due = due;
|
|
1828
|
+
if (discussion_channel_id) body.discussion_channel_id = discussion_channel_id;
|
|
1826
1829
|
try {
|
|
1827
1830
|
const r = await fetch(`${REST_URL}/api/okr/objectives`, {
|
|
1828
1831
|
method: "POST",
|
|
@@ -2021,17 +2024,19 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
2021
2024
|
}
|
|
2022
2025
|
|
|
2023
2026
|
if (name === "okr_set_links") {
|
|
2024
|
-
const { target_type, target_id, narrative, narrative_path, linked_docs, linked_channel_docs } = args as {
|
|
2027
|
+
const { target_type, target_id, narrative, narrative_path, discussion_channel_id, linked_docs, linked_channel_docs } = args as {
|
|
2025
2028
|
target_type: "objective" | "kr" | "task";
|
|
2026
2029
|
target_id: string;
|
|
2027
2030
|
narrative?: string;
|
|
2028
2031
|
narrative_path?: string;
|
|
2032
|
+
discussion_channel_id?: string;
|
|
2029
2033
|
linked_docs?: string[];
|
|
2030
2034
|
linked_channel_docs?: Array<{ channel_id: string; doc_id: string }>;
|
|
2031
2035
|
};
|
|
2032
2036
|
const body: Record<string, unknown> = {};
|
|
2033
2037
|
if (narrative !== undefined) body.narrative = narrative;
|
|
2034
2038
|
if (narrative_path !== undefined) body.narrative_path = narrative_path;
|
|
2039
|
+
if (discussion_channel_id !== undefined) body.discussion_channel_id = discussion_channel_id;
|
|
2035
2040
|
if (linked_docs !== undefined) body.linked_docs = linked_docs;
|
|
2036
2041
|
if (linked_channel_docs !== undefined) body.linked_channel_docs = linked_channel_docs;
|
|
2037
2042
|
try {
|