@sunub/obsidian-mcp-server 0.3.0 → 0.3.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.
Files changed (33) hide show
  1. package/README.md +21 -5
  2. package/build/cli/config/mcpServersConfig.js +1 -1
  3. package/build/cli/hooks/useMcpClient.js +1 -1
  4. package/build/tools/create_document_with_properties/index.js +1 -1
  5. package/build/tools/create_document_with_properties/params.d.ts +1 -1
  6. package/build/tools/organize_attachments/index.js +1 -1
  7. package/build/tools/vault/index.js +1 -1
  8. package/build/tools/vault/utils/actions/index_rag.js +1 -1
  9. package/build/tools/write_property/index.js +1 -1
  10. package/build/utils/getVaultManager.js +1 -1
  11. package/package.json +2 -1
  12. package/build/cli/app.js +0 -7
  13. package/build/cli/app.js.map +0 -1
  14. package/build/cli/key/text-buffer-bestcase.js +0 -2754
  15. package/build/cli/key/text-buffer-bestcase.js.map +0 -1
  16. package/build/cli/theme/builtin/no-color.js +0 -125
  17. package/build/cli/theme/builtin/no-color.js.map +0 -1
  18. package/build/cli/theme/builtin/tokyonight-dark.js +0 -146
  19. package/build/cli/theme/builtin/tokyonight-dark.js.map +0 -1
  20. package/build/cli/theme/semantic-colors.js +0 -19
  21. package/build/cli/theme/semantic-colors.js.map +0 -1
  22. package/build/cli/theme/semantic-tokens.js +0 -77
  23. package/build/cli/theme/semantic-tokens.js.map +0 -1
  24. package/build/cli/theme/theme-manager.d.ts +0 -32
  25. package/build/cli/theme/theme-manager.js +0 -150
  26. package/build/cli/theme/theme-manager.js.map +0 -1
  27. package/build/cli/theme/theme.js +0 -333
  28. package/build/cli/theme/theme.js.map +0 -1
  29. package/build/cli/types.d.ts +0 -72
  30. package/build/cli/types.js +0 -8
  31. package/build/cli/types.js.map +0 -1
  32. package/build/config.js +0 -81
  33. package/build/config.js.map +0 -1
package/README.md CHANGED
@@ -251,7 +251,8 @@ npx -y @sunub/obsidian-mcp-server@latest --vault-path /abs/path/to/your/vault --
251
251
  "LLM_API_URL": "http://127.0.0.1:8080",
252
252
  "LLM_EMBEDDING_API_URL": "http://127.0.0.1:8081",
253
253
  "LLM_EMBEDDING_MODEL": "nomic-embed-text",
254
- "LLM_CHAT_MODEL": "llama3"
254
+ "LLM_CHAT_MODEL": "llama3",
255
+ "LLM_RERANKER_API_URL": "http://127.0.0.1:8082"
255
256
  }
256
257
  }
257
258
  }
@@ -307,12 +308,27 @@ pm2 start ecosystem.config.cjs --only llama-embedding-server
307
308
 
308
309
  내부 동작:
309
310
 
311
+
310
312
  ```json
311
313
  {
312
- "method": "tools/call",
313
- "params": {
314
- "name": "vault",
315
- "arguments": { "action": "index_vault_to_vectordb" }
314
+ "mcpServers": {
315
+ "obsidian": {
316
+ "command": "npx",
317
+ "args": [
318
+ "-y",
319
+ "@sunub/obsidian-mcp-server@latest"
320
+ ],
321
+ "env": {
322
+ "VAULT_DIR_PATH": "/path/to/obsidian-vault",
323
+ "VAULT_METRICS_LOG_PATH": "/path/to/vault-metrics.ndjson",
324
+ "LOGGING_LEVEL": "info",
325
+ "LLM_API_URL": "http://127.0.0.1:8080",
326
+ "LLM_EMBEDDING_API_URL": "http://127.0.0.1:8081",
327
+ "LLM_EMBEDDING_MODEL": "nomic-embed-text",
328
+ "LLM_CHAT_MODEL": "llama3",
329
+ "LLM_RERANKER_API_URL": "http://127.0.0.1:8082"
330
+ }
331
+ }
316
332
  }
317
333
  }
318
334
  ```
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readFileSync } from "node:fs";
2
2
  import { join, resolve } from "node:path";
3
3
  import { z } from "zod/v4";
4
- import { configSchema } from "../../config.js";
4
+ import { configSchema } from "@/config.js";
5
5
  import { debugLogger } from "../utils/debugLogger.js";
