-
-
Notifications
You must be signed in to change notification settings - Fork 2
Add a Tenzir Docs MCP server implementation #89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Claude finished @lava's task —— View job Code Review: Tenzir Docs MCP Server ImplementationI've completed a comprehensive review of the MCP server implementation. Here's my analysis: Review Checklist
🟢 StrengthsArchitecture & Design
Code Quality
Security
🟡 Areas for ImprovementPerformance Considerations1. Search Performance ( # Current: subprocess call per search
result = subprocess.run(cmd, capture_output=True, text=True, cwd=str(self.content_path))
2. File I/O Efficiency ( with open(file_path, 'r', encoding='utf-8') as f:
return f.read()
Code Robustness3. Incomplete Error Handling ( image_format = format_map.get(result.content_type, 'png')
4. Hard-coded Limits ( LIMIT = 10
Security Considerations5. Path Validation ( raise DocumentNotFoundError(f"Document not found: {doc_path}")
6. Command Injection Prevention ( cmd = [
"rg",
"--type", "md",
# ... query parameter used directly
query,
str(self.content_path)
]
🔴 Issues to AddressMissing Test Coverage
Documentation & Configuration
Potential Bugs7. Search Result Processing ( if query.lower() in content.lower():
8. Context Path Handling ( CONTENT_PATH = Path(__file__).parent.parent.parent.parent / "src" / "content" / "docs"
📋 RecommendationsHigh Priority
Medium Priority
Low Priority
🎯 Overall AssessmentThis is a solid foundational implementation with good architecture and security practices. The code is well-structured and follows Python best practices. The main gaps are around testing, configuration flexibility, and performance optimization. Recommendation: ✅ Approve with minor changes - address the high-priority items before production use. |
|
🚀 Preview deployed! Visit the preview at: https://tenzir-docs-preview-89.surge.sh This preview will be updated automatically on new commits. |
|
@claude Run |
|
@claude try again, and use the |
|
Claude finished @lava's task —— View job Running prettier on PRTodo List:
Task Failed: I cannot complete this task due to environment limitations:
The repository has prettier configured with these scripts:
Recommendation: This task requires either:
|
- Remove trailing slash from paths instead of appending 'index' - Add index.mdoc as final fallback option for all paths
- Fix example format to use correct issuer/audiences structure - Add multiple issuers configuration example - Update reference documentation to mention array support
Testing prompt: (run in an empty directory without any CLAUDE.md instructions)
Opus without MCP server:
->
Sonnet with MCP
I also tested sonnet with MCP and opus with MCP, but the results are largely similar - Opus also prepends an '|' to every single line. Apart from this, both pipelines created with MCP support look very plausible.