You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The site will be available at http://localhost:8080.
67
66
68
-
## MCP Server
69
-
70
-
The documentation site exposes a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) endpoint at `/mcp` for AI-powered search. This enables AI assistants to search and retrieve documentation, blog posts, and code samples.
71
-
72
-
### Available Tools
73
-
74
-
| Tool | Description |
75
-
| :--- | :---------- |
76
-
|`search_duende_docs`| Full-text search across documentation |
77
-
|`fetch_duende_docs`| Retrieve a specific documentation article |
78
-
|`search_duende_blog`| Full-text search across blog posts |
79
-
|`fetch_duende_blog`| Retrieve a specific blog post |
80
-
|`search_duende_samples`| Full-text search across code samples |
81
-
|`fetch_duende_sample`| Get sample project metadata and file list |
82
-
|`fetch_duende_sample_file`| Retrieve a specific file from a sample |
83
-
84
-
### Building the Index
85
-
86
-
The MCP search index is built at build time (not runtime) using the `mcp-index` target:
87
-
88
-
```bash
89
-
dotnet build.cs mcp-index
90
-
```
91
-
92
-
This creates a SQLite FTS5 database at `server/Docs.Web/data/mcp.db` containing:
The index is automatically built as part of the `build` and `container` targets. Locally, subsequent runs skip indexing if the database already exists. Use `--force` to rebuild:
98
-
99
-
```bash
100
-
dotnet run --project server/Docs.Indexer -- --wwwroot <path> --output <path> --force
101
-
```
102
-
103
67
## Project Structure
104
68
105
69
This project uses Astro + Starlight for the documentation site, served by ASP.NET Core in production.
@@ -118,11 +82,8 @@ This project uses Astro + Starlight for the documentation site, served by ASP.NE
0 commit comments