You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bsuccess?q=api&page=21&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=api
Returns an array of strings in format "username" or "username/projectName"
Found 20764 results for "api"(2926ms)
27โ โ โโโ files-tools.ts # Files store tool handlers
28โ โ โโโ code-tools.ts # Code execution tool handlers
29โ โ โโโ openai-tools.ts # OpenAI API tool handlers
30โ โโโ valtown/
31โ โโโ client.ts # Val Town API client (for admin features)
32โโโ README.md
33```
111- **admin-list-promoted-skills**: List all skills that have been promoted to system-wide availability (admin only)
112- **admin-update-promoted-skill**: Update a promoted skill with the latest version from its original user (admin only)
113- **admin-read-val-file**: Read a source code file from the project using Val Town API (admin only)
114- **admin-write-val-file**: Write/update a source code file in the project using Val Town API (admin only)
115- **admin-list-val-files**: List all files in the project directory structure using Val Town API (admin only)
116- **admin-project-info**: Get project information and structure overview using Val Town API (admin only)
117118#### OpenAI API Tools
119- **openai-chat-completion**: Create chat completions using OpenAI's API via Val Town's built-in OpenAI integration (supports GPT-4, GPT-3.5, and other models)
120121## OpenAI Integration
122123The server includes OpenAI chat completion functionality using Val Town's built-in OpenAI integration. This provides seamless access to OpenAI's models without requiring additional API key configuration.
124125### Example Usage
358**Note**: `AWS_SECRET_ACCESS_KEY` is NOT set as an environment variable. Instead, it's passed via the Authorization header for security.
359360**OpenAI Integration**: OpenAI functionality uses Val Town's built-in OpenAI integration, which automatically handles API key management. No additional environment variables are required for OpenAI tools.
361362### DynamoDB Table Schema
915916```bash
917# Read a project source file using Val Town API (admin only)
918curl -X POST https://your-val-town-url.web.val.run/mcp \
919-H "Content-Type: application/json" \
931}'
932933# Write/update a project source file using Val Town API (admin only)
934curl -X POST https://your-val-town-url.web.val.run/mcp \
935-H "Content-Type: application/json" \
948}'
949950# List project files recursively using Val Town API (admin only)
951curl -X POST https://your-val-town-url.web.val.run/mcp \
952-H "Content-Type: application/json" \
965}'
966967# Get comprehensive project information using Val Town API (admin only)
968curl -X POST https://your-val-town-url.web.val.run/mcp \
969-H "Content-Type: application/json" \
235236/**
237* Read a source code file from the project using Val Town API
238*/
239async handleAdminReadValFile(args: any, authContext: ExtendedAuthContext) {
271272/**
273* Write/update a source code file in the project using Val Town API
274*/
275async handleAdminWriteValFile(args: any, authContext: ExtendedAuthContext) {
308309/**
310* List files in the project directory using Val Town API
311*/
312async handleAdminListValFiles(args: any, authContext: ExtendedAuthContext) {
345346/**
347* Get project information and structure overview using Val Town API
348*/
349async handleAdminProjectInfo(args: any, authContext: ExtendedAuthContext) {