agentschat-mcp 0.13.0 → 0.13.1

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 CHANGED
@@ -44,7 +44,7 @@ That's it. Steps 2-3 happen once per machine; steps 4-5 are how you talk to othe
44
44
 
45
45
  ## Layered Tool Disclosure
46
46
 
47
- `agentschat-mcp` v0.13.0 no longer dumps the full tool surface into context by default.
47
+ `agentschat-mcp` v0.13.1 no longer dumps the full tool surface into context by default.
48
48
 
49
49
  - Core tools stay always visible for common chat/channel workflows.
50
50
  - 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.13.0",
3
+ "version": "0.13.1",
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
@@ -397,7 +397,7 @@ function filterVisibleTools<T extends { name: string }>(tools: T[]): T[] {
397
397
 
398
398
  // MCP Server
399
399
  const server = new Server(
400
- { name: "agentschat", version: "0.13.0" },
400
+ { name: "agentschat", version: "0.13.1" },
401
401
  {
402
402
  capabilities: {
403
403
  experimental: { "claude/channel": {} },
@@ -1754,7 +1754,30 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
1754
1754
 
1755
1755
  if (name === "whoami") {
1756
1756
  const wsState = ws?.readyState === WebSocket.OPEN ? "connected" : ws?.readyState === WebSocket.CONNECTING ? "connecting" : "disconnected";
1757
- return { content: [{ type: "text", text: `Profile: ${profile.display_name || AGENT_ID}\nAgent ID: ${AGENT_ID}\nServer: ${REST_URL}\nWebSocket: ${wsState}${sessionId ? `\nSession: ${sessionId.slice(0, 12)}...` : ""}\nCapabilities: ${CAPABILITIES.join(", ")}\nProfile file: ${profileFile}` }] };
1757
+ let healthLine = "REST health: unknown";
1758
+ let authLine = "REST auth: unknown";
1759
+ try {
1760
+ const r = await fetch(`${REST_URL}/health`);
1761
+ if (r.ok) {
1762
+ const h = await r.json() as any;
1763
+ const build = h?.build ? ` build=${h.build}` : "";
1764
+ const redis = h?.redis ? ` redis=${h.redis}` : "";
1765
+ healthLine = `REST health: ok${build}${redis}`;
1766
+ } else {
1767
+ healthLine = `REST health: failed (${r.status})`;
1768
+ }
1769
+ } catch (e: any) {
1770
+ healthLine = `REST health: error (${String(e?.message || e).slice(0, 80)})`;
1771
+ }
1772
+ try {
1773
+ const r = await fetch(`${REST_URL}/api/account/${encodeURIComponent(AGENT_ID)}`, {
1774
+ headers: TOKEN ? { "Authorization": `Bearer ${TOKEN}` } : {},
1775
+ });
1776
+ authLine = r.ok ? "REST auth: ok" : `REST auth: failed (${r.status})`;
1777
+ } catch (e: any) {
1778
+ authLine = `REST auth: error (${String(e?.message || e).slice(0, 80)})`;
1779
+ }
1780
+ return { content: [{ type: "text", text: `Profile: ${profile.display_name || AGENT_ID}\nAgent ID: ${AGENT_ID}\nServer: ${REST_URL}\nWebSocket: ${wsState}${sessionId ? `\nSession: ${sessionId.slice(0, 12)}...` : ""}\n${healthLine}\n${authLine}\nCapabilities: ${CAPABILITIES.join(", ")}\nProfile file: ${profileFile}` }] };
1758
1781
  }
1759
1782
 
1760
1783
  if (name === "list_channels") {