Overview
Oxygen Positron is a modern IDE for XML and structured content editing, built with AI capabilities. It supports the Model Context Protocol (MCP), allowing seamless integration with WebHelp MCP Server for context-aware documentation assistance.Oxygen Positron provides native support for XML, DITA, XSLT, and other structured content formats, making it ideal for technical documentation workflows.
Prerequisites
- Oxygen Positron IDE installed
- WebHelp MCP Server deployed and accessible
- Basic knowledge of XML/DITA workflows
Configuration
Access MCP Settings
Open Oxygen Positron’s MCP configuration:
- Launch Oxygen Positron
- Go to
Settings > AI & MCP Servers - Or use command palette:
Cmd/Ctrl + Shift + P→ “MCP: Configure Servers”
Add WebHelp MCP Server
Configure your WebHelp MCP Server connection:
The
priority field helps Oxygen Positron determine which MCP servers to query first. Options: high, medium, low.Configure Context Rules
Set up automatic context detection for better AI assistance:This configuration automatically queries relevant documentation based on the file type you’re editing.
context-rules.json
Restart Oxygen Positron
Apply the configuration:
- Restart the IDE, or
- Use command:
AI: Reload MCP Servers
Features
Context-Aware Assistance
Oxygen Positron automatically provides documentation context based on your current editing task:- Request code completion
- Ask for explanations
- Generate new content
- Validate structures
Inline Documentation
Hover over XML elements to see documentation snippets:- Place cursor on any DITA element
- Press
Cmd/Ctrl + KthenI - Get instant documentation from WebHelp
Smart Validation
Validation messages enhanced with documentation links:Template Generation
Generate DITA/XML templates based on Oxygen standards:Available Tools
search
Description: Search Oxygen documentation for relevant content Parameters:query(string): Search query with boolean operator support (AND, OR, NOT)
fetch
Description: Retrieve complete document content by ID Parameters:id(string): Document ID from search results
Workflow Examples
Example 1: DITA Topic Creation
Apply Recommendations
The AI will search the documentation and provide structured guidance:
- Required elements
- Content structure
- Examples from the docs
Example 2: XSLT Transformation
Get Step-by-Step Guide
The AI fetches relevant documentation and provides:
- Configuration steps
- Parameter settings
- Output options
Example 3: DITA Map Publishing
Configure Transformation
AI provides documentation on:
- Available parameters
- Customization options
- Publishing workflow
Advanced Features
Automatic Context Injection
Enable automatic context injection for AI responses:settings.json
Custom Prompts with Documentation
Create custom prompts that leverage documentation:custom-prompts.json
Cmd/Ctrl + Shift + P → type trigger name
Documentation-Driven Refactoring
- Search for DITA map best practices
- Analyze your current structure
- Suggest improvements based on Oxygen documentation
- Generate refactored structure
Batch Operations
Process multiple files with documentation context:Integration with Oxygen Features
Schema-Aware Editing
The AI assistant respects your XML schemas and DTDs:Content Completion
Enhanced content completion with documentation examples:Transformation Scenarios
Get help configuring transformation scenarios:- Selecting the transformation type
- Setting parameters
- Customizing CSS/XSL
- Configuring output options
Troubleshooting
MCP server not connecting
MCP server not connecting
Solution:
- Check server URL in settings
- Verify network connectivity: Test URL in browser
- Check Oxygen Positron logs:
Help > View Logs > MCP Connections - Ensure HTTPS is used for remote servers
- Try with a local server first to isolate issues
Context not automatically detected
Context not automatically detected
Solution:
- Verify context rules in
context-rules.json - Check that file patterns match your files
- Ensure
autoQueryis set totrue - Reload context rules:
AI: Reload Context Rules
Search returns irrelevant results
Search returns irrelevant results
Solution:
- Use more specific search terms
- Apply boolean operators:
"DITA AND maps AND organization" - Check that the correct MCP server is being queried
- Verify the documentation site URL is correct
AI suggestions not using documentation
AI suggestions not using documentation
Solution:
- Explicitly mention the MCP server:
@oxygen-editor-docs - Enable automatic context injection in settings
- Increase
maxResultsin context injection settings - Check that the MCP server is active (status indicator)
Performance issues with large documents
Performance issues with large documents
Solution:
- Reduce
maxResultsin context injection - Disable
autoFetchfor very large documents - Use specific queries instead of broad searches
- Configure caching in MCP server settings
Performance Optimization
Caching Configuration
settings.json
Request Batching
settings.json
Selective Context Loading
settings.json
Next Steps
- Explore Claude Desktop integration for standalone AI assistance
- Learn about Cursor integration for general-purpose IDE support
- Check out ChatGPT integration for web-based documentation access
- Review Configuration Guide for advanced options