
boxpositron/with-context-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
監理によるAIエージェントの活用に注目.
概要
WithContext は、Obsidian と連携し、ドキュメントを作成したり、変更を追跡したり、知識をコードとして整理したりできるように、AI エージェントのプロジェクトスコープドノート管理を提供します。 AI のコーディングエージェントは、ドキュメント、ミーティングノート、プロジェクトの更新を保存する場所が必要です。 WithContext は、Obsidian の vault に直接アクセスします。 - - 各プロジェクトは、独自のフォルダ、クロス汚染なしを取得する - - エージェントは、フロントマーターを更新し、セクションを交換したり、コンテンツを追加したりすることができます - - エージェントが変更履歴とtodosでどのように変化するかを追跡 - ボルトをきれいに保つための組み込みプリセット - 一貫性のある文書のためのプロフェッショナルテンプレート 1. Obsidian 設定 → コミュニティプラグイン → ブラウザー 2 を開きます。 3 を検索してインストールします。 プラグインを有効にし、API キーをコピー AI クライアントの MCP 設定に追加します。 Claude デスクトップ、Cline、Cursor、Windsurf、 Continue.dev、GitHub Copilot → AIエージェントは、MyVault/Projects/でメモを管理するための33以上のツールにアクセスできるようになりました.
概要(AI 翻訳)
AIコーディングエージェントがノート作成アプリに直接書き込むようにしましょう。 WithContext は、Obsidian と連携し、ドキュメントを作成したり、変更を追跡したり、知識をコードとして整理したりできるように、AI エージェントのプロジェクトスコープドノート管理を提供します。
#WithContext の理由
AI のコーディングエージェントは、ドキュメント、ミーティングノート、プロジェクトの更新を保存する場所が必要です。 WithContext は、Obsidian の vault に直接アクセスします。
- 自動プロジェクトスキャッピング - 各プロジェクトは、独自のフォルダ、交差汚染なしを取得します -Smart Editing - エージェントは、フロントマッタを更新し、セクションを交換したり、コンテンツを追加したりすることができます -Session Tracking - エージェントが変更ログとtodosで何をするかを追跡する
- 理性的な組織 - ボルトをきれいに保つための組み込みプリセット
- テンプレートシステム - 一貫性のあるドキュメントのプロフェッショナルテンプレート
※一度設定してください。 あなたのAIエージェントは残りを処理します。**
クイックセットアップ
##1. Obsidian REST API プラグインをインストールする
- Obsidian 設定 → コミュニティプラグイン → ブラウザーを開く
- 「ローカルREST API」で検索してインストール
- プラグインを有効にし、API キーをコピー
##2.WithContextをインストール
##3. AIクライアントの設定
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
WithContext MCP Server
Let your AI coding agents write directly to your note-taking apps. WithContext provides project-scoped note management for AI agents working with Obsidian, enabling them to create documentation, track changes, and organize knowledge as they code.
Why WithContext?
Your AI coding agent needs a place to store documentation, meeting notes, and project updates. WithContext gives them direct access to your Obsidian vault with:
- Automatic Project Scoping - Each project gets its own folder, no cross-contamination
- Smart Editing - Agents can update frontmatter, replace sections, prepend/append content
- Session Tracking - Track what changes the agent makes with changelogs and todos
- Intelligent Organization - Built-in presets for keeping vaults clean
- Template System - Professional templates for consistent documentation
You set it up once. Your AI agent handles the rest.
Quick Setup
1. Install Obsidian REST API Plugin
- Open Obsidian Settings → Community Plugins → Browse
- Search for “Local REST API” and install
- Enable the plugin and copy your API key
2. Install WithContext
npm install -g with-context-mcp
3. Configure Your AI Client
Add this to your AI client’s MCP configuration:
OpenCode (opencode.jsonc):
{
"mcp": {
"with-context": {
"type": "local",
"command": "npx",
"args": ["-y", "with-context-mcp"],
"environment": {
"OBSIDIAN_API_KEY": "{env:OBSIDIAN_API_KEY}",
"OBSIDIAN_API_URL": "{env:OBSIDIAN_API_URL}",
"OBSIDIAN_VAULT": "{env:OBSIDIAN_VAULT}",
"PROJECT_BASE_PATH": "{env:PROJECT_BASE_PATH}",
},
"enabled": true,
},
},
}
Other Clients: Claude Desktop, Cline, Cursor, Windsurf, Continue.dev, GitHub Copilot →
4. Set Environment Variables
export OBSIDIAN_API_KEY="your_api_key_here"
export OBSIDIAN_API_URL="https://127.0.0.1:27124"
export OBSIDIAN_VAULT="MyVault"
export PROJECT_BASE_PATH="Projects"
That’s it! Your AI agent now has access to 33+ tools for managing notes in MyVault/Projects/.
What Your Agent Can Do
Once configured, your AI coding agent can:
- Create and update documentation as it writes code
- Track changes with automatic changelogs and todos
- Organize the vault using intelligent presets
- Edit YAML frontmatter to add tags and metadata
- Search and update existing notes by content or filename
- Generate notes from templates for consistent formatting
- Replace specific sections in markdown files by heading
インストール
npx -y with-context-mcp