Skip to content

About

Ingesta y gestión de una wiki Markdown con agentes y MCP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

docs-ingestion

Your first persistent memory for AI agents. A personal Markdown wiki you can read, edit, and use with Obsidian. Save what you'll want to find in a future session, from a project decision to a procedure you use regularly.

Jira, GitHub, Slack, meeting notes, and email feed a Markdown wiki and structured index for AI retrieval

Set up docs-ingestion

1. Install the skill

Install the skill once at user level with skills.sh so you can use it in multiple projects:

npx skills add https://github.com/devmasx/docs-ingestion --skill docs-ingestion --global

2. Paste this prompt into your agent

I've installed the docs-ingestion skill. Set up the MCP server and my
personal Markdown wiki using https://github.com/devmasx/docs-ingestion.

1. Reuse an existing checkout or clone the repository into a stable local
   folder. Run npm ci --prefix mcp from the checkout.
2. Register a local stdio MCP server named docs-ingestion in this client's
   user-level configuration. Use node with the absolute path to
   mcp/server.js and preserve my other settings.
3. Reuse my configured wiki if I have one. Otherwise, create a Memory
   folder in my home directory, or inside my Obsidian vault if I've given
   you its path. Copy the wiki/ template into a new or empty destination.
   Preserve any existing notes.
4. Use wiki_configure to set the wiki folder, then run /docs-ingestion doctor.
5. Tell me where my wiki is and how to open it in Obsidian. If my client
   needs a restart to load the MCP server, finish the local setup first
   and give me the exact prompt to finish verification in a new session.

3. Check your setup

Run /docs-ingestion doctor or ask your agent “Check my docs-ingestion setup.” The check reports the MCP connection, the resolved wiki path and how it was selected (profile, project, or default), whether index.md and labels.md are readable, and whether the MCP server runtime supports SQLite FTS5. It gives a fix for each failed check and runs without changing notes or settings, refreshing the search index, or triggering sync.

Save your first memory

With the local MCP server connected, try this with a real decision:

  1. Save it. Give the agent a note or conversation and ask, “Use the ingestion skill to record why we chose this tool and link to the source.” You can also write a Markdown file yourself or start with notes you already have.
  2. Read and edit it. Open index.md in your wiki folder. Follow the link to the decision and edit the file in Obsidian or your preferred editor.
  3. Find it in a new session. Ask, “Why did we choose this tool? Look up the decision in my wiki and show me the original file.” The agent can find and read your edited version through MCP.

The Markdown files are the source of truth. Use the wiki for decisions, learning notes, and personal procedures. Browse the documentation yourself and let your agent retrieve context from the same folder in future sessions.

Animated demo showing pasted notes, GitHub releases, Jira issues, and sprint retrospectives becoming wiki notes

From your local checkout, open the interactive demo in a browser to follow each step.

  • Browse the wiki and its classification rules.
  • Use the ingestion skill to turn meetings, tickets, and documents into notes with sources. In Claude Code, open this repository and invoke /docs-ingestion with the source material. Codex discovers the skill in .agents/skills/ when working in the clone.
  • Connect the local MCP server to configure the wiki, search and read notes, and save new material from a compatible client.

Open the wiki in any Markdown editor. The MCP server runs locally over stdio. The ingestion skill saves to the clone's wiki/ folder by default. Choose a different local folder with wiki_configure.

Folder and document tree for the wiki

Preview an ingestion

Run /docs-ingestion --dry-run <source> or ask “Preview what ingesting this ticket would change in my wiki.” Attach the source or refer to material already in the conversation.

The preview shows the resolved wiki path and the notes it would create, update, skip, or flag for review, along with any proposed edits to index.md. It uses the same classification and reconciliation steps as ingestion against the local wiki. It leaves wiki files untouched and skips automatic sync, even when pull_on_open is enabled. Ask to ingest when you’re ready to apply the plan.

Ingest from an external source

Source skills retrieve documents and pass them with their provenance to docs-ingestion. The shared skill classifies and reconciles the material, then saves Markdown notes through the docs-ingestion MCP.

To import GitHub release notes, install the GitHub releases skill alongside docs-ingestion:

npx skills add git@github.com:devmasx/docs-ingestion.git --skill ingest-github-releases

With a GitHub connection or authenticated GitHub CLI, ask “Ingest all releases from owner/repo using docs-ingestion.” This includes published prereleases by default. You can also ask for specific versions.

For Jira Cloud, install ingest-jira with the shared skill:

npx skills add https://github.com/devmasx/docs-ingestion --skill ingest-jira

Ask “Preview ingesting Jira issue https://example.atlassian.net/browse/TEAM-123” or pass a JQL selection. The same skill can export issue snapshots to local JSON. It uses an authorized Jira connector or Jira Cloud REST credentials configured in the environment.

