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 initendpoint 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/listexposescodebase-retrieval. - When endpoint preflight fails (for example off VPN), MCP remains alive but returns an empty tool list for that session.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17bfeec0a93e919013a2a7687a2c1e427f903837c199fcc18dd969ed25350f87
|
|
| MD5 |
f1932defc06bcb4d19e45430ee01f3bb
|
|
| BLAKE2b-256 |
c4dce32986d62e38dc4eceb9547778cd9fdf5767d0fc0d390c0bc96eb9bf5332
|
Provenance
The following attestation bundles were made for sparkai_code_engine-0.0.1rc0.tar.gz:
Publisher:
release.yml on SparkAIUR/code-engine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sparkai_code_engine-0.0.1rc0.tar.gz -
Subject digest:
17bfeec0a93e919013a2a7687a2c1e427f903837c199fcc18dd969ed25350f87 - Sigstore transparency entry: 1335180833
- Sigstore integration time:
-
Permalink:
SparkAIUR/code-engine@222f11e256a9ceba7738d3bb1428c35d404e8cac -
Branch / Tag:
refs/tags/v0.0.1-rc0 - Owner: https://github.com/SparkAIUR
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@222f11e256a9ceba7738d3bb1428c35d404e8cac -
Trigger Event:
push
-
Statement type:
File details
Details for the file sparkai_code_engine-0.0.1rc0-py3-none-any.whl.
File metadata
- Download URL: sparkai_code_engine-0.0.1rc0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0a01ab69d533144c965d56ed08fd123eec1c31b4b957b9234a0073b50c7ebd4
|
|
| MD5 |
99cab542f85bc674c7f14e265046cd7f
|
|
| BLAKE2b-256 |
3a107b545b966706db611d9df772bd9e81d2a25f6711c7862aae65860c297dba
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sparkai_code_engine-0.0.1rc0-py3-none-any.whl -
Subject digest:
b0a01ab69d533144c965d56ed08fd123eec1c31b4b957b9234a0073b50c7ebd4 - Sigstore transparency entry: 1335180959
- Sigstore integration time:
-
Permalink:
SparkAIUR/code-engine@222f11e256a9ceba7738d3bb1428c35d404e8cac -
Branch / Tag:
refs/tags/v0.0.1-rc0 - Owner: https://github.com/SparkAIUR
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@222f11e256a9ceba7738d3bb1428c35d404e8cac -
Trigger Event:
push
-
Statement type: