Text Resources
Text resources allow you to store plain text, markdown, JSON, or any text-based content directly in Reeva. They're ideal for providing context, configurations, and documentation to AI models.
Creating a Text Resource
- Navigate to Resources in the left sidebar
- Click + New Resource
- Select Text as the resource type
- Fill in the resource details:
- Name: Use letters, numbers, and underscores (e.g.,
coding_standards) - Description: Brief description of what this resource contains
- URI: Auto-generated or provide a custom URI (e.g.,
text://coding-standards) - Content: Enter your text content
- MIME Type: Choose Plain Text, Markdown, or JSON
- Name: Use letters, numbers, and underscores (e.g.,
Supported MIME Types
- text/plain: Plain text files
- text/markdown: Markdown-formatted documentation
- application/json: JSON data structures
Size Limits
- Text resources can be up to 1MB in size
- Small text (< 100KB) is stored inline for fast access
- Larger text is stored in cloud storage
Example Use Cases
Coding Standards
Create a resource with your team's coding standards and style guide:
# Python Coding Standards
## Naming Conventions
- Use snake_case for functions and variables
- Use PascalCase for classes
- Constants should be UPPERCASE
## Documentation
All functions must have docstrings...
API Configuration
Store API endpoint information and authentication details:
{
"api_base_url": "https://api.example.com/v1",
"endpoints": {
"users": "/users",
"products": "/products"
},
"rate_limit": 100
}
Project Context
Provide context about your project structure:
# Project Overview
This is a microservices architecture with:
- Auth Service (Python/FastAPI)
- User Service (Node.js/Express)
- Product Service (Go)
Database: PostgreSQL
Cache: Redis
Message Queue: RabbitMQ
Editing Text Resources
- Navigate to the resource detail page
- Modify the content in the text editor
- Click Save to update
Changes are immediately reflected in all servers linked to this resource.
Linking to Servers
After creating a text resource:
- Open the resource detail page
- In the Linked Servers section, select a server from the dropdown
- The resource is now accessible to AI clients connected to that server
You can link the same resource to multiple servers.
Best Practices
- Keep it Focused: Each resource should have a single, clear purpose
- Use Descriptive Names: Make it easy to identify resources at a glance
- Update Regularly: Keep documentation and configurations current
- Organize with Descriptions: Use clear descriptions for searchability
- Choose Appropriate MIME Types: This helps AI models understand the content format