Unlisted
Like
1
Contextual
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: v1View latest version
A Model Context Protocol (MCP) server that provides cognitive tools for thought processes, goal tracking, and dynamic skill creation.
- Fork Thought: Perform parallel explorations of ideas before merging insights
- Goal Tracking: Create, update, and monitor goals with hierarchical structure
- Task Management: Break down goals into actionable tasks with state tracking
- State Management: Track and persist cognitive states across sessions
- Skill Creation: Write and store reusable scripts as "skills"
- Skill Execution: Dynamically invoke created skills as tools
- Skill Management: List, update, and delete skills
- Header-based authentication using environment variable
- Secure skill execution with sandboxing
├── backend/
│ ├── database/
│ │ ├── migrations.ts # Database schema
│ │ └── queries.ts # Database operations
│ ├── mcp/
│ │ ├── server.ts # MCP server implementation
│ │ ├── tools/ # Core cognitive tools
│ │ │ ├── fork-thought.ts
│ │ │ ├── goals.ts
│ │ │ ├── tasks.ts
│ │ │ ├── states.ts
│ │ │ └── skills.ts
│ │ └── auth.ts # Authentication middleware
│ └── index.ts # Main entry point
├── shared/
│ └── types.ts # Shared TypeScript types
└── README.md
MCP_AUTH_TOKEN
: Required authentication token for API access
POST /mcp
- Main MCP protocol endpointGET /health
- Health check endpoint
The server implements the MCP protocol and provides tools for:
- Thought Management: Fork, explore, and merge thought processes
- Goal Setting: Create hierarchical goals with progress tracking
- Task Execution: Break down goals into manageable tasks
- State Persistence: Save and restore cognitive states
- Skill Development: Create custom tools dynamically
All requests must include the Authorization
header with the value from MCP_AUTH_TOKEN
environment variable.