Metadata-Version: 2.5
Name: illume-mcp
Version: 1.0.0
Summary: Local stdio launcher that connects MCP clients to a hosted Illume server
Project-URL: Homepage, https://illume.tejasnasa.me
Project-URL: Documentation, https://illume.tejasnasa.me/docs/mcp/server
Project-URL: Source, https://github.com/tejasnasa/illume/tree/main/mcp-local
Project-URL: Issues, https://github.com/tejasnasa/illume/issues
Author: Tejas Nasa
License-Expression: MIT
License-File: LICENSE
Keywords: code-search,illume,mcp,model-context-protocol,onboarding
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Requires-Python: >=3.10
Requires-Dist: mcp<3,>=2.3.0
Description-Content-Type: text/markdown

# illume-mcp

<!-- mcp-name: io.github.tejasnasa/illume -->

A local stdio launcher for the hosted [Illume](https://illume.tejasnasa.me) MCP server. It is for
MCP clients that can only start a local command and cannot connect to a remote HTTP server or set
an `Authorization` header. The launcher connects to the hosted server with your token and forwards
everything: tools, resources, prompts and progress notifications pass through unchanged, so the
tool list is the hosted tool list. Nothing runs locally besides the proxy.

## Setup

Create a token in Illume under Settings, then register the launcher with your client. The token is
read from the `ILLUME_MCP_TOKEN` environment variable only; there is deliberately no `--token`
flag, because a token on the command line shows up in the process list and in shell history.

```bash
ILLUME_MCP_TOKEN=ilm_... uvx illume-mcp
```

`uvx` runs the latest release from PyPI without installing anything globally. `pipx run illume-mcp`
works the same way, and `pip install illume-mcp` puts an `illume-mcp` command on your path.

In a client config that launches stdio servers (Claude Desktop, Cursor, and similar):

```json
{
  "mcpServers": {
    "illume": {
      "command": "uvx",
      "args": ["illume-mcp"],
      "env": { "ILLUME_MCP_TOKEN": "ilm_..." }
    }
  }
}
```

With Claude Code:

```bash
claude mcp add illume --env ILLUME_MCP_TOKEN=ilm_... -- uvx illume-mcp
```

Clients that can connect to a remote server and send a header do not need the launcher at all:

```bash
claude mcp add --transport http illume https://illume-api.tejasnasa.me/mcp \
  --header "Authorization: Bearer ilm_..."
```

## Options

| Option  | Default                             | Meaning                               |
| ------- | ----------------------------------- | ------------------------------------- |
| `--url` | `https://illume-api.tejasnasa.me`   | The Illume API; `/mcp` is appended.   |

## Errors

The launcher exits non-zero and explains on stderr when `ILLUME_MCP_TOKEN` is not set, or when the
server answers 401 because the token is invalid, revoked or expired. The token is never printed.

## Releasing

A release publishes the package to PyPI and lists the server in the
[MCP Registry](https://registry.modelcontextprotocol.io) as `io.github.tejasnasa/illume`. Both happen
in `.github/workflows/publish-mcp.yml`:

1. Set the same version in `__version__` (`src/illume_mcp/__init__.py`) and in both `version` fields
   of `server.json`.
2. Commit, then push a matching tag: `git tag mcp-v1.0.1 && git push origin mcp-v1.0.1`.

The workflow refuses to publish when the tag, the package version and `server.json` disagree. PyPI
accepts the upload through trusted publishing, so no token is stored in the repository.

## Development

The package depends only on `mcp` and imports nothing from the Illume server. Its tests start the
real server against the test stack, so they run from the server's environment:

```bash
make test-infra
cd server && uv run pytest ../mcp-local/tests
```
