Metadata-Version: 2.4
Name: webdav-knowledge-mcp
Version: 1.0.0
Summary: Read-only search and source-grounded answers for WebDAV knowledge bases
Author: Neville
License-Expression: Apache-2.0
Project-URL: Repository, https://github.com/EI-robot/webdav-knowledge-mcp
Project-URL: Issues, https://github.com/EI-robot/webdav-knowledge-mcp/issues
Keywords: mcp,webdav,document-search,rag
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
Requires-Dist: mcp<2,>=1.12
Requires-Dist: webdavclient3<4,>=3.14
Requires-Dist: python-dotenv<2,>=1
Requires-Dist: pydantic<3,>=2.8
Requires-Dist: markdown-it-py<5,>=3
Requires-Dist: mdit-py-plugins<1,>=0.4
Requires-Dist: pypdf<8,>=7.2
Provides-Extra: dev
Requires-Dist: pytest<10,>=8; extra == "dev"
Provides-Extra: semantic
Requires-Dist: fastembed<0.10,>=0.9.1; extra == "semantic"
Dynamic: license-file

# WebDAV Knowledge MCP

A read-only MCP server for WebDAV document collections. Browse files, read Markdown and text-layer PDFs, maintain a local SQLite index, and retrieve evidence with file paths and text lines or PDF pages.

This independent project by Neville is licensed under Apache-2.0. It has been tested with Nutstore WebDAV using user-supplied application passwords. Nutstore identifies the compatible service.

## Installation

Use Python 3.10 or newer in a virtual environment.

```console
python -m pip install "webdav-knowledge-mcp==1.0.0"
```

Create a local dotenv file with your WebDAV server address and credentials.

```dotenv
NUTSTORE_URL=https://dav.jianguoyun.com/dav/
NUTSTORE_USERNAME=you@example.com
NUTSTORE_PASSWORD=your-app-password
```

Configure your MCP client to launch `webdav-knowledge-mcp` over stdio. Set `NUTSTORE_ENV_FILE` to the dotenv file's absolute path. Run `webdav-knowledge-smoke --registration-only` to check startup and tool discovery. Call `check_connection` in the client to verify the WebDAV configuration.

## Semantic search and answers

```console
python -m pip install "webdav-knowledge-mcp[semantic]==1.0.0"
python -m webdav_knowledge_mcp.embedding
```

The preparation command downloads a public model for local CPU inference. Run `sync_index` and `sync_embeddings` for the same directory. The client selects excerpts returned by `retrieve_rag_context`; `finalize_rag_answer` verifies each excerpt against the local index. Insufficient evidence yields an explicit status. Scanned PDF pages need OCR before indexing.

The SQLite index stores document text locally. Hosted client models may receive excerpts when they are included in the client's context.

[Usage guide](https://github.com/EI-robot/webdav-knowledge-mcp/blob/master/docs/usage.md) · [Security](https://github.com/EI-robot/webdav-knowledge-mcp/blob/master/SECURITY.md) · [License](https://github.com/EI-robot/webdav-knowledge-mcp/blob/master/LICENSE)
