This project provides TypeScript packages for o1js Model Context Protocol (MCP) server.
This is a monorepo containing multiple packages:
packages/ingestion
: A package for data ingestion from various sourcespackages/mcp-o1js
: The core library for interacting with MCP using O1JSpackages/vector-middleware
: An API gateway for interacting with vector databases
- Node.js
- Npm
To set up the project, run:
npm install
To build all packages, run:
npm build
packages/
├── ingestion/ # Data ingestion package
│ └── src/
│ ├── index.ts # Entry point
│ ├── config.ts # Configuration
│ ├── ingestors/ # Data ingestors
│ │ ├── discord.ts # Discord chat ingestion
│ │ ├── markdown.ts # Markdown ingestion
│ │ └── typescript.ts # TypeScript code ingestion
│ ├── embeddings/ # Embeddings generation
│ │ └── openai.ts # OpenAI embedding service
│ └── storage/ # Vector storage
│ └── qdrant.ts # Qdrant vector database adapter
├── mcp-server-o1js/ # MCP server package for o1js
│ └── src/
│ └── index.ts # Entry point
└── vector-middleware/ # API Gateway for vector search
└── src/
├── index.ts # Entry point
├── qdrant.ts # Qdrant integration
├── embedding.ts # Embedding service
├── ratelimit.ts # Rate limiting middleware
└── config.ts # Configuration