TutorX-MCP / docs /API.md
Meet Patel
switch mcp server stdio to sse.
def69a7
|
raw
history blame
3.24 kB

TutorX MCP API Documentation

Overview

The TutorX MCP API provides a comprehensive set of endpoints for educational tools and resources. The API follows RESTful principles and uses JSON for request/response bodies.

Base URL

http://127.0.0.1:8000

Authentication

Currently, the API does not require authentication. This will be implemented in future versions.

Endpoints

Health Check

GET /health

Returns the health status of the server.

Response

{
    "status": "healthy",
    "timestamp": "2024-03-14T12:00:00.000Z",
    "server": "TutorX MCP",
    "version": "1.0.0"
}

Core Features

Assess Skill

POST /mcp/tools/assess_skill

Assesses a student's skill level on a specific concept.

Request Body

{
    "student_id": "string",
    "concept_id": "string"
}

Response

{
    "student_id": "string",
    "concept_id": "string",
    "skill_level": 0.75,
    "confidence": 0.85,
    "recommendations": [
        "Practice more complex problems",
        "Review related concept: algebra_linear_equations"
    ],
    "timestamp": "2024-03-14T12:00:00.000Z"
}

Get Concept Graph

GET /mcp/resources/concept-graph://

Returns the full knowledge concept graph.

Response

{
    "nodes": [
        {
            "id": "math_algebra_basics",
            "name": "Algebra Basics",
            "difficulty": 1
        }
    ],
    "edges": [
        {
            "from": "math_algebra_basics",
            "to": "math_algebra_linear_equations",
            "weight": 1.0
        }
    ]
}

Get Learning Path

GET /mcp/resources/learning-path://{student_id}

Returns a personalized learning path for a student.

Response

{
    "student_id": "string",
    "current_concepts": ["math_algebra_linear_equations"],
    "recommended_next": ["math_algebra_quadratic_equations"],
    "mastered": ["math_algebra_basics"],
    "estimated_completion_time": "2 weeks"
}

Generate Quiz

POST /mcp/tools/generate_quiz

Generates a quiz based on specified concepts and difficulty.

Request Body

{
    "concept_ids": ["string"],
    "difficulty": 2
}

Response

{
    "quiz_id": "string",
    "concept_ids": ["string"],
    "difficulty": 2,
    "questions": [
        {
            "id": "string",
            "text": "string",
            "type": "string",
            "answer": "string",
            "solution_steps": ["string"]
        }
    ]
}

Error Responses

The API uses standard HTTP status codes and returns error details in the response body:

{
    "error": "Error message",
    "timestamp": "2024-03-14T12:00:00.000Z"
}

Common status codes:

  • 200: Success
  • 400: Bad Request
  • 404: Not Found
  • 500: Internal Server Error

Rate Limiting

Currently, there are no rate limits implemented. This will be added in future versions.

Versioning

The API version is included in the response headers and health check endpoint. Future versions will support versioning through the URL path.

Support

For support or to report issues, please contact the development team or create an issue in the project repository.