To create your own workflow for meetings, email, or another source, use create-ingestion-skills. For example, ask it to read weekly meeting transcripts, filter to the last seven days, and extract approved decisions with timestamps before ingestion.

Schedule recurring ingestion

Start with the Jira or GitHub releases skill above, or create a custom skill for your source. Test it once with your source connection and destination wiki. Then create a recurring task that names the skill, source, wiki, and cadence. For example, ask it to ingest updates from a Jira project every weekday at 9 a.m. and use issue keys to update existing notes on repeat runs.

  • Claude Code (Anthropic). Use Desktop scheduled tasks for a local wiki, or Cloud scheduled tasks (formerly Routines) when your cloud environment can reach the source and wiki. Claude Code scheduling
  • Codex / ChatGPT (OpenAI). Use Codex Automations to invoke the skill in the project environment. ChatGPT Scheduled Tasks are another option when the task can reach both the source and the destination through its available tools. Codex Automations · ChatGPT Scheduled Tasks
  • Antigravity / Gemini (Google). Use /automation in Antigravity App to create and enable a recurring run. Gemini Apps also offers Scheduled Actions for workflows that can run with its available tools. Antigravity Automations · Gemini Scheduled Actions

For a wiki stored on your computer, schedule the task in an environment that can run the local MCP server and write to the wiki folder.

Use the wiki with Obsidian

  • Starting fresh? Use Open folder as vault to open the wiki folder in Obsidian, then open index.md.
  • Already have a vault? Create a folder such as Memory/ inside it, copy the contents of wiki/ into that folder, and select it as the MCP server's wiki folder. Your wiki sits alongside your personal notes, and you can link between them in Obsidian.

Obsidian and your agent work with the same local files. When you edit a note in Obsidian, the agent can read the updated file on its next lookup.

Search the wiki

The MCP server uses a local SQLite FTS5 index to search note paths and Markdown text. It refreshes the index before searching, so edits made in Obsidian or another editor show up in the results. The agent can open the original note from any result. Search requires Node.js 22.13 or later with FTS5.

Your Markdown files remain the source of truth. SQLite can be rebuilt with wiki_reindex. The current storage adapter reads and writes local Markdown. You can point it at a folder managed by a desktop sync client if that client exposes the files on disk. Provider skills can synchronize the local wiki through the cloud MCP servers you connect.

Sync across computers

Install the router and the provider skills you want, then connect the provider's MCP in your agent:

npx skills add https://github.com/devmasx/docs-ingestion --global \
  --skill wiki-sync wiki-sync-google-drive wiki-sync-notion wiki-sync-github

Add sync.yml to each wiki root. For example, put this inside the client's .wiki/:

provider: github
target:
  repository: your-org/private-docs
  branch: main
  path: client-a

For Drive, use provider: google-drive and target.folder_id. For Notion, use provider: notion and target.parent_page_id. Each wiki can point to a different target. On a new computer, bring the project marker and sync.yml, connect the same provider MCP, then open the wiki. The skill pulls on first use in the conversation. Use /docs-ingestion pull to refresh it or /docs-ingestion push to upload your changes. Set pull_on_open: false for manual pulls only.

To use your own sync skill, set provider, skill, and the target fields it expects. The sync contract explains how to preserve Markdown and handle conflicts.

Choose your wiki folder

Once the MCP server is connected, tell your agent, “Use /path/to/my-wiki as my wiki folder.” The agent calls wiki_configure with action: "set" and the absolute path to an existing local folder. If the folder is empty, copy the wiki/ template into it.

The next wiki operation uses the selected folder, and the selection persists across MCP server restarts. Use action: "get" to check the active folder or action: "reset" to return to the clone's wiki/ folder.

Switch between personal and client wikis

Install the MCP server once. For each client or project, copy the wiki template into a .wiki/ folder. Open your agent in that project or one of its subfolders. The agent passes its working directory to the MCP, which finds the nearest project wiki. Outside a configured project, it uses your default wiki.

Already keep documentation in docs/? Put a .wiki.json file at the project root with {"root":"docs"} and add index.md and labels.md there if needed. The relative path continues to work if you move the entire project folder.

Use these commands in clients that expose the installed skill as a slash command. You can also ask in plain language.

Command What it does
/docs-ingestion where Shows the wiki and absolute path this conversation is using.
/docs-ingestion save work /absolute/path/to/wiki Saves a folder as a named profile for quick access.
/docs-ingestion use work Selects that profile for the current conversation.
/docs-ingestion auto Returns to working-directory detection.
/docs-ingestion list Lists saved profiles.

Project discovery and conversation-level profile overrides both work with the same MCP installation. Architecture diagrams · MCP configuration reference.

If your client already had the MCP server running when you updated the repository, restart the server to load the updated tools.

About

Ingesta y gestión de una wiki Markdown con agentes y MCP

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages