Metadata-Version: 2.5
Name: elm-mcp
Version: 0.4.0
Summary: MCP server for IBM Engineering Lifecycle Management (ELM) via OSLC REST API
Author-email: Claudio Ferreira Filho <filhocf@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: doors-next,elm,etm,jazz,mcp,oslc,rtc
Classifier: Development Status :: 3 - Alpha
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27.0
Requires-Dist: mcp<3,>=2.3
Requires-Dist: pydantic-settings>=2.0.0
Requires-Dist: pydantic>=2.0.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
Requires-Dist: pytest-cov>=6.0.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Requires-Dist: respx>=0.22.0; extra == 'dev'
Requires-Dist: ruff>=0.8.0; extra == 'dev'
Description-Content-Type: text/markdown

<h1 align="center">elm-mcp</h1>

<p align="center"><strong>Bring IBM Engineering Lifecycle Management to your AI agent.</strong><br>
An MCP server that reads and writes requirements, work items and test cases in IBM ELM
over the open OSLC REST protocol — so an agent can work the ALM as a first-class tool.</p>

<p align="center">
  <a href="https://pypi.org/project/elm-mcp/"><img src="https://img.shields.io/pypi/v/elm-mcp" alt="PyPI"></a>
  <img src="https://img.shields.io/badge/python-3.10%2B-blue" alt="Python 3.10+">
  <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="License: MIT"></a>
  <a href="https://github.com/filhocf/elm-mcp/actions/workflows/ci.yml"><img src="https://github.com/filhocf/elm-mcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
</p>

---

**elm-mcp** exposes IBM ELM's three OSLC domains — **DOORS Next (RM)**, **EWM/RTC (CCM)** and
**ETM (QM)** — as MCP tools. An AI assistant (Kiro, Claude, OpenCode, Hermes, …) can then list
projects, query and create requirements, work items and test cases, and move them through their
workflow, without a human clicking through the Jazz web UI.

It is an **independent implementation** over the open [OSLC](https://open-services.net/) REST
protocol — **not a fork** of IBM software, and it does **not** bundle any IBM client library.
The package is **vendor-neutral**: no organization-specific host, project or namespace is baked in;
those come from your own configuration at runtime.

## Why

ALM tools like IBM ELM hold the official record — requirements, backlog, tests, traceability — but
they live behind a web UI and OSLC APIs that an agent cannot use out of the box. elm-mcp is the
bridge: it lets an agentic workflow read context from the ALM and write artifacts back to it, over
the Model Context Protocol, so the agent and the traditional process share one source of truth.

## Install

Run it with [`uv`](https://docs.astral.sh/uv/) — no clone, no manual virtualenv:

```bash
uvx elm-mcp            # runs the MCP server (stdio)
```

Or install from PyPI:

```bash
pip install elm-mcp
```

## Configure

One-time credential setup (interactive):

```bash
elm-mcp login
```

Or via environment variables:

```bash
export ELM_URL=https://elm.company.com
export ELM_USER=your_username
export ELM_PASSWORD=secret
```

### Register with your MCP client

```json
{
  "mcpServers": {
    "elm": {
      "command": "uvx",
      "args": ["elm-mcp"]
    }
  }
}
```

## Tools

**Read:** `list_projects` · `search_requirements` · `get_requirement` · `list_workitems` ·
`get_workitem` · `search_testcases` · `list_iterations` · `get_plan_items`

**Write (CCM work items):** `create_workitem` · `update_workitem` · `add_child_workitem` ·
`transition_workitem`

Full reference with signatures: [docs/TOOLS.md](docs/TOOLS.md). Query syntax and examples:
[docs/USAGE.md](docs/USAGE.md).

```python
# Example: create a task and move it to "start"
create_workitem(project="MY PROJECT (KEY)", title="Wire up OSLC discovery", type="task")
transition_workitem(id="12345", action="start")
```

## How it works

```
MCP client → elm-mcp (MCPServer, stdio) → OSLC discovery + CRUD → IBM ELM (RM / CCM / QM)
```

Architecture, the generic-core vs. per-project adaptation layer, and design decisions are documented
under [docs/](docs/): [ARCHITECTURE](docs/ARCHITECTURE.md) · [ADRs](docs/adr/) ·
[roadmap](docs/roadmap.md).

## Develop

```bash
uv sync --group dev
uv run pytest tests/ -v --cov=elm_mcp
uvx ruff@latest check src/ tests/
```

Conventions (language, tenant-neutrality, EARS requirements, traceability) are in
[docs/CONVENTIONS.md](docs/CONVENTIONS.md).

## Status

Early but structured. Core read + CCM work-item write is working; requirement write (RM), discovery
tools, OSLC links, test write (QM) and reporting are on the [roadmap](docs/roadmap.md).
Tested against IBM ELM 7.0.3.

## License

[MIT](LICENSE)
