TelosDB の開発においては、「確信の持てるコード」と「自動化された環境」を重視します。Windows 環境特有 of DLL 競合やビルドエラーを避けるため、環境構築手順を簡略化しています。 In TelosDB development, we emphasize "code you can trust" and an "automated environment." To avoid DLL conflicts and build errors specific to the Windows environment, we have simplified the setup procedures.
npm install を実行(sqlite-vec などのバイナリ等が含まれます)。 (Run npm install, which includes binaries like sqlite-vec)src/backend/resources/ に指定の推論モデル(Gemma-3 GGUF)を配置。 (Place the specified inference model in src/backend/resources/)# 開発モード(ホットリロード有効) # Development mode (Hot reload enabled) npm run tauri dev
[!NOTE] 開発時に DLL のエラーが出る場合は、一度
cargo cleanを行い、build.rsによる DLL 再生成を促してください。 If a DLL error occurs during development, performcargo cleanonce to prompt DLL regeneration viabuild.rs.
新しい機能を MCP 経由で公開する場合は、以下のファイルを修正します。 To expose a new feature via MCP, modify the following files:
mcp.rs: JSON-RPC ハンドラーに新しいメソッドを追加。 (Add a new method to the JSON-RPC handler)document/mcp.json: ツールのスキーマ(引数定義)を記述。エージェントがこの定義を読み取ります。 (Describe the tool schema/argument definitions. The agent reads this definition)04_mcp_api_specification.md: 仕様書を更新。 (Update the specification document)tokio ランタイム上で行い、UI をブロックしないようにします。 All SQLite operations and communications are performed on the tokio runtime to avoid blocking the UI.log::info! / log::error! を使用してください。ログは src/backend/logs/ に自動出力されます。 Use log::info! / log::error!. Logs are automatically output to src/backend/logs/.scripts/test_mcp_client.mjs を実行し、既存ツールが壊れていないか確認してください。 Always run scripts/test_mcp_client.mjs after logic changes to ensure existing tools are not broken.TelosDB は MIT ライセンスの下で公開されています。貢献については、プロジェクトルートの CONTRIBUTING.md(存在する場合)またはリポジトリの運用方針を参照してください。 TelosDB is published under the MIT license. For contributions, please refer to CONTRIBUTING.md (if it exists) in the project root or the repository's operational policy.