Converts Wiki page HTML content to structured Markdown format for AI-friendly text output
Provides a framework for building the MCP server application, using Spring AI MCP for protocol support
Powers the application infrastructure of the MCP server, enabling configuration via properties, environment variables, and command-line arguments
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@ones-wiki-mcp-serverget the content from https://our-ones-host.com/wiki/#/team/abc123/space/def456/page/ghi789"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
ONES Wiki MCP Server
A Spring AI MCP-based service for retrieving ONES Wiki content and converting it to AI-friendly text format.
Features
π ONES platform authentication support
π Automatic conversion from Wiki URLs to API endpoints
π Extract and format Wiki page content
π€ AI-friendly text output format
βοΈ Configuration via properties file or command line arguments
Related MCP server: reddit-mcp-server
Prerequisites
Java 17 or higher
Maven 3.6 or higher
Access to a ONES platform instance
Quick Start
1. Build the Project
mvn clean package2. Configure Authentication
Option 1: Modify application.properties
Edit src/main/resources/application.properties:
ones.host=your-ones-host.com
ones.email=your-email@example.com
ones.password=your-passwordOption 2: Use Command Line Arguments
java -jar target/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar \
--ones.host=your-ones-host.com \
--ones.email=your-email@example.com \
--ones.password=your-passwordOption 3: Use Environment Variables
export ONES_HOST=your-ones-host.com
export ONES_EMAIL=your-email@example.com
export ONES_PASSWORD=your-password
./start-mcp-server.sh3. Configure in MCP Client
Add to Claude Desktop configuration file:
{
"mcpServers": {
"ones-wiki": {
"command": "java",
"args": [
"-jar",
"/path/to/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar",
"--ones.host=your-ones-host.com",
"--ones.email=your-email@example.com",
"--ones.password=your-password"
]
}
}
}Usage
Get Wiki Content
Provide the complete Wiki page URL when using the tool:
Please get the content of this Wiki page: https://your-ones-host.com/wiki/#/team/TEAM_UUID/space/SPACE_UUID/page/PAGE_UUIDURL Format
Supported Wiki URL format:
https://{host}/wiki/#/team/{team_uuid}/space/{space_uuid}/page/{page_uuid}Automatically converts to API endpoint:
https://{host}/wiki/api/wiki/team/{team_uuid}/online_page/{page_uuid}/contentOutput Format
The service converts Wiki page HTML content to structured Markdown format, including:
β Heading levels (H1-H6)
β Paragraph text
β Ordered and unordered lists
β Table data (key-value format)
β Image descriptions
β Link information
β Strikethrough content (automatically filtered)
Technical Architecture
Spring Boot 3.4.5 - Application framework
Spring AI MCP - MCP protocol support
Jsoup 1.17.2 - HTML parsing
RestClient - HTTP client
Security Notes
Authentication credentials should be managed via environment variables or configuration files
HTTPS connections supported
Automatic handling of ONES platform login authentication
Development
Project Structure
src/main/java/org/springframework/ai/mcp/sample/server/
βββ McpServerApplication.java # Main application
βββ OnesWikiService.java # ONES Wiki serviceRunning Tests
mvn testBuilding from Source
git clone https://github.com/your-username/ones-wiki-mcp-server.git
cd ones-wiki-mcp-server
mvn clean packageExtending Functionality
You can add more tool methods to OnesWikiService, such as:
Search Wiki pages
Get Wiki directory structure
Batch process multiple pages
Contributing
Fork the repository
Create a feature branch (
git checkout -b feature/amazing-feature)Commit your changes (
git commit -m 'Add some amazing feature')Push to the branch (
git push origin feature/amazing-feature)Open a Pull Request
License
Apache License 2.0