Skip to content

Commit 688c5bf

Browse files
committed
fix ci failures
1 parent 2195891 commit 688c5bf

5 files changed

Lines changed: 6 additions & 8 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Enhancement or New feature
2+
body: "Adds product docs tools: search_product_docs, get_product_doc_page, and batch_get_product_doc_pages"
3+
time: 2026-03-04T12:00:00.000000-06:00

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ The dbt MCP server architecture allows for your agent to connect to a variety of
9292
- `get_column_lineage`: Traces column-level lineage locally (requires dbt-lsp via dbt Labs VSCE).
9393

9494
### Product Docs
95-
- `get_product_doc_page`: Fetches the full Markdown content of a single docs.getdbt.com page by path or URL.
9695
- `batch_get_product_doc_pages`: Fetches the full Markdown content of multiple docs.getdbt.com pages in a single call.
96+
- `get_product_doc_page`: Fetches the full Markdown content of a single docs.getdbt.com page by path or URL.
9797
- `search_product_docs`: Searches docs.getdbt.com for pages matching a query; returns titles, URLs, and descriptions ranked by relevance. Use get_product_doc_page or batch_get_product_doc_pages to fetch full content.
9898

9999
### MCP Server Metadata

scripts/test-docs-approaches.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import asyncio
1313
import sys
14-
from dataclasses import asdict
1514
from pathlib import Path
1615

1716
# Add src to path

src/dbt_mcp/product_docs/tools.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ def _dict_to_doc_search_result(entry: dict[str, str]) -> DocSearchResult:
5656
)
5757

5858

59-
async def _fetch_page(
60-
client: ProductDocsClient, url: str
61-
) -> ProductDocPageResponse:
59+
async def _fetch_page(client: ProductDocsClient, url: str) -> ProductDocPageResponse:
6260
"""Fetch a single page, returning a typed response with error handling."""
6361
normalized = normalize_doc_url(url)
6462
try:

tests/unit/tools/test_product_docs.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ async def test_empty_paths_list(self, context, mock_client):
405405
@pytest.mark.asyncio
406406
async def test_urls_stripped_of_md(self, context, mock_client):
407407
mock_client.get_page.return_value = "# Content"
408-
result = await batch_get_product_doc_pages.fn(
409-
context, ["/docs/build/models"]
410-
)
408+
result = await batch_get_product_doc_pages.fn(context, ["/docs/build/models"])
411409
assert not result.pages[0].url.endswith(".md")
412410

413411

0 commit comments

Comments
 (0)