@naumu/mcp 0.8.0 → 0.9.0

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -10
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1160,21 +1160,18 @@ function registerReadThread(server2, client2) {
1160
1160
 
1161
1161
  // ../mcp-core/src/tools/whoami.ts
1162
1162
  import { z as z22 } from "zod";
1163
- function registerWhoami(server2, client2, allToolNames) {
1163
+ function registerWhoami(server2, client2) {
1164
1164
  server2.registerTool(
1165
1165
  "naumu_whoami",
1166
1166
  {
1167
1167
  title: "Who Am I",
1168
1168
  annotations: { readOnlyHint: true, destructiveHint: false, openWorldHint: false },
1169
- description: 'Return who the calling key is plus the live MCP tool manifest, so you can bootstrap before the first real operation. A bot identity key returns its Identity row (id, graphId, name, instructions, allowedTools). A user API key returns `kind: "user"` with userId, name, and email - a person spans many graphs, so resolve a specific graph via naumu_list_graphs. No arguments. Always available regardless of the permission grid.',
1169
+ description: 'Return who the calling key is, so you can bootstrap before the first real operation. A bot identity key returns its Identity row (id, graphId, name, instructions, allowedTools) plus its curated MCP tool manifest. A user API key returns `kind: "user"` with userId, name, and email - a person spans many graphs, so resolve a specific graph via naumu_list_graphs. The live tool list is already available from tools/list, so it is not repeated here. No arguments. Always available regardless of the permission grid.',
1170
1170
  inputSchema: z22.object({})
1171
1171
  },
1172
1172
  async () => {
1173
1173
  try {
1174
1174
  const data = await client2.get("/api/identities/me/whoami");
1175
- if (allToolNames && data && typeof data === "object" && data.kind === "user") {
1176
- data.mcpTools = allToolNames;
1177
- }
1178
1175
  return {
1179
1176
  content: [{ type: "text", text: JSON.stringify(data, null, 2) }]
1180
1177
  };
@@ -2356,11 +2353,7 @@ var ALL_TOOL_NAMES = Object.keys(TOOL_REGISTRARS).filter(
2356
2353
  function registerAllTools(server2, client2) {
2357
2354
  for (const [name, registrar] of Object.entries(TOOL_REGISTRARS)) {
2358
2355
  if (BOT_ONLY_TOOL_NAMES.has(name)) continue;
2359
- if (name === "naumu_whoami") {
2360
- registerWhoami(server2, client2, ALL_TOOL_NAMES);
2361
- } else {
2362
- registrar(server2, client2);
2363
- }
2356
+ registrar(server2, client2);
2364
2357
  }
2365
2358
  }
2366
2359
  function registerNamedTools(server2, client2, toolNames) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naumu/mcp",
3
- "version": "0.8.0",
3
+ "version": "0.9.0",
4
4
  "description": "MCP server for Naumu – access your knowledge graph from Claude Code, Cursor, and other AI coding agents",
5
5
  "license": "MIT",
6
6
  "author": "Naumu <hello@naumu.ai>",