Skip to content

Commit a795487

Browse files
committed
chore: switch from MIT to Elastic License v2
Blocks commercial use, hosting as SaaS, and selling the software. This license allows open source use but prevents others from monetizing the project without permission.
1 parent be99174 commit a795487

3 files changed

Lines changed: 135 additions & 63 deletions

File tree

LICENSE

Lines changed: 93 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,93 @@
1-
MIT License
2-
3-
Copyright (c) 2025 PatrickSys
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
Elastic License 2.0
2+
3+
URL: https://www.elastic.co/licensing/elastic-license
4+
5+
## Acceptance
6+
7+
By using the software, you agree to all of the terms and conditions below.
8+
9+
## Copyright License
10+
11+
The licensor grants you a non-exclusive, royalty-free, worldwide,
12+
non-sublicensable, non-transferable license to use, copy, distribute, make
13+
available, and prepare derivative works of the software, in each case subject to
14+
the limitations and conditions below.
15+
16+
## Limitations
17+
18+
You may not provide the software to third parties as a hosted or managed
19+
service, where the service provides users with access to any substantial set of
20+
the features or functionality of the software.
21+
22+
You may not move, change, disable, or circumvent the license key functionality
23+
in the software, and you may not remove or obscure any functionality in the
24+
software that is protected by the license key.
25+
26+
You may not alter, remove, or obscure any licensing, copyright, or other notices
27+
of the licensor in the software. Any use of the licensor's trademarks is subject
28+
to applicable law.
29+
30+
## Patents
31+
32+
The licensor grants you a license, under any patent claims the licensor can
33+
license, or becomes able to license, to make, have made, use, sell, offer for
34+
sale, import and have imported the software, in each case subject to the
35+
limitations and conditions in this license. This license does not cover any
36+
patent claims that you cause to be infringed by modifications or additions to
37+
the software. If you or your company make any written claim that the software
38+
infringes or contributes to infringement of any patent, your patent license for
39+
the software granted under these terms ends immediately. If your company makes
40+
such a claim, your patent license ends immediately for work on behalf of your
41+
company.
42+
43+
## Notices
44+
45+
You must ensure that anyone who gets a copy of any part of the software from you
46+
also gets a copy of these terms.
47+
48+
If you modify the software, you must include in any modified copies of the
49+
software prominent notices stating that you have modified the software.
50+
51+
## No Other Rights
52+
53+
These terms do not imply any licenses other than those expressly granted in
54+
these terms.
55+
56+
## Termination
57+
58+
If you use the software in violation of these terms, such use is not licensed,
59+
and your licenses will automatically terminate. If the licensor provides you
60+
with a notice of your violation, and you cease all violation of this license no
61+
later than 30 days after you receive that notice, your licenses will be
62+
reinstated retroactively. However, if you violate these terms after such
63+
reinstatement, any additional violation of these terms will cause your licenses
64+
to terminate automatically and permanently.
65+
66+
## No Liability
67+
68+
*As far as the law allows, the software comes as is, without any warranty or
69+
condition, and the licensor will not be liable to you for any damages arising
70+
out of these terms or the use or nature of the software, under any kind of
71+
legal claim.*
72+
73+
## Definitions
74+
75+
The **licensor** is the entity offering these terms, and the **software** is the
76+
software the licensor makes available under these terms, including any portion
77+
of it.
78+
79+
**you** refers to the individual or entity agreeing to these terms.
80+
81+
**your company** is any legal entity, sole proprietorship, or other kind of
82+
organization that you work for, plus all organizations that have control over,
83+
are under the control of, or are under common control with that
84+
organization. **control** means ownership of substantially all the assets of an
85+
entity, or the power to direct its management and policies by vote, contract, or
86+
otherwise. Control can be direct or indirect.
87+
88+
**your licenses** are all the licenses granted to you for the software under
89+
these terms.
90+
91+
**use** means anything you do with the software requiring one of your licenses.
92+
93+
**trademark** means trademarks, service marks, and similar rights.

README.md

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ claude mcp add codebase-context -- npx -y codebase-context
4646

4747
The server runs in two modes. Use stdio unless you need multiple clients connected at once:
4848

49-
| Mode | How it runs | When to use |
50-
| ---- | ----------- | ------------ |
51-
| **stdio** (default) | Process spawned by the client | One AI client talking to one or more repos |
52-
| **HTTP** | Long-lived server at `http://127.0.0.1:3100/mcp` | Multiple clients sharing one server |
49+
| Mode | How it runs | When to use |
50+
| ------------------- | ------------------------------------------------ | ------------------------------------------ |
51+
| **stdio** (default) | Process spawned by the client | One AI client talking to one or more repos |
52+
| **HTTP** | Long-lived server at `http://127.0.0.1:3100/mcp` | Multiple clients sharing one server |
5353

5454
Client support at a glance:
5555

56-
| Client | stdio | HTTP |
57-
| ------ | ----- | ---- |
58-
| Claude Code | Yes | No (stdio only) |
59-
| Claude Desktop | Yes | No |
60-
| Cursor | Yes | Yes — `.cursor/mcp.json` with `type: "http"` |
61-
| Windsurf | Yes | Not yet |
62-
| Codex | Yes | Yes — `--mcp-config` flag |
63-
| VS Code (Copilot) | Yes | No |
64-
| OpenCode | Yes | Not documented yet |
56+
| Client | stdio | HTTP |
57+
| ----------------- | ----- | -------------------------------------------- |
58+
| Claude Code | Yes | No (stdio only) |
59+
| Claude Desktop | Yes | No |
60+
| Cursor | Yes | Yes — `.cursor/mcp.json` with `type: "http"` |
61+
| Windsurf | Yes | Not yet |
62+
| Codex | Yes | Yes — `--mcp-config` flag |
63+
| VS Code (Copilot) | Yes | No |
64+
| OpenCode | Yes | Not documented yet |
6565

