Purpose
ones-wiki-mcp-server is a service based on Spring AI MCP, designed to retrieve ONES Wiki content and convert it into an AI-friendly text format. It is suitable for scenarios where ONES Wiki page content needs to be provided to AI models (such as Claude) for processing.
Main Capabilities
- Supports ONES platform authentication.
- Automatically converts Wiki URLs to API endpoints.
- Extracts and formats Wiki page content.
- Outputs an AI-friendly text format.
- Can be configured via property files or command-line arguments.
Usage
Environment Requirements
- Java 17 or higher
- Maven 3.6 or higher
- An accessible ONES platform instance
Building the Project
- Build the project (specific commands not provided).
- Configure authentication: edit
src/main/resources/application.propertiesfile (specific configuration items not provided). - Configure in the MCP client: add to the Claude Desktop configuration file (specific configuration format not provided).
Retrieving Wiki Content
Provide the complete Wiki page URL when using. Supported Wiki URL formats are automatically converted to API endpoints (specific formats not provided).
Content Conversion
The service converts Wiki page HTML content into a 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 and Authentication
- Authentication credentials should be managed via environment variables or configuration files.
- Supports HTTPS connections.
- Automatically handles ONES platform login authentication.
Extended Features
You can add more tool methods to OnesWikiService , for example:
- Search Wiki pages
- Retrieve Wiki directory structure
- Batch process multiple pages
Contribution Guidelines
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit 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
Limitations
- Specific build commands, configuration items, URL formats, and MCP client configuration details are not yet provided.
- Requires access to a ONES platform instance.
- Only supports Java 17 and above.