# Licensing

## Dual Licensing Model

**mcp-oracle-database** is available under two distinct licenses. You must choose **one** of the following based on your intended use.

---

## Option A — GNU General Public License v3 (GPLv3)

**For: Open-source, personal, academic, and non-commercial use**

This software is free to use, modify, and distribute under the terms of the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.html) (GPLv3), provided that:

- Your use is **non-commercial** (no revenue generation, no for-profit activity).
- You are **not** a government agency, department, contractor, or subcontractor acting on behalf of a government entity.
- Any derivative works or distributions you create are also released under GPLv3 (copyleft).
- You include a copy of the GPLv3 and prominent attribution to this project in any distribution.

The full text of the GNU General Public License v3.0 is included in the [`LICENSE`](./LICENSE) file in this repository and is also available at:
<https://www.gnu.org/licenses/gpl-3.0.html>

> **If you do not meet all of the conditions above, you may not use this software under GPLv3. You must obtain a commercial license (Option B).**

---

## Option B — Commercial & Government License

**For: Commercial use, for-profit use, and all government use**

Use in any of the following contexts **requires explicit written permission** from the copyright holder and may require a paid license:

- Any **commercial** activity (including SaaS products, internal business tooling, paid services, consulting, or any for-profit deployment).
- Use by or on behalf of **government entities** (federal, state, local, or international agencies, contractors, or subcontractors operating under government contract).

To obtain a commercial or government license, contact:

**Tanner Bleakley**
🌐 **<https://tannerb.dev>**

Please include the following in your inquiry:
- Your name and organization
- Intended use case and deployment environment
- Whether use is commercial, governmental, or both

The terms of the Commercial & Government License are detailed in [`COMMERCIAL_LICENSE.md`](./COMMERCIAL_LICENSE.md).

---

## Which License Applies to You?

| Use Case                                          | License Required        |
|---------------------------------------------------|-------------------------|
| Personal project (non-commercial)                 | GPLv3 (Option A)        |
| Academic research (non-commercial)                | GPLv3 (Option A)        |
| Open-source project (copyleft-compatible)         | GPLv3 (Option A)        |
| Commercial product or SaaS                        | Commercial (Option B)   |
| Internal business / enterprise tooling            | Commercial (Option B)   |
| Government agency or department                   | Commercial (Option B)   |
| Government contractor or subcontractor            | Commercial (Option B)   |
| Consulting or professional services (for profit)  | Commercial (Option B)   |

---

## Source File Headers

All source files in this repository include the following dual-licensing notice:

```
/*
 * mcp-oracle-database
 * Copyright (c) 2025 Tanner Bleakley
 *
 * Dual Licensed:
 *   - GNU General Public License v3.0 (GPLv3) for open-source, non-commercial use.
 *     See LICENSE or https://www.gnu.org/licenses/gpl-3.0.html
 *   - Commercial & Government License for all commercial and government use.
 *     See COMMERCIAL_LICENSE.md or contact https://tannerb.dev
 *
 * You may not use this file except in compliance with one of the above licenses.
 */
```

---

## Disclaimer

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
THE COPYRIGHT HOLDER MAKES NO WARRANTIES REGARDING MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE
LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY ARISING FROM THE USE OF THIS SOFTWARE.

---

*Copyright (c) 2025 Tanner Bleakley. All rights reserved.*
