A Spring AI MCP-based service for retrieving ONES Waiki content and converting it to AI-friendly text format.
A Spring AI MCP-based service for retrieving ONES Wiki content and converting it to AI-friendly text format.
mvn clean package
Edit src/main/resources/application.properties
:
ones.host=your-ones-host.com
[email protected]
ones.password=your-password
java -jar target/ones-wiki-mcp-server-0.0.1-SNAPSHOT.jar \
--ones.host=your-ones-host.com \
[email protected] \
--ones.password=your-password
export ONES_HOST=your-ones-host.com
export [email protected]
export ONES_PASSWORD=your-password
./start-mcp-server.sh
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",
"[email protected]",
"--ones.password=your-password"
]
}
}
}
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_UUID
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}/content
The service converts Wiki page HTML content to structured Markdown format, including:
src/main/java/org/springframework/ai/mcp/sample/server/
├── McpServerApplication.java # Main application
└── OnesWikiService.java # ONES Wiki service
mvn test
git clone https://github.com/your-username/ones-wiki-mcp-server.git
cd ones-wiki-mcp-server
mvn clean package
You can add more tool methods to OnesWikiService
, such as:
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)Apache License 2.0