6666
Copy-pasteable templates: [`templates/mcp/stdio/.mcp.json`](./templates/mcp/stdio/.mcp.json) and [`templates/mcp/http/.mcp.json`](./templates/mcp/http/.mcp.json).
6767

@@ -106,28 +106,28 @@ Memory types: `convention`, `decision`, `gotcha`, `failure`. Confidence decay: c
106106

107107
## Tools
108108

109-
| Tool | What it does |
110-
| ---- | ------------ |
111-
| `search_codebase` | Hybrid search + decision card when `intent="edit"` |
112-
| `get_team_patterns` | Pattern frequencies, golden files, conflict detection |
113-
| `get_symbol_references` | Concrete references to a symbol (count + snippets) |
114-
| `remember` | Record a convention, decision, gotcha, or failure |
115-
| `get_memory` | Query team memory with confidence decay scoring |
116-
| `get_codebase_metadata` | Project structure, frameworks, dependencies |
117-
| `get_style_guide` | Style guide rules for the current project |
118-
| `detect_circular_dependencies` | Import cycles between files |
119-
| `refresh_index` | Full or incremental re-index + git memory extraction |
120-
| `get_indexing_status` | Progress and stats for the current index |
109+
| Tool | What it does |
110+
| ------------------------------ | ----------------------------------------------------- |
111+
| `search_codebase` | Hybrid search + decision card when `intent="edit"` |
112+
| `get_team_patterns` | Pattern frequencies, golden files, conflict detection |
113+
| `get_symbol_references` | Concrete references to a symbol (count + snippets) |
114+
| `remember` | Record a convention, decision, gotcha, or failure |
115+
| `get_memory` | Query team memory with confidence decay scoring |
116+
| `get_codebase_metadata` | Project structure, frameworks, dependencies |
117+
| `get_style_guide` | Style guide rules for the current project |
118+
| `detect_circular_dependencies` | Import cycles between files |
119+
| `refresh_index` | Full or incremental re-index + git memory extraction |
120+
| `get_indexing_status` | Progress and stats for the current index |
121121

122122
## Multi-project
123123

124124
One server, multiple repos. Three cases:
125125

126-
| Case | What happens |
127-
| ---- | ------------ |
128-
| One project | Routing is automatic |
129-
| Multiple projects, active project already set | Routes to the active project |
130-
| Multiple projects, ambiguous | Returns `selection_required` — retry with `project` |
126+
| Case | What happens |
127+
| --------------------------------------------- | --------------------------------------------------- |
128+
| One project | Routing is automatic |
129+
| Multiple projects, active project already set | Routes to the active project |
130+
| Multiple projects, ambiguous | Returns `selection_required` — retry with `project` |
131131

132132
`project` accepts a project root path, file path, `file://` URI, or relative subproject path (e.g. `apps/dashboard`).
133133

@@ -149,16 +149,16 @@ If you get `selection_required`, retry with one of the paths from `availableProj
149149

150150
## Configuration
151151

152-
| Variable | Default | Description |
153-
| -------- | ------- | ----------- |
154-
| `EMBEDDING_PROVIDER` | `transformers` | `openai` (fast, cloud) or `transformers` (local, private) |
155-
| `OPENAI_API_KEY` || Required only if using `openai` provider |
156-
| `CODEBASE_ROOT` || Bootstrap root for CLI and single-project MCP clients |
157-
| `CODEBASE_CONTEXT_DEBUG` || Set to `1` for verbose logging |
158-
| `EMBEDDING_MODEL` | `Xenova/bge-small-en-v1.5` | Local embedding model override |
159-
| `CODEBASE_CONTEXT_HTTP` || Set to `1` to start in HTTP mode (same as `--http` flag) |
160-
| `CODEBASE_CONTEXT_PORT` | `3100` | HTTP server port override (same as `--port`; ignored in stdio mode) |
161-
| `CODEBASE_CONTEXT_CONFIG_PATH` | `~/.codebase-context/config.json` | Override the server config file path |
152+
| Variable | Default | Description |
153+
| ------------------------------ | --------------------------------- | ------------------------------------------------------------------- |
154+
| `EMBEDDING_PROVIDER` | `transformers` | `openai` (fast, cloud) or `transformers` (local, private) |
155+
| `OPENAI_API_KEY` | | Required only if using `openai` provider |
156+
| `CODEBASE_ROOT` | | Bootstrap root for CLI and single-project MCP clients |
157+
| `CODEBASE_CONTEXT_DEBUG` | | Set to `1` for verbose logging |
158+
| `EMBEDDING_MODEL` | `Xenova/bge-small-en-v1.5` | Local embedding model override |
159+
| `CODEBASE_CONTEXT_HTTP` | | Set to `1` to start in HTTP mode (same as `--http` flag) |
160+
| `CODEBASE_CONTEXT_PORT` | `3100` | HTTP server port override (same as `--port`; ignored in stdio mode) |
161+
| `CODEBASE_CONTEXT_CONFIG_PATH` | `~/.codebase-context/config.json` | Override the server config file path |
162162

163163
## Performance
164164

@@ -217,4 +217,4 @@ These are the behaviors that make the most difference day-to-day. Copy, trim wha
217217

218218
## License
219219

220-
MIT
220+
Elastic-2.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"email": "rossellocolompatrick@gmail.com",
112112
"url": "https://github.com/PatrickSys"
113113
},
114-
"license": "MIT",
114+
"license": "Elastic-2.0",
115115
"scripts": {
116116
"sync:grammars": "node scripts/sync-grammars.mjs",
117117
"prebuild": "pnpm run sync:grammars",

0 commit comments

Comments
 (0)