Snipara MCP API

The MCP API from Snipara — 10 operation(s) for mcp.

GitHub OpenAPI

Operations 11

POST /v1/{project_id}/mcp Mcp Endpoint #
POST /v1/team/{team_slug}/mcp Team Mcp Endpoint #
GET /v1/{project_id}/context Get Context #
GET /v1/{project_id}/limits Get Limits #
GET /v1/{project_id}/stats Get Stats #
POST /v1/{project_id}/project-decisions/query-embedding Project Decision Query Embedding #
POST /v1/{project_id}/project-decisions/embeddings/backfill Backfill Project Decision Embeddings Endpoint #
POST /v1/{project_id}/reindex Reindex Project #
GET /v1/{project_id}/reindex/{job_id} Get Reindex Status #
GET /v1/{project_id}/mcp/sse Mcp Sse Endpoint #
POST /v1/{project_id}/mcp/sse Mcp Sse Endpoint Post #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/snipara-com:snipara-com-mcp-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

snipara-com-mcp-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snipara Server MCP API
  description: Hosted MCP endpoint for Snipara context-efficient documentation queries
  version: 2.0.2
tags:
- name: MCP
paths:
  /v1/{project_id}/mcp:
    post:
      tags:
      - MCP
      summary: Mcp Endpoint
      description: 'Execute a Snipara MCP tool.


        This endpoint validates the API key, checks usage limits,

        executes the requested tool, and tracks usage.


        Args:

        project_id: The project ID

        request: The MCP request with tool and parameters

        api_key: API key from X-API-Key header

        raw_request: The raw FastAPI request (for client IP)


        Returns:

        MCPResponse with result or error'
      operationId: mcp_endpoint_v1__project_id__mcp_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/team/{team_slug}/mcp:
    post:
      tags:
      - MCP
      summary: Team Mcp Endpoint
      description: 'Execute team-scoped MCP tools.


        This endpoint only allows snipara_multi_project_query with team MCP auth.'
      operationId: team_mcp_endpoint_v1_team__team_slug__mcp_post
      parameters:
      - name: team_slug
        in: path
        required: true
        schema:
          type: string
          title: Team Slug
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MCPResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/context:
    get:
      tags:
      - MCP
      summary: Get Context
      description: 'Get the current session context for a project.


        Args:

        project_id: The project ID

        api_key: API key from X-API-Key header


        Returns:

        Current session context'
      operationId: get_context_v1__project_id__context_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/limits:
    get:
      tags:
      - MCP
      summary: Get Limits
      description: 'Get current usage limits for a project.


        Args:

        project_id: The project ID

        api_key: API key from X-API-Key header


        Returns:

        Current usage and limits'
      operationId: get_limits_v1__project_id__limits_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitsInfo'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/stats:
    get:
      tags:
      - MCP
      summary: Get Stats
      description: 'Get usage statistics for a project.


        Args:

        project_id: The project ID

        api_key: API key from X-API-Key header

        days: Number of days to look back (default: 30, max: 365)


        Returns:

        Usage statistics'
      operationId: get_stats_v1__project_id__stats_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: days
        in: query
        required: false
        schema:
          type: integer
          maximum: 365
          minimum: 1
          description: Number of days to look back
          default: 30
          title: Days
        description: Number of days to look back
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/project-decisions/query-embedding:
    post:
      tags:
      - MCP
      summary: Project Decision Query Embedding
      description: 'Generate one 1024D embedding for web-side ProjectDecision KNN retrieval.


        This endpoint is server-to-server only. It intentionally does not expose

        generic embedding generation through public API-key authentication.'
      operationId: project_decision_query_embedding_v1__project_id__project_decisions_query_embedding_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-Internal-Secret
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Internal-Secret
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectDecisionQueryEmbeddingRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/project-decisions/embeddings/backfill:
    post:
      tags:
      - MCP
      summary: Backfill Project Decision Embeddings Endpoint
      description: 'Backfill missing ProjectDecision embeddings in bounded batches.


        This is intentionally separate from document reindexing because decisions

        are product truth, not document chunks, and use a dedicated additive column.'
      operationId: backfill_project_decision_embeddings_endpoint_v1__project_id__project_decisions_embeddings_backfill_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-Internal-Secret
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Internal-Secret
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ProjectDecisionEmbeddingBackfillRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/reindex:
    post:
      tags:
      - MCP
      summary: Reindex Project
      description: 'Trigger async re-indexing of documents in a project.


        This creates an index job that processes documents in the background.

        The endpoint returns immediately with a job ID that can be used to

        check progress via GET /v1/{project_id}/reindex/{job_id}.


        Index modes:

        - incremental (default): Only index documents that don''t have chunks yet

        - full: Re-index all documents (deletes existing chunks first)


        Supports two authentication methods:

        1. X-API-Key header (normal API key authentication)

        2. X-Internal-Secret header (server-to-server authentication)


        Args:

        project_id: The project ID or slug

        mode: Index mode - "incremental" or "full"

        kind: Index kind - "doc" or "code"

        x_api_key: API key from X-API-Key header (optional)

        x_internal_secret: Internal secret for server-to-server calls (optional)


        Returns:

        Job info including job_id, status, index_mode, and status_url for polling'
      operationId: reindex_project_v1__project_id__reindex_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: mode
        in: query
        required: false
        schema:
          type: string
          pattern: ^(incremental|full)$
          description: 'Index mode: ''incremental'' (only unindexed docs) or ''full'' (all docs)'
          default: incremental
          title: Mode
        description: 'Index mode: ''incremental'' (only unindexed docs) or ''full'' (all docs)'
      - name: kind
        in: query
        required: false
        schema:
          type: string
          pattern: ^(doc|code)$
          description: 'Index kind: ''doc'' for document chunks, ''code'' for code graph indexing'
          default: doc
          title: Kind
        description: 'Index kind: ''doc'' for document chunks, ''code'' for code graph indexing'
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: X-Internal-Secret
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Internal-Secret
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/reindex/{job_id}:
    get:
      tags:
      - MCP
      summary: Get Reindex Status
      description: 'Get the status of an indexing job.


        Use this endpoint to poll for job completion after triggering

        a reindex via POST /v1/{project_id}/reindex.


        Args:

        project_id: The project ID or slug

        job_id: The job ID returned from the POST endpoint

        x_api_key: API key from X-API-Key header (optional)

        x_internal_secret: Internal secret for server-to-server calls (optional)


        Returns:

        Job status including progress, documents processed, chunks created, etc.'
      operationId: get_reindex_status_v1__project_id__reindex__job_id__get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: job_id
        in: path
        required: true
        schema:
          type: string
          title: Job Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: X-Internal-Secret
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Internal-Secret
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/{project_id}/mcp/sse:
    get:
      tags:
      - MCP
      summary: Mcp Sse Endpoint
      description: 'Execute a Snipara MCP tool via Server-Sent Events (SSE).


        This endpoint is designed for Continue.dev and other clients that

        support SSE transport. It streams the tool execution result.


        Args:

        project_id: The project ID

        api_key: API key from X-API-Key header

        tool: Tool name (e.g., rlm_ask, rlm_context_query)

        params: JSON-encoded parameters


        Returns:

        SSE stream with tool execution events'
      operationId: mcp_sse_endpoint_v1__project_id__mcp_sse_get
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: tool
        in: query
        required: true
        schema:
          type: string
          description: Tool name to execute
          title: Tool
        description: Tool name to execute
      - name: params
        in: query
        required: false
        schema:
          type: string
          description: JSON-encoded parameters
          default: '{}'
          title: Params
        description: JSON-encoded parameters
      - name: X-Snipara-Session-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Snipara-Session-Id
      - name: Mcp-Session-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Mcp-Session-Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - MCP
      summary: Mcp Sse Endpoint Post
      description: 'Execute a Snipara MCP tool via Server-Sent Events (SSE) using POST.


        Alternative to GET for clients that prefer POST requests with JSON body.


        Args:

        project_id: The project ID

        request: The MCP request with tool and parameters

        api_key: API key from X-API-Key header


        Returns:

        SSE stream with tool execution events'
      operationId: mcp_sse_endpoint_post_v1__project_id__mcp_sse_post
      parameters:
      - name: project_id
        in: path
        required: true
        schema:
          type: string
          title: Project Id
      - name: X-Snipara-Session-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Snipara-Session-Id
      - name: Mcp-Session-Id
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Mcp-Session-Id
      - name: X-API-Key
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: X-Api-Key
      - name: authorization
        in: header
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Authorization
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MCPRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    MCPRequest:
      properties:
        tool:
          $ref: '#/components/schemas/ToolName'
          description: The Snipara tool to execute
        params:
          additionalProperties: true
          type: object
          title: Params
          description: Tool parameters
      type: object
      required:
      - tool
      title: MCPRequest
      description: MCP tool execution request.
    MCPResponse:
      properties:
        success:
          type: boolean
          title: Success
          description: Whether the request was successful
        result:
          anyOf:
          - {}
          - type: 'null'
          title: Result
          description: Tool result data
        error:
          anyOf:
          - type: string
          - type: 'null'
          title: Error
          description: Error message if failed
        usage:
          $ref: '#/components/schemas/UsageInfo'
          description: Usage information
      type: object
      required:
      - success
      - usage
      title: MCPResponse
      description: MCP tool execution response.
    ProjectDecisionEmbeddingBackfillRequest:
      properties:
        limit:
          type: integer
          maximum: 500.0
          minimum: 1.0
          title: Limit
          default: 100
        dry_run:
          type: boolean
          title: Dry Run
          default: false
      type: object
      title: ProjectDecisionEmbeddingBackfillRequest
      description: Internal request for bounded ProjectDecision embedding backfills.
    LimitsInfo:
      properties:
        current:
          type: integer
          title: Current
          description: Current usage count
        max:
          type: integer
          title: Max
          description: Maximum allowed (-1 for unlimited)
        exceeded:
          type: boolean
          title: Exceeded
          description: Whether limits are exceeded
        resets_at:
          anyOf:
          - type: string
            format: date-time
          - type: 'null'
          title: Resets At
          description: When limits reset
      type: object
      required:
      - current
      - max
      - exceeded
      title: LimitsInfo
      description: Usage limits information.
    ProjectDecisionQueryEmbeddingRequest:
      properties:
        text:
          type: string
          maxLength: 8000
          minLength: 1
          title: Text
        timeout_seconds:
          type: number
          maximum: 30.0
          exclusiveMinimum: 0.0
          title: Timeout Seconds
          default: 5.0
      type: object
      required:
      - text
      title: ProjectDecisionQueryEmbeddingRequest
      description: Internal request for one ProjectDecision semantic-retrieval query embedding.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UsageInfo:
      properties:
        input_tokens:
          type: integer
          title: Input Tokens
          description: Input tokens used
          default: 0
        output_tokens:
          type: integer
          title: Output Tokens
          description: Output tokens used
          default: 0
        latency_ms:
          type: integer
          title: Latency Ms
          description: Request latency in milliseconds
      type: object
      required:
      - latency_ms
      title: UsageInfo
      description: Usage information for a request.
    ToolName:
      type: string
      enum:
      - rlm_ask
      - rlm_search
      - rlm_inject
      - rlm_context
      - rlm_clear_context
      - rlm_stats
      - rlm_help
      - rlm_sections
      - rlm_read
      - rlm_context_query
      - rlm_code_callers
      - rlm_code_imports
      - rlm_code_neighbors
      - rlm_code_shortest_path
      - rlm_code_symbol_card
      - rlm_code_impact
      - rlm_local_code_overlay_upload
      - rlm_local_code_overlay_status
      - rlm_local_code_overlay_get
      - rlm_local_code_overlay_retire
      - rlm_decompose
      - rlm_multi_query
      - rlm_multi_project_query
      - rlm_plan
      - rlm_store_summary
      - rlm_get_summaries
      - rlm_delete_summary
      - rlm_shared_context
      - rlm_list_templates
      - rlm_get_template
      - rlm_list_collections
      - rlm_create_collection
      - rlm_get_collection_documents
      - rlm_link_collection
      - rlm_unlink_collection
      - rlm_upload_shared_document
      - rlm_list_business_collections
      - rlm_ensure_business_collection
      - rlm_upload_business_document
      - rlm_business_document_status
      - rlm_load_business_document
      - rlm_list_client_projects
      - rlm_create_client_project
      - rlm_remember
      - rlm_remember_if_novel
      - rlm_end_of_task_commit
      - rlm_remember_bulk
      - rlm_recall
      - rlm_resume_context
      - snipara_collaboration_status
      - snipara_collaboration_start
      - snipara_collaboration_claim
      - snipara_collaboration_release
      - snipara_collaboration_guard
      - rlm_memories
      - rlm_memory_invalidate
      - rlm_memory_supersede
      - rlm_memory_review_queue
      - rlm_memory_resolve_queue_item
      - rlm_forget
      - rlm_journal_append
      - rlm_journal_get
      - rlm_journal_summarize
      - rlm_upload_document
      - rlm_sync_documents
      - rlm_document_tombstones
      - rlm_svg_bundle_ingest
      - rlm_settings
      - rlm_request_access
      - rlm_load_document
      - rlm_load_project
      - rlm_orchestrate
      - rlm_repl_context
      - rlm_get_chunk
      - rlm_decision_create
      - rlm_decision_query
      - rlm_decision_review_queue
      - rlm_decision_review_plan
      - rlm_decision_review_apply
      - rlm_inbox_review_queue
      - rlm_inbox_review_plan
      - rlm_inbox_review_apply
      - rlm_decision_supersede
      - rlm_index_health
      - rlm_index_recommendations
      - rlm_reindex
      - rlm_search_analytics
      - rlm_query_trends
      - rlm_adaptive_routing_approve
      - rlm_memory_compact
      - rlm_memory_health
      - rlm_memory_restore
      - rlm_memory_outcome
      - rlm_memory_retirement_candidates
      - rlm_session_memories
      - rlm_session_bootstrap_status
      - rlm_memory_attach_source
      - rlm_memory_verify
      - rlm_owner_profile_get
      - rlm_owner_profile_update
      - rlm_tenant_profile_create
      - rlm_tenant_profile_get
      title: ToolName
      description: 'Available Snipara tools.


        The original public tool IDs used the ``rlm_`` prefix. New clients may call

        the equivalent ``snipara_`` IDs; the enum canonicalizes them to the legacy

        handler values so existing routing, permissions, analytics, and tests keep

        working during the migration.'
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError