Metadata-Version: 2.5
Name: delinea-mcp
Version: 2.0.0rc1
Summary: MCP server for the Delinea Secret Server and Platform APIs
Project-URL: Homepage, https://github.com/DelineaXPM/delinea-mcp
Project-URL: Documentation, https://github.com/DelineaXPM/delinea-mcp#readme
Project-URL: Issues, https://github.com/DelineaXPM/delinea-mcp/issues
Project-URL: Changelog, https://github.com/DelineaXPM/delinea-mcp/blob/main/CHANGELOG.md
Author: Delinea
Maintainer: Gal Diskin
License-Expression: MIT
License-File: LICENSE
Keywords: claude,delinea,mcp,model-context-protocol,pam,secret-server
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: System Administrators
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Security
Requires-Python: >=3.13
Requires-Dist: fastapi>=0.117.1
Requires-Dist: httpx-sse>=0.4.1
Requires-Dist: httpx>=0.28.1
Requires-Dist: joserfc>=1.7.6
Requires-Dist: mcp<3,>=2.2.0
Requires-Dist: requests>=2.32.4
Requires-Dist: truststore>=0.10.5
Requires-Dist: uvicorn>=0.35.0
Provides-Extra: strongdm
Requires-Dist: strongdm>=17.8.0; extra == 'strongdm'
Description-Content-Type: text/markdown

# DelineaMCP

**MCP server for the Delinea Secret Server and Platform APIs**

[![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

---

## News

- **2.0.0** — Claude Code plugin, `uvx delinea-mcp` from PyPI, masked
  passwords (plaintext reveal off by default), private credential-script handoff,
  and paging on every list tool. Breaking changes are listed in the
  [release notes](CHANGELOG.md).
- **11 Aug 2026** — MCP Protocol v2 (spec revision 2026-07-28, streamable HTTP)
  and experimental StrongDM API support are here — see the
  [release notes](CHANGELOG.md).
- **11 Aug 2026** — We're the original providers of the "no secret visibility
  to the LLM" vault use case — beware of copycats ;)

---

## Features

- Automatic authentication against Secret Server
- Extensive Secret Server tool set for managing folders, secrets, users, groups and roles.
  Includes inbox and access request helpers and coding agent utilities.
- ChatGPT compatibility tools (`search` and `fetch`) for controlled AI interactions.
- Optional Delinea Platform user management tools
- Password fields masked in every result; plaintext only after the user
  approves a server-sent confirmation prompt
- StrongDM, a Delinea company, will be supported in a future release. An
  experimental preview is available behind `strongdm_enabled` (see
  [docs/strongdm.md](docs/strongdm.md))
- Streamable HTTP (`/mcp`), legacy Server-Sent Events (`/mcp/sse`) and STDIO transports
- OAuth 2.0 with dynamic client registration per the MCP specification
- TLS support for secure connections
- Ready-to-run Docker image and development server entry point
- Tested with Claude Code, ChatGPT, Claude Desktop, remote Claude connector, VSCode Copilot and openwebui

## Installation

### Claude Code plugin

The [`plugins/delinea`](plugins/delinea) plugin bundles this server with two
skills, **no-secret-visibility** and **building-reports**. Claude Code asks
for your Secret Server URL and credentials when you enable it, and stores
the password in your operating system's credential store. See the
[plugin README](plugins/delinea/README.md).

### From PyPI

With [uv](https://docs.astral.sh/uv/getting-started/installation/)
installed, run the server without cloning anything:

```bash
DELINEA_BASE_URL=https://example.secretservercloud.com \
DELINEA_USERNAME=<username> DELINEA_PASSWORD=<password> \
uvx delinea-mcp
```

Or install it with `pip install delinea-mcp` and run `delinea-mcp`.

### From source

- [Install uv](https://docs.astral.sh/uv/getting-started/installation/)
- Initialize project: `uv sync --frozen`
- Use `uv run server.py --config config.json`

### Reusable skills

The skills in [`plugins/delinea/skills`](plugins/delinea/skills) also work
on their own with any Delinea MCP connection: copy a skill folder into
`~/.claude/skills/`, or zip it and upload it under **Customize > Skills** in
Claude.

## Configuration

Secrets such as passwords always come from environment variables:
`DELINEA_PASSWORD`, plus `PLATFORM_SERVICE_PASSWORD` for the Platform tools.

Non-secret parameters belong in `config.json`, found through `--config`, the
`DELINEA_MCP_CONFIG` environment variable, or `./config.json`. Connection
settings missing from the file fall back to the environment variables
`DELINEA_USERNAME`, `DELINEA_BASE_URL`, `PLATFORM_HOSTNAME`,
`PLATFORM_SERVICE_ACCOUNT` and `PLATFORM_TENANT_ID`, so the server also runs
with no config file at all.

```json
{
  "delinea_username": "<username>",
  "delinea_base_url": "https://your-secret-server/SecretServer",
  "platform_hostname": "<tenant>.delinea.app",
  "platform_service_account": "<service_account>",
  "platform_tenant_id": "<tenant_id>",
  "auth_mode": "none",
  "transport_mode": "stdio",
  "chatgpt_disable_scope_checks": false,
  "port": 8000,
  "debug": false,
  "external_hostname": null,
  "allowed_origins": [],
  "max_result_bytes": null,
  "ssl_keyfile": null,
  "ssl_certfile": null,
  "registration_psk": null,
  "jwt_key_path": ".cache/jwt.json",
  "oauth_db_path": ".cache/oauth.db",
  "enabled_tools": [],
  "secret_reveal_mode": "disabled",
  "script_delivery": "auto"
}
```

For Secret Server Cloud simply use the cloud URL without `/SecretServer`.
Specify `ssl_keyfile` and `ssl_certfile` to enable HTTPS.
For Let's Encrypt, use the `privkey.pem` and `fullchain.pem` files.

The configuration file supports the following keys:

- **delinea_username** - Secret Server username. Use a dedicated **Application Account**
  with permission to do the tasks you want; see [Secret Server account](#secret-server-account).
- **delinea_base_url** - Base URL of your Secret Server instance.
- **platform_hostname** - Platform tenant hostname, e.g. `<tenant>.delinea.app`
  (enables Platform tools). When set, the Secret Server session also signs in
  through the Platform, with `delinea_username` as the client ID.
- **platform_service_account** - Service account used with the Platform API.
- **platform_tenant_id** - Tenant ID for Platform API requests.
- **secret_reveal_mode** - Whether plaintext passwords can be shown, and how
  that's approved. `disabled` (default) never reveals plaintext and doesn't
  register `reveal_secret_field`. Enable it only on the user's explicit
  request: `elicit` asks the user through an MCP elicitation prompt for each
  reveal and refuses when the client can't show one; `client_approval`
  relies on the client's own tool-approval prompt. The
  `DELINEA_SECRET_REVEAL_MODE` environment variable sets the same value
  (`true`/`false` mean `elicit`/`disabled`) when the key isn't in
  `config.json`.
- **TLS trust** - Outbound HTTPS is verified against the operating system's
  certificate store, so TLS-inspecting networks and internal CAs work. Set
  the `DELINEA_TLS_TRUST=bundled` environment variable to use Python's
  bundled CA list instead.
- **script_delivery** - How the environment-variable tools hand over
  credentials: `auto` (default) uses local handoff files for `stdio` and
  returns scripts for `sse`; `file` or `inline` force one mode.
- **strongdm_enabled** - default `false`. Registers the experimental
  StrongDM preview tools. StrongDM, a Delinea company, will be fully
  supported in a future release.
- **strongdm_api_host** - StrongDM control plane (default `app.strongdm.com:443`;
  UK/EU variants available). Credentials come from `SDM_API_ACCESS_KEY` /
  `SDM_API_SECRET_KEY` env vars; see [docs/strongdm.md](docs/strongdm.md).
- **auth_mode** - Authentication mode (`none` or `oauth`). OAuth obviously doesn't work with stdio transport.
- **transport_mode** - `stdio` for command line or `sse` for HTTP. In `sse`
  mode the server exposes both the streamable HTTP endpoint at `/mcp`
  (current MCP transport, serves protocol revisions 2024-11-05 through
  2026-07-28) and the legacy HTTP+SSE endpoints at `/mcp/sse` + `/messages/`.
  Prefer `/mcp`: SDK-based clients cannot receive a tool result larger than
  1 MiB over `/mcp/sse` (see **max_result_bytes**).
- **streamable_http_stateless** - default `true`; run `/mcp` without server-side
  sessions (recommended for remote connectors). Set `false` to enable
  session-based operation with the standalone GET stream.
- **streamable_http_json_response** - default `true`; respond with plain JSON
  instead of SSE-framed responses on `/mcp`.
- **chatgpt_disable_scope_checks** - Skip scope validation on ChatGPT requests. Enable only if you encounter problems connecting to ChatGPT.
- **port** - Port for the HTTP server in `sse` mode.
- **debug** - Enable verbose logging.
- **external_hostname** - Hostname used when constructing OAuth token audiences and always accepted as a browser `Origin`. Don't add HTTP(S) prefix or port.
- **allowed_origins** - Extra browser origins allowed to call the MCP HTTP endpoints (`/mcp`, `/mcp/sse`, `/messages/`),
  e.g. `https://app.example.com`, or `https://app.example.com:*` for any port. Loopback origins and `external_hostname`
  are always allowed. A request carrying any other `Origin` header is answered with HTTP 403 (the DNS-rebinding
  protection the MCP spec requires); requests without an `Origin` header, i.e. every non-browser MCP client, are unaffected.
- **max_result_bytes** - Optional cap, in bytes, on a single tool result; default `null` (no cap). MCP SDK clients
  read `/mcp/sse` responses with a fixed 1 MiB event limit, so a larger result there (a big `run_report` or
  `execute_report`, a broad `search_secrets`) drops the client's whole session with an error that never mentions
  size. With a cap set, an oversized result is replaced by an `{"error": "Result too large: ..."}` payload asking
  the model to narrow the request. `/mcp` with the default `streamable_http_json_response` has no such limit
  (results of 16 MiB were tested), so set this only if clients use `/mcp/sse`; `524288` (512 KiB) is a safe value.
  The size is measured on the complete response, including the `structuredContent` copy some tools send, and an
  oversized exception message is truncated rather than replaced. Must be a whole number; fractions and negative
  values are rejected at startup. The cap applies to every transport.
- **ssl_keyfile** - Path to the SSL key for HTTPS. (eg `privkey.pem`)
- **ssl_certfile** - Path to the SSL certificate for HTTPS. (eg `fullchain.pem`)
- **registration_psk** - Pre-shared key required to register OAuth clients. You will need to type in this secret in your browser to approve OAuth connections.
- **jwt_key_path** - Location of the RSA key pair used for OAuth tokens. Defaults to `.cache/jwt.json`. autogenerated if doesn't exist.
- **oauth_db_path** - Path to the OAuth database file. Defaults to `.cache/oauth.db`. autogenerated if doesn't exist.
- **enabled_tools** - List of tool names to register. An empty list enables
  all tools. When the key isn't set, the comma-separated
  `DELINEA_ENABLED_TOOLS` environment variable is used instead (`all` = every
  tool). It is highly recommended to enable tools selectively per use case or
  task. See `docs/` folder for some examples.
- **search_objects** - Allowed object types for the `search` tool.
  Defaults to `["secret"]` but can include `user`, `folder`, `group` and `role`.
- **fetch_objects** - Allowed object types for the `fetch` tool.
  Defaults to `["secret"]` but can include the same values as `search_objects`.

### Secret Server account

The server signs in to Secret Server with the `/oauth2/token` password grant
using `delinea_username` and `DELINEA_PASSWORD`. Create a dedicated
**Application Account** for it (a Secret Server user with the Application
Account flag) rather than reusing a person's login:

- Secret Server 12.1 and later turn on **Prevent direct API authentication** by
  default for new installations, on-premises and Cloud. With it on, the
  password grant is rejected for interactive user accounts, so the server
  can't get a token and reports a `Secret Server sign-in ... failed` error
  that names this setting. Application Accounts are exempt; alternatively,
  grant the user the **Bypass Direct API Authentication Restriction** role
  permission.
- Application Accounts can't sign in to the UI and don't use a user licence,
  which suits an unattended server.
- Upgraded installations keep their previous value of the setting, but the
  12.2.000007 release notes ask you to review it after upgrading.

See Delinea's documentation on
[Prevent Direct API Authentication](https://docs.delinea.com/online-help/secret-server/admin/app-settings/prevent-direct-api-authentication/index.htm).

## Running the Server

Start the server locally in development mode:

```bash
uv run server.py
```

After `pip install delinea-mcp`, run `delinea-mcp` instead.

On startup the server requests a bearer token and stores it for subsequent API requests.
This project will be expanded to integrate further with the Secret Server API.

## MCP Tools

The server exposes MCP tools for Secret Server, the Delinea Platform
identity directory, and (optionally) StrongDM. Every tool publishes
behaviour annotations (read-only/destructive hints) via `tools/list`.

### ChatGPT / deep-research compatibility

- `search(query)` - unified search returning `{id, title, url}` results; object
  types are limited by the `search_objects` config key (default: secrets only).
- `fetch(id)` - retrieve a single object surfaced by `search`; limited by
  `fetch_objects`.

### Secret Server

- `run_report(sql_query, report_name=None, max_rows=200)` - run a `SELECT`
  as a temporary report through the Secret Server REST API; returns
  `total_rows` and `truncated` alongside the rows. Secret Server accepts only a
  single read-only SELECT statement as custom report SQL (no IF, WHILE,
  BEGIN/END, TRY/CATCH, PRINT, temporary tables or database-qualified names);
  rejected SQL comes back with the Secret Server message in the error.
- `list_example_reports()` - the reference for `run_report`: example queries,
  tables, columns, special fields and the report SQL rules.
- `get_secret(id, summary=False)` - retrieve a secret with password fields
  masked, or its summary.
- `reveal_secret_field(secret_id, field_slug, comment=None)` - only when
  plaintext reveal is enabled (see `secret_reveal_mode`; off by default):
  return one plaintext value after the user approves a confirmation prompt.
- `get_folder(id, all_children=False)` - fetch folder metadata, optionally
  with the full descendant tree.
- `search_secrets(query, lookup=False, take=50, skip=0)` - search or look up secrets.
- `search_folders(query, lookup=False, take=50, skip=0)` - search or look up folders.
- `get_secret_environment_variable(secret_id, environment, comment=None)` -
  load a secret's username and password into environment variables. Over
  `stdio` the server reads the secret and writes a private, self-deleting
  file of shell assignments, returning only its path; nothing else needs to
  be installed. Over HTTP transports it returns a script that calls the API
  (bash needs curl and jq).
- `check_secret_template(template_id)` - fetch secret template details.
- `check_secret_template_field(template_id, field_id)` - check if a template contains a field.
- `get_secret_template_field(field_id)` - retrieve details about a specific secret template field by ID.
- `handle_access_request(request_id, status, response_comment, start_date=None, expiration_date=None)` - approve or deny an access request.
- `get_pending_access_requests()` - list pending access requests.
- `get_inbox_messages(read_status_filter=None, take=20, skip=0)` - retrieve inbox messages.
- `mark_inbox_messages_read(message_ids, read=True)` - mark messages as read or unread.
- `create_secret_with_generated_password(name, secret_template_id, password_field_id, items, folder_id=None, site_id=None, comment=None)` -
  create a secret whose password is generated server-side; only sanitized
  metadata is returned, the value never reaches the model.
- `update_secret_generated_password(secret_id, field_slug, password_field_id, comment=None)` -
  rotate a secret's password server-side without surfacing the value.
- `update_secret_fields(secret_id, field_updates, comment=None, allow_password_fields=False)` -
  read-template → mutate non-password fields → verify flow; refuses
  password-marked fields unless explicitly allowed.
- `set_secret_field_environment_variable(secret_id, field_slug, environment, source="stdin", comment=None)` -
  store a value from the user's machine in a secret field, bypassing the
  model. Over `stdio`, `file:` sources are uploaded by the server directly
  and `env:`/`stdin` sources return a one-line command that runs the
  server's own Python (`delinea_mcp.field_push`); over HTTP transports a
  script is returned.
- `bulk_user_response(user_ids, scenario, comment, confirm=False)` - opinionated
  incident combinator over the bulk-user operations API. Scenarios:
  `compromise`, `offboard`, `unlock`, `reenable`, `force_logout`; requires
  `confirm=True` plus a non-empty audit comment, and previews when unconfirmed.
- `role_management(action, role_id=None, data=None, params=None)` - manage roles.
  `action` may be `list`, `get`, `create` or `update`.
  Pass optional query parameters with `params` when listing roles. Every
  `list` action pages with `take` (default 50, max 500) and `skip`.
  Example: `role_management("update", role_id=3, data={"name": "New Role"})`.
- `user_role_management(action, user_id, role_ids=None)` - assign or remove roles from a user.
  `action` is `get`, `add` or `remove` and `role_ids` is a list of role identifiers for add/remove operations.
- `group_management(action, group_id=None, data=None, params=None)` - handle groups.
  `action` may be `get`, `list`, `create` or `delete`.
  Provide `group_id` for get/delete and `data` when creating a group.
- `folder_management(action, folder_id=None, data=None, params=None)` - manage folders.
  `action` may be `get`, `list`, `create`, `update` or `delete`.
  Provide `folder_id` for get, update or delete and supply `data` when creating or updating a folder.
- `user_group_management(action, user_id, group_ids=None)` - manage group membership for a user.
  `action` is `get`, `add` or `remove`.
  Supply a list of `group_ids` when adding or removing membership.
- `group_role_management(action, group_id, role_ids=None)` - control roles on a group.
  Use `list`, `add` or `remove` actions.
  Provide `role_ids` when adding or removing.
- `health_check()` - query the Secret Server health check endpoint and return the current service status.

### Delinea Platform users and roles

Since v1.0.0 the canonical user tools target the Delinea Platform identity
directory (requires `platform_hostname` + `PLATFORM_SERVICE_*` credentials;
without them the tools return guidance instead of failing):

- `user_management(action, user_id=None, data=None, username=None)` - Platform
  user CRUD. `action` accepts `get`, `create`, `update`, `delete` or `search`.
- `search_users(query)` - search the Platform user directory.
- `platform_role_management(action, role_id=None, data=None, page_size=100, query="%")` -
  Platform role CRUD (`list`, `get`, `create`, `update`, `delete`); role
  mutations are discovery-driven and return guidance on tenants whose API
  scope doesn't expose them.
- `platform_user_role_management(action, role_id, user_principals=None)` -
  `list`, `add` or `remove` users on a Platform role.
- `platform_user_management(...)` - deprecated alias of `user_management`.

### Delinea Platform reports

The Platform report library (Insights > Reports, Fall 2026 release) is exposed
read-only through the same Platform credentials:

- `platform_reports(action, report=None, filters=None, page=1, page_size=50, service=None, query=None, snapshot_id=None)` -
  `list` the library (`query` matches name/description, `service` is an exact
  service name such as `Secret Server` or `Identity`), `describe` a report's
  inputs and result columns, `run` it synchronously for one page of rows, or
  read saved `snapshots` / `snapshot_results`. `filters` for `run` is a list of
  `{"parameter": "<callback>.<key>", "value": "...", "operator": "Contains"}`
  objects using the `parameter` strings returned by `describe`; date inputs take
  ISO-8601 strings on their `start_parameter` / `end_parameter`. Nothing is
  created, scheduled or shared.

### Secret Server local users (legacy)

For SS-only deployments without Platform configured:

- `secretserver_local_user_management(action, user_id=None, data=None, skip=0, take=20, is_exporting=False)` -
  the pre-v1.0.0 Secret Server user operations: `get`, `create`, `update`,
  `delete`, `list_sessions`, `reset_2fa`, `reset_password`, `lock_out`.
  Example: `secretserver_local_user_management("reset_password", user_id=42, data={"newPassword": "Pa$$w0rd"})`.
- `search_secretserver_local_users(query)` - search Secret Server's local user store.

### StrongDM tools (preview)

StrongDM, a Delinea company, will be fully supported in a future release.
The preview tools below aren't part of the 2.0 release surface: they
register only with `strongdm_enabled: true`, haven't been verified against
a live SDM organization, and are excluded from the Claude Code plugin.
Installed via the `strongdm` extra; see
[docs/strongdm.md](docs/strongdm.md) for the full guide. `sdm_search`, `sdm_audit_access`, `sdm_grant_access`
(time-boxed just-in-time or standing grants), `sdm_revoke_access`,
`sdm_user_management` (onboard/offboard flows), `sdm_role_management`,
`sdm_resource_health`, `sdm_access_requests`, `sdm_activity_report`,
`sdm_network_status`. Destructive actions are confirm-gated with audit
comments; ambiguous name matches return candidates without mutating.

Use the server configuration variables described above to authenticate.
Only the tool names listed in `config.json` will be registered.
An empty list enables every tool.

## Use Cases

The documentation covers several workflows for connecting tools to the server:

- [ChatGPT Custom Connector](docs/chatgpt-connector.md)
- [Claude Desktop](docs/claude-desktop.md)
- [Remote Claude Connector](docs/claude-remote-connector.md)
- [openwebui for Administration](docs/openwebui-admin.md)
- [VSCode Copilot](docs/vscode-copilot.md)

## Docker Quickstart

A `Dockerfile` is provided for running the MCP server without installing Python dependencies locally.

1. Build the image:

```bash
docker build -t dev.local/delinea-mcp:latest .
```

2. Run the server (pass your credentials via environment variables):

```bash
docker run --rm -p 8000:8000 \
  -e DELINEA_PASSWORD=<password> \
  -e PLATFORM_SERVICE_PASSWORD=<password> \
  -e DELINEA_DEBUG=1 \
  -v $(pwd)/config.json:/app/config.json:ro \
  -v mcp-data:/app/data \
  dev.local/delinea-mcp:latest
```

Populate `config.json` with your usernames and URLs as shown above.

The container stores `oauth.db` and `jwt.json` in `/app/data`.
Mount a volume (shown as `mcp-data` above) so these files and any HTTPS certificates persist between runs.

Replace `<https://your-secret-server/SecretServer>` with the base URL of your Secret Server instance to avoid connection errors.

The server will start on port `8000` by default using `python server.py`.
Set the `port` option in `config.json` to override the default.
Enable `debug: true` to log all incoming HTTP requests.

## Example Scripts

The `manual_secret_request.py` script shows how to retrieve an OAuth token for a specific secret ID:

```bash
python scripts/manual_secret_request.py <Secret_ID>
```

Set the environment variables `SECRET_USERNAME_<id>` and `SECRET_PASSWORD_<id>` for the secret before running the script.
Optionally set `DELINEA_BASE_URL` to override the default `https://localhost/SecretServer`.

## Running Tests

Run the unit tests with coverage (CI enforces a minimum of 70%):

```bash
pip install -r requirements.txt
coverage run -m pytest -q
coverage report --omit "tests/*"
```

### Live Testing

Some integration tests require valid credentials.
Set the following environment variables and the optional `LIVE_SECRET_ID` before running the suite:

```bash
export DELINEA_PASSWORD=<password>
# Optional secret used by tests/test_live.py
export LIVE_SECRET_ID=<id>
export SECRET_USERNAME_<id>=<secret_username>
export SECRET_PASSWORD_<id>=<secret_password>
```

When these variables are present the live tests will perform real API requests.

## Production Deployment

Dependencies are pinned in `requirements.txt` and releases are tagged using [Semantic Versioning](https://semver.org).
Build the Docker image from a tagged commit and deploy it to your production environment, passing the required environment variables (`DELINEA_USERNAME`, `DELINEA_PASSWORD`, optionally `DELINEA_BASE_URL`).
Optional features rely on additional variables:

- `PLATFORM_SERVICE_PASSWORD` along with `PLATFORM_HOSTNAME`, `PLATFORM_SERVICE_ACCOUNT`, and `PLATFORM_TENANT_ID` enables the user management tools.
- `SDM_API_ACCESS_KEY` and `SDM_API_SECRET_KEY`, with `strongdm_enabled: true`, enable the StrongDM preview tools (requires the `strongdm` extra; see [docs/strongdm.md](docs/strongdm.md)).

When running with OAuth or SSE transport you may need to provide `registration_psk` and configure an `external_hostname` or HTTPS certificate files.

## Repository Layout

- `delinea_mcp/` - package containing the MCP tools: `tools.py` (Secret
  Server), `user_platform_tools.py` (Delinea Platform),
  `secretserver_users.py` (SS-local users), `strongdm_tools.py` (StrongDM,
  optional), plus `transports/` (SSE + streamable HTTP) and `auth/` (the
  embedded OAuth authorization server).
- `delinea_mcp/server.py` - entry point (`delinea-mcp` console script) that
  registers everything with the MCP server; the root `server.py` and
  `delinea_api.py` are backwards-compatible aliases.
- `plugins/delinea/` - the Claude Code plugin and its skills.
- `docs/` - project documentation and the generated `delinea-secret-server-openapi-spec.json`.
- `scripts/` - helper examples including `manual_secret_request.py`.

## Security Considerations

The embedded OAuth authorization server is a convenience for development,
testing and small deployments; larger deployments should front the server
with their organisation's identity provider. Current safeguards:

- Client registration (`/oauth/register`) and the authorization form both
  require the `registration_psk` shared secret (constant-time compared).
- `redirect_uri` values are validated against the URIs registered for the
  client on both the authorize form and the code redirect.
- Access tokens are audience-bound RS256 JWTs; resource discovery follows
  RFC 9728 (`/.well-known/oauth-protected-resource` plus `WWW-Authenticate`
  headers on 401/403 responses).
- Always deploy with TLS (`ssl_keyfile`/`ssl_certfile` or a terminating
  proxy) — bearer tokens and secrets transit every request.
- Scope tool exposure per use case with `enabled_tools`; secret _values_
  are kept out of model context by design (server-side password
  generation, masked password fields, private env-var script handoff,
  password-field guards, and user-approved reveals).

Report vulnerabilities privately as described in [SECURITY.md](SECURITY.md).

## Privacy

The server connects only to the Delinea endpoints you configure and sends
no telemetry. Delinea's privacy policy is at
<https://delinea.com/privacy-policy>.

## Release Notes

See [CHANGELOG.md](CHANGELOG.md) for a summary of the latest features and
roadmap items.

## Roadmap

1. Passthrough authentication
2. OAuth Client ID Metadata Documents (CIMD) client support (Dynamic Client
   Registration is deprecated as of MCP protocol revision 2026-07-28; the
   PSK-gated `/oauth/register` flow keeps working for current connectors)
3. Expand tool coverage on the Delinea Platform and add other Delinea products

## Contributing

Contributions are welcome!
Please open issues or pull requests for any improvements.
All new code should include unit tests and pass the existing test suite.

## License

This project is licensed under the [MIT License](LICENSE).
