Skip to main content

SparkAI Code Engine CLI and MCP bridge (`sparkle`).

Project description

sparkle

sparkle is the local CLI and MCP bridge for Code Engine.

Current implementation includes:

  • Packaging for PyPI distribution as sparkai-code-engine.
  • sparkle init endpoint bootstrap and OAuth login flow.
  • Context profiles for multiple accounts/environments.
  • OAuth login with Keycloak (PKCE) and token import fallback.
  • Local credential persistence with refresh-token reauth support.
  • Workspace registration from local git repo paths with repo auto-binding.
  • Local overlay indexing with saved-file freshness tracking.
  • Sync batch upload/commit flow to backend.
  • Retrieval command that merges local overlay candidates with /v1/search/code.
  • MCP stdio server exposing codebase-retrieval.

Install from PyPI:

uv tool install sparkai-code-engine

Basic bootstrap:

sparkle init
sparkle context list
sparkle set context default
sparkle --context staging whoami

Common runtime commands:

sparkle workspace add /path/to/repo --sync
sparkle retrieve --directory-path /path/to/repo --query "where is keycloak auth"
sparkle mcp --auto-workspace
sparkle --mcp --mcp-auto-workspace

MCP behavior:

  • When endpoint preflight succeeds, tools/list exposes codebase-retrieval.
  • When endpoint preflight fails (for example off VPN), MCP remains alive but returns an empty tool list for that session.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparkai_code_engine-0.0.1rc0.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparkai_code_engine-0.0.1rc0-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file sparkai_code_engine-0.0.1rc0.tar.gz.

File metadata

  • Download URL: sparkai_code_engine-0.0.1rc0.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sparkai_code_engine-0.0.1rc0.tar.gz
Algorithm Hash digest
SHA256 17bfeec0a93e919013a2a7687a2c1e427f903837c199fcc18dd969ed25350f87
MD5 f1932defc06bcb4d19e45430ee01f3bb
BLAKE2b-256 c4dce32986d62e38dc4eceb9547778cd9fdf5767d0fc0d390c0bc96eb9bf5332

See more details on using hashes here.

Provenance

The following attestation bundles were made for sparkai_code_engine-0.0.1rc0.tar.gz:

Publisher: release.yml on SparkAIUR/code-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sparkai_code_engine-0.0.1rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for sparkai_code_engine-0.0.1rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 b0a01ab69d533144c965d56ed08fd123eec1c31b4b957b9234a0073b50c7ebd4
MD5 99cab542f85bc674c7f14e265046cd7f
BLAKE2b-256 3a107b545b966706db611d9df772bd9e81d2a25f6711c7862aae65860c297dba

See more details on using hashes here.

Provenance

The following attestation bundles were made for sparkai_code_engine-0.0.1rc0-py3-none-any.whl:

Publisher: release.yml on SparkAIUR/code-engine

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page