Superpositional

MCP Interface

Connect AI coding tools to Superpositional via MCP for structured codebase context.

MCP (Model Context Protocol) is an open protocol that lets AI coding tools request context from external sources. Superpositional exposes an MCP server that your coding tools connect to directly. When your AI agent needs to understand your codebase, it queries Superpositional through MCP and gets back structured data — entities, relationships, search results, dependency graphs, and more.

This is the same indexed data that powers the Chat page, delivered directly to your AI coding tool.

MCP endpoint

Your organisation's MCP endpoint is:

https://mcp.superpositional.io

Authentication uses OAuth. When you first connect a tool, it opens a browser window for you to sign in with your Superpositional account (Google or GitHub). After authentication, the tool stores the token and reconnects automatically.

Connecting your tools

Cursor

Add the following to your Cursor MCP configuration (.cursor/mcp.json):

{
  "mcpServers": {
    "superpositional": {
      "url": "https://mcp.superpositional.io"
    }
  }
}

Restart Cursor. On first use, Cursor opens a browser window for OAuth authentication.

VS Code

Add the following to your VS Code MCP settings (.vscode/mcp.json):

{
  "servers": {
    "superpositional": {
      "url": "https://mcp.superpositional.io"
    }
  }
}

Reload VS Code. The MCP client handles the OAuth flow automatically.

Kiro

Add the following to your Kiro MCP configuration (.kiro/settings/mcp.json or ~/.kiro/settings/mcp.json):

{
  "mcpServers": {
    "superpositional": {
      "url": "https://mcp.superpositional.io"
    }
  }
}

Save and reload. Kiro handles the OAuth flow automatically.

Windsurf

Add the MCP server in Windsurf's MCP settings with the endpoint URL https://mcp.superpositional.io. Windsurf handles the OAuth flow on first connection.

Available tools

The MCP server exposes the following tools. Your AI agent discovers and uses these automatically — you don't need to call them directly.

Observe

ToolDescription
list_reposList all indexed repositories in your org with status and metadata
get_repoGet detailed status of a specific repository
list_documentsList generated documents (summaries, changelogs, reviews)
get_documentRetrieve a specific document by ID
get_staleness_reportsGet staleness findings for a document
list_issuesList issues tracked by Superpositional
get_issueGet details of a specific issue

Context

ToolDescription
searchSemantic code search across a repository
query_entitiesSearch for code entities (functions, classes, modules) by name
query_relationsTraverse the dependency graph for an entity
get_blast_radiusCompute what's affected by file changes
get_pr_changesInspect file changes in a pull request
search_claimsSearch structured claims extracted from documents
search_docsSearch document content

Q&A

ToolDescription
askAsk a natural-language question about a repository

Feedback

ToolDescription
review_planGet architecture and guardrail feedback on a plan before writing code
review_diffReview a code diff through guard agent lenses
review_specReview a spec document through guard agent lenses
get_actionable_issuesGet open issues that can be actioned as fixes

Diagnose

ToolDescription
diagnoseDescribe a fault or error and get root cause analysis

Steering

ToolDescription
list_guardsList all guards with their enabled/disabled status
toggle_guardEnable or disable a guard for your org
list_rulesList compiled rules for a repository

Act

ToolDescription
generate_documentTrigger document generation (summary, changelog, architecture doc)

How it works

After connecting, your AI tool queries Superpositional in the background when it needs codebase context. You don't need to trigger it manually — the tool decides when to use MCP based on the task.

All tools are scoped to your organisation. The MCP server only returns data from repositories your org has indexed. The connection is read-only from your tool's perspective — it pulls context from Superpositional, it doesn't push your editor state anywhere.

Troubleshooting

If your AI tool isn't picking up context from Superpositional:

  • Check the endpoint URL. It should be exactly https://mcp.superpositional.io.
  • Re-authenticate. If your OAuth token has expired, the tool should prompt you to sign in again. If it doesn't, remove the MCP server configuration and re-add it.
  • Verify your repos are indexed. MCP can only serve context for repositories that have been indexed. Check the Repos page in the app.
  • Check your network. The MCP endpoint requires internet access. If you're behind a corporate proxy, ensure mcp.superpositional.io is allowed.

On this page