6
6
  const mcpServerEntrySchema = z.object({
7
7
  command: z.string().min(1),
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useEffect, useRef, useState } from "react";
2
- import { configSchema } from "../../config.js";
2
+ import { configSchema } from "@/config.js";
3
3
  import { McpClientService, } from "../services/McpClientService.js";
4
4
  import { debugLogger } from "../utils/debugLogger.js";
5
5
  function buildConnectionOptions() {
@@ -1,4 +1,4 @@
1
- import state from "../../config.js";
1
+ import state from "@/config.js";
2
2
  import { createToolError } from "../../utils/createToolError.js";
3
3
  import { getGlobalVaultManager } from "../../utils/getVaultManager.js";
4
4
  import { execute as writePropertyExecute } from "../write_property/index.js";
@@ -33,8 +33,8 @@ export declare const createDocumentWithPropertiesParamsSchema: z.ZodObject<{
33
33
  }>>>;
34
34
  quiet: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
35
35
  }, "strip", z.ZodTypeAny, {
36
- quiet: boolean;
37
36
  sourcePath: string;
37
+ quiet: boolean;
38
38
  outputPath?: string | undefined;
39
39
  overwrite?: boolean | undefined;
40
40
  aiGeneratedProperties?: {
@@ -1,4 +1,4 @@
1
- import state from "../../config.js";
1
+ import state from "@/config.js";
2
2
  import { createToolError } from "../../utils/createToolError.js";
3
3
  import { getGlobalVaultManager } from "../../utils/getVaultManager.js";
4
4
  import { organizeAttachmentsParamsSchema, } from "./params.js";
@@ -1,4 +1,4 @@
1
- import state from "../../config.js";
1
+ import state from "@/config.js";
2
2
  import { createToolError } from "../../utils/createToolError.js";
3
3
  import { getGlobalVaultManager } from "../../utils/getVaultManager.js";
4
4
  import { recordVaultResponseMetric } from "./metrics.js";
@@ -1,4 +1,4 @@
1
- import state from "../../../../config.js";
1
+ import state from "@/config.js";
2
2
  import { ragIndexer } from "../../../../utils/RAGIndexer.js";
3
3
  export const triggerIndexing = async () => {
4
4
  const vaultPath = state.vaultPath;
@@ -1,4 +1,4 @@
1
- import state from "../../config.js";
1
+ import state from "@/config.js";
2
2
  import { createToolError } from "../../utils/createToolError.js";
3
3
  import { getGlobalVaultManager } from "../../utils/getVaultManager.js";
4
4
  import { VaultPathError } from "../../utils/VaultManger/VaultPathError.js";
@@ -1,4 +1,4 @@
1
- import state from "../config.js";
1
+ import state from "@/config.js";
2
2
  import { VaultManager } from "./VaultManger/VaultManager.js";
3
3
  let instance = null;
4
4
  export function getGlobalVaultManager() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sunub/obsidian-mcp-server",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "A server for the Obsidian Model Context Protocol.",
5
5
  "keywords": [
6
6
  "obsidian",
@@ -27,6 +27,7 @@
27
27
  "test:watch": "vitest --watch",
28
28
  "metrics:report": "node scripts/vault-metrics-report.mjs",
29
29
  "prepare": "npm run format && npm run build",
30
+ "prepublishOnly": "npm run build",
30
31
  "build": "tsc && tsc-alias && shx chmod +x build/index.js",
31
32
  "inspector": "npx -y @modelcontextprotocol/inspector node ./build/index.js",
32
33
  "format": "npx biome format --write",
package/build/cli/app.js DELETED
@@ -1,7 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Box, render, Text } from "ink";
3
- function HistoryPrompt({ color = "blue", content = "", }) {
4
- return (_jsxs(Box, { flexDirection: "column", padding: 1, children: [_jsx(Text, { bold: true, color: "#98FFD9", children: "\uD83D\uDD51 Conversation History:" }), _jsxs(Text, { color: "magenta", children: ["- User: \"What are the latest updates on the project?\"", "\n", "- Assistant: \"The latest update is that we have completed the initial design phase and are moving into development.\"", "\n", "- User: \"Great! Can you summarize the key points from the design phase?\"", "\n", "- Assistant: \"Sure! The key points from the design phase include defining the project scope, creating wireframes, and establishing a technology stack.\""] }), content && _jsx(Text, { color: color, children: content })] }));
5
- }
6
- render(_jsx(HistoryPrompt, {}));
7
- //# sourceMappingURL=app.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../../src/cli/app.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAExC,SAAS,aAAa,CAAC,EACtB,KAAK,GAAG,MAAM,EACd,OAAO,GAAG,EAAE,GAIZ;IACA,OAAO,CACN,MAAC,GAAG,IAAC,aAAa,EAAC,QAAQ,EAAC,OAAO,EAAE,CAAC,aACrC,KAAC,IAAI,IAAC,IAAI,QAAC,KAAK,EAAC,SAAS,mDAEnB,EACP,MAAC,IAAI,IAAC,KAAK,EAAC,SAAS,wEAEnB,IAAI,4HAEJ,IAAI,gFAEJ,IAAI,iKAGC,EACN,OAAO,IAAI,KAAC,IAAI,IAAC,KAAK,EAAE,KAAK,YAAG,OAAO,GAAQ,IAC3C,CACN,CAAC;AACH,CAAC;AAED,MAAM,CAAC,KAAC,aAAa,KAAG,CAAC,CAAC"}