A Spring AI MCP-based service for retrieving ONES Wiki content and converting it to AI-friendly text format. - ๐ 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 - Java 17 or higher - Maven 3.6 or higher - Acce
Add this skill
npx mdskills install brianxiadong/ones-wiki-mcp-serverWell-documented MCP server for retrieving ONES Wiki content with clear setup and auth options
1# ONES Wiki MCP Server23A Spring AI MCP-based service for retrieving ONES Wiki content and converting it to AI-friendly text format.45## Features67- ๐ ONES platform authentication support8- ๐ Automatic conversion from Wiki URLs to API endpoints9- ๐ Extract and format Wiki page content10- ๐ค AI-friendly text output format11- โ๏ธ Configuration via properties file or command line arguments1213## Prerequisites1415- Java 17 or higher16- Maven 3.6 or higher17- Access to a ONES platform instance1819## Quick Start2021### 1. Build the Project2223```bash24mvn clean package25```2627### 2. Configure Authentication2829#### Option 1: Modify application.properties3031Edit `src/main/resources/application.properties`:3233```properties34ones.host=your-ones-host.com35ones.email=your-email@example.com36ones.password=your-password37```3839#### Option 2: Use Command Line Arguments4041```bash42java -jar target/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar \43 --ones.host=your-ones-host.com \44 --ones.email=your-email@example.com \45 --ones.password=your-password46```4748#### Option 3: Use Environment Variables4950```bash51export ONES_HOST=your-ones-host.com52export ONES_EMAIL=your-email@example.com53export ONES_PASSWORD=your-password54./start-mcp-server.sh55```5657### 3. Configure in MCP Client5859Add to Claude Desktop configuration file:6061```json62{63 "mcpServers": {64 "ones-wiki": {65 "command": "java",66 "args": [67 "-jar",68 "/path/to/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar",69 "--ones.host=your-ones-host.com",70 "--ones.email=your-email@example.com",71 "--ones.password=your-password"72 ]73 }74 }75}76```7778## Usage7980### Get Wiki Content8182Provide the complete Wiki page URL when using the tool:8384```85Please get the content of this Wiki page: https://your-ones-host.com/wiki/#/team/TEAM_UUID/space/SPACE_UUID/page/PAGE_UUID86```8788### URL Format8990Supported Wiki URL format:91```92https://{host}/wiki/#/team/{team_uuid}/space/{space_uuid}/page/{page_uuid}93```9495Automatically converts to API endpoint:96```97https://{host}/wiki/api/wiki/team/{team_uuid}/online_page/{page_uuid}/content98```99100## Output Format101102The service converts Wiki page HTML content to structured Markdown format, including:103104- โ Heading levels (H1-H6)105- โ Paragraph text106- โ Ordered and unordered lists107- โ Table data (key-value format)108- โ Image descriptions109- โ Link information110- โ Strikethrough content (automatically filtered)111112## Technical Architecture113114- **Spring Boot 3.4.5** - Application framework115- **Spring AI MCP** - MCP protocol support116- **Jsoup 1.17.2** - HTML parsing117- **RestClient** - HTTP client118119## Security Notes120121- Authentication credentials should be managed via environment variables or configuration files122- HTTPS connections supported123- Automatic handling of ONES platform login authentication124125## Development126127### Project Structure128129```130src/main/java/org/springframework/ai/mcp/sample/server/131โโโ McpServerApplication.java # Main application132โโโ OnesWikiService.java # ONES Wiki service133```134135### Running Tests136137```bash138mvn test139```140141### Building from Source142143```bash144git clone https://github.com/your-username/ones-wiki-mcp-server.git145cd ones-wiki-mcp-server146mvn clean package147```148149### Extending Functionality150151You can add more tool methods to `OnesWikiService`, such as:152- Search Wiki pages153- Get Wiki directory structure154- Batch process multiple pages155156## Contributing1571581. Fork the repository1592. Create a feature branch (`git checkout -b feature/amazing-feature`)1603. Commit your changes (`git commit -m 'Add some amazing feature'`)1614. Push to the branch (`git push origin feature/amazing-feature`)1625. Open a Pull Request163164## License165166Apache License 2.0
Full transparency โ inspect the skill content before installing.