PI

PIF

Created 6 months ago

A self-modifying MCP server in ClojureScript enabling runtime tool creation and safe self-modification.

development documentation public metaprogramming AI

What is PIF?

A Personal Intelligence Framework (PIF), providing tools for file operations, structured reasoning, and journal-based documentation to support continuity and evolving human-AI collaboration across sessions.

Documentation

MCP-PIF-CLJS Documentation

Quick Start# Prerequisites

  • Node.js 16+
  • Java 11+ (for ClojureScript compiler)

Installation

  1. Clone and build:
    git clone
    cd MCP-PIF
    npm install
    npx shadow-cljs compile mcp-server
    
  2. Configure Claude Desktop: Edit your Claude Desktop config file:
  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
    {
      "mcpServers": {
        "mcp-pif-cljs": {
          "command": "node",
          "args": ["/full/path/to/MCP-PIF/out/mcp-server.js"]
        }
      }
    }
    
  1. Restart Claude Desktop

Available Tools

  • memory-store: Store key-value pairs in memory
  • memory-retrieve: Retrieve stored values
  • journal-recent: View recent activity journal
  • server-info: Get comprehensive server information
  • meta-evolve: Create new tools at runtime
  • execute-tool: Execute any tool by name

Safety Mechanisms

  1. Sandboxed Execution: Limited to arithmetic and string operations
  2. Code Validation: Blocks dangerous operations
  3. Namespace Protection: Core namespaces cannot be modified
  4. Activity Journal: All actions are logged and auditable
  5. Session-Only: Changes don't persist between restarts

License

MIT

Server Config

{
  "mcpServers": {
    "pif-server": {
      "command": "npx",
      "args": [
        "pif"
      ]
    }
  }
}

Links & Status

Repository: github.com
Hosted: No
Global: No
Official: No

Project Info

Hosted Featured
Created At: May 23, 2025
Updated At: Aug 07, 2025
Author: hungryrobot1
Category: community
License: MIT
Tags:
development documentation public