Skip to content

Align MCP server with alias-first indices#39

Draft
kapral18 wants to merge 1 commit intoelastic:mainfrom
kapral18:chore/alias-first-architecture
Draft

Align MCP server with alias-first indices#39
kapral18 wants to merge 1 commit intoelastic:mainfrom
kapral18:chore/alias-first-architecture

Conversation

@kapral18
Copy link
Collaborator

Closes #35

Sibling PR (Indexer): elastic/semantic-code-search-indexer#149

Summary

  • Treat ELASTICSEARCH_INDEX as a stable alias name.
  • Discover available indices via *_locations aliases (no *-repo assumptions).
  • Add an integration test that asserts the alias-first contract against a live Elasticsearch.

Model (locations-first + alias-first)

<alias>_locations  (file-level docs: filePath/startLine/...)  --(chunk_id)-->  <alias>  (chunk docs)

Test Plan

  • npm run lint (pass)
  • npm run build (pass)
  • npm test (pass)
  • npm run test:integration (pass)

Made with Cursor

- Discover indices via *_locations aliases and strip suffix to base alias
- Update docs/tooling language to use <alias> + <alias>_locations
- Add integration test asserting alias-first contract against live Elasticsearch

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: align MCP server with alias-first architecture

1 participant