FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
c15r
c15rContextual
Unlisted
Like
1
Contextual
Home
Code
3
backend
3
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
1
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.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/31/2025
Viewing readonly version of main branch: v1
View latest version
README.md

MCP Cognitive Tools Server

A Model Context Protocol (MCP) server that provides cognitive tools for thought processes, goal tracking, and dynamic skill creation.

Features

Core Cognitive Tools

  • 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

Dynamic Skills System

  • Skill Creation: Write and store reusable scripts as "skills"
  • Skill Execution: Dynamically invoke created skills as tools
  • Skill Management: List, update, and delete skills

Security

  • Header-based authentication using environment variable
  • Secure skill execution with sandboxing

Project Structure

├── 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

Environment Variables

  • MCP_AUTH_TOKEN: Required authentication token for API access

API Endpoints

  • POST /mcp - Main MCP protocol endpoint
  • GET /health - Health check endpoint

Usage

The server implements the MCP protocol and provides tools for:

  1. Thought Management: Fork, explore, and merge thought processes
  2. Goal Setting: Create hierarchical goals with progress tracking
  3. Task Execution: Break down goals into manageable tasks
  4. State Persistence: Save and restore cognitive states
  5. Skill Development: Create custom tools dynamically

Authentication

All requests must include the Authorization header with the value from MCP_AUTH_TOKEN environment variable.

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.