java-sdk/docs/development.md
Christian Tzolov a1048b9342
Add embedded MkDocs documentation site (#795)
Copy and convert existing MCP documentation into an embedded docs site
using MkDocs with Material theme. Includes client and server guides,
quickstart, development/contributing docs, architecture diagrams, and a
GitHub Actions workflow for publishing to GitHub Pages.

---------

Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
2026-02-15 19:00:21 +01:00

75 lines
2.1 KiB
Markdown

---
title: Documentation
description: How to contribute to the MCP Java SDK documentation
---
# Documentation Development
This guide covers how to set up and preview the MCP Java SDK documentation locally.
!!! info "Prerequisites"
- Python 3.x
- pip (Python package manager)
## Setup
Install mkdocs-material:
```bash
pip install mkdocs-material
```
## Preview Locally
From the project root directory, run:
```bash
mkdocs serve
```
A local preview of the documentation will be available at `http://localhost:8000`.
### Custom Ports
By default, mkdocs uses port 8000. You can customize the port with the `-a` flag:
```bash
mkdocs serve -a localhost:3333
```
## Building
To build the static site for deployment:
```bash
mkdocs build
```
The built site will be output to the `site/` directory.
## Project Structure
```
docs/
├── index.md # Overview page
├── quickstart.md # Quickstart guide
├── client.md # MCP Client documentation
├── server.md # MCP Server documentation
├── contributing.md # Contributing guide
├── development.md # This page
├── images/ # Images and diagrams
└── stylesheets/ # Custom CSS
mkdocs.yml # MkDocs configuration
```
## Writing Guidelines
- Documentation pages use standard Markdown with [mkdocs-material extensions](https://squidfunk.github.io/mkdocs-material/reference/)
- Use content tabs (`=== "Tab Label"`) for Maven/Gradle or Sync/Async code examples
- Use admonitions (`!!! tip`, `!!! info`, `!!! warning`) for callouts
- All code blocks should specify a language for syntax highlighting
- Images go in the `docs/images/` directory
## IDE Support
We suggest using extensions on your IDE to recognize and format Markdown. If you're a VSCode user, consider the [Markdown All in One](https://marketplace.visualstudio.com/items?itemName=yzhang.markdown-all-in-one) extension for enhanced Markdown support, and [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) for code formatting.