Metadata-Version: 2.4
Name: datastudio-docs-mcp-server
Version: 0.1.0
Summary: MCP server for DataStudio function documentation lookup
Author-email: Bechir Zammouri <bechir.zammouri@se.linedata.com>
License-Expression: MIT
Project-URL: Homepage, https://github.com/bechirzammouri/datastudio-docs-mcp
Project-URL: Repository, https://github.com/bechirzammouri/datastudio-docs-mcp
Project-URL: Issues, https://github.com/bechirzammouri/datastudio-docs-mcp/issues
Keywords: mcp,datastudio,fastmcp,documentation
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Documentation
Requires-Python: >=3.13
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: beautifulsoup4>=4.12.0
Requires-Dist: fastmcp<3.3.0,>=3.2.0
Requires-Dist: prefab-ui>=0.8.0
Requires-Dist: python-dotenv>=1.0.0
Dynamic: license-file

# DataStudio Docs MCP Server

MCP server that serves DataStudio function documentation from bundled Markdown files.

## Installation

```bash
uv pip install datastudio-docs-mcp-server
```

Or run directly without installing:

```bash
uvx datastudio-docs-mcp-server
```

## Tools

- `search_function(function_name: str) -> str` returns the markdown documentation page for one DataStudio function. Case-insensitive.
- `list_functions() -> list[str]` returns all DataStudio function names.
- `list_functions_pretty() -> str` returns the same names as a numbered multiline string.

## Run

After install, the entry point starts an MCP stdio server:

```bash
datastudio-docs-mcp-server
```

## Development

Requirements: Python 3.13+, uv.

```bash
uv venv .venv
uv sync
fastmcp dev src/datastudio_mcp_pkg/server.py
```

To rebuild bundled docs and index from the HTML source:

```bash
python src/build_function_docs.py
```

Bundled data lives at `src/datastudio_mcp_pkg/data/`:

- `data/functions/*.md` per-function documentation
- `data/index/function_index.json` lookup index
- `data/resources/Langage03.htm` HTML source used by the builder

## Publishing

```bash
uv build --no-sources
uv publish --token <PYPI_TOKEN>
```
