discrete-structures
Comprehensive tools for discrete mathematics: logic, algorithms, number theory, cryptography
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"discrete-structures-mcp": {
"args": [
"discrete-structures-mcp@0.1.4"
],
"command": "uvx"
}
}
}
可用工具 (5 个)
该服务在 MCP 协议中暴露的工具,AI 可按需调用
tavily_search 14 个参数 需填 1 项
Search the web for current information on any topic. Use for news, facts, or data beyond your knowledge cutoff. Returns snippets and source URLs.
必填参数:query
tavily_extract 6 个参数 需填 1 项
Extract content from URLs. Returns raw page content in markdown or text format.
必填参数:urls
tavily_crawl 11 个参数 需填 1 项
Crawl a website starting from a URL. Extracts content from pages with configurable depth and breadth.
必填参数:url
tavily_map 8 个参数 需填 1 项
Map a website's structure. Returns a list of URLs found starting from the base URL.
必填参数:url
tavily_research 2 个参数 需填 1 项
Perform comprehensive research on a given topic or question. Use this tool when you need to gather information from multiple sources to answer a question or complete a task. Returns a detailed response based on the research findings.
必填参数:input
服务介绍
Discrete Structures AI Learning Platform
An interactive web-based educational platform for learning discrete structures through visualizations, AI-powered assistance, and hands-on tools.
# Features
- Algorithm Visualizer: Step-by-step animations of sorting and searching algorithms
- Cryptography Playground: Explore classical and modern encryption techniques
- Logic Calculator: Boolean algebra, truth tables, and expression simplification
- Number Theory Explorer: Prime numbers, GCD/LCM, modular arithmetic tools
- AI Chatbot Assistant: Get help with discrete structures concepts via AI
# Tech Stack
- Backend: Python 3.11+, FastAPI, OpenAI Agents SDK, MCP Protocol
- Frontend: React 18, TypeScript, Vite, TailwindCSS, Framer Motion
- Package Management: uv (Python), npm (JavaScript)
# Quick Start
# # Prerequisites
- Python 3.11 or higher
- Node.js 18 or higher
- uv package manager (
pip install uv) - OpenAI API key
# # Backend Setup
cd backend
uv sync
copy .env.example .env
# Edit .env and add your OPENAI_API_KEY
uv run uvicorn src.main:app - -reload
Backend runs on http://localhost:8000
# # Frontend Setup
cd frontend
npm install
copy .env.example .env
npm run dev
Frontend runs on http://localhost:5173
# Project Structure
discrete-structures-ai-platform/
├── backend/ # FastAPI backend + MCP server
│ ├── src/
│ │ ├── api/ # API endpoints
│ │ ├── agents/ # OpenAI agents
│ │ ├── mcp/ # MCP tools
│ │ ├── models/ # Pydantic models
│ │ └── services/ # Business logic
│ └── tests/ # Backend tests
├── frontend/ # React frontend
│ ├── src/
│ │ ├── components/ # React components
│ │ ├── pages/ # Page components
│ │ ├── services/ # API clients
│ │ ├── hooks/ # Custom hooks
│ │ └── types/ # TypeScript types
│ └── public/ # Static assets
└── specs/ # Project specifications
# Development
This project follows a phased implementation approach:
- Phase 1: Project Setup ✅
- Phase 2: Foundational Infrastructure ✅
- Phase 3: Landing Page ✅
- Phase 4+: Feature implementation (in progress)
See specs/001-ds-ai-platform/tasks.md for detailed task breakdown.
# License
Educational use only.