personal-mcp
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v66View latest version
A simple web application that provides a password-protected interface for managing key/value pairs with both web UI and JSON API access.
- Password-protected web interface for viewing current values
- Secure form for updating values with separate write password
- JSON API with Bearer token authentication
- Persistent storage using Val Town's blob storage
- Responsive design with TailwindCSS
Set these environment variables in your Val Town settings:
READ_PASSWORD- Password required to view the web interface and access the JSON API (default: "read123")WRITE_PASSWORD- Password required to update values via the form (default: "write123")
- Visit the main URL
- Enter the
READ_PASSWORDto access the interface - View current values for
ageandstatusin the table - Use the form to update values by providing new values and the
WRITE_PASSWORD
Access the values programmatically:
curl -H "Authorization: Bearer YOUR_READ_PASSWORD" https://your-val-url.web.val.run/api/values
Response format:
{ "age": "25", "status": "active" }
GET /- Main web interface (requirespasswordquery parameter)POST /update- Update values via form submission (requires write password)GET /api/values- JSON API endpoint (requires Bearer token authentication)
The application initializes with:
age: "25"status: "active"
- Read access requires password authentication
- Write access requires separate password authentication
- API access uses Bearer token authentication
- All passwords are checked server-side
- No sensitive data is exposed in client-side code