Skip to content

Add NOTICE file and rename project mcp-poc → IMCP2 - #68

Merged
aterga merged 3 commits into
mainfrom
claude/dfinity-repo-publishing-4bv23x
Jul 21, 2026
Merged

aterga merged 3 commits into
mainfrom
claude/dfinity-repo-publishing-4bv23x

Conversation

@aterga

@aterga aterga commented Jul 20, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Two publishing follow-ups (follow-up to #67, tracked by IC-2042):

  1. NOTICE — the Apache-2.0 copyright/attribution notice (Copyright 2026 DFINITY Stiftung, matching LICENSE).
  2. Rename the project mcp-poc → IMCP2 everywhere in the repo.

Naming convention used for the rename

  • Machine identifiers → imcp2 (lowercase, idiomatic): Cargo crate + binary name, the systemd unit (mcp-poc.service → imcp2.service), binary path (/opt/imcp2/imcp2), and references in the Dockerfile, deploy/native/*, Caddyfile, and the deploy-workflow comment. This matches the existing repo name, /opt/imcp2, and the sibling imcp-status service.
  • Display name → IMCP2 (uppercase): the README title and NOTICE.

Cargo warns on uppercase crate names, and an IMCP2.service / /opt/imcp2/IMCP2 binary would look odd next to the existing lowercase infra — hence the split. If you'd rather have literal IMCP2 (or all-lowercase imcp2) for the identifiers too, say so and I'll adjust.

Files touched

Cargo.toml, Cargo.lock, Dockerfile, README.md, NOTICE, .github/workflows/deploy.yml, deploy/native/{build.sh,deploy.sh,Caddyfile,README.md}, and deploy/native/mcp-poc.service → imcp2.service.

Deployment note

The systemd unit changed name (mcp-poc.service → imcp2.service). deploy.sh now handles this automatically: if the old mcp-poc.service is present on the host, it is stopped, disabled, and removed before imcp2.service is enabled/started, so the two never contend for :8000. The step is guarded by systemctl cat (no-op on fresh hosts) and idempotent — no manual operator action required.

Testing

  • cargo check --locked --all-targets → builds the renamed crate as imcp2 (bin "imcp2"); Cargo.lock is consistent. Only warnings are pre-existing dead-code (tool_router, ok), unrelated to the rename.
  • No source code references the package/binary name (no CARGO_PKG_NAME/CARGO_BIN_NAME dependencies), so runtime behavior is unchanged.
  • bash -n deploy/native/deploy.sh passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF

claude added 2 commits July 20, 2026 17:33
Apache-2.0 attribution notice for the project (Copyright 2026 DFINITY
Stiftung), matching the LICENSE holder.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
Rename the project everywhere:
- Crate + binary name: mcp-poc -> imcp2 (Cargo.toml, Cargo.lock)
- systemd unit: mcp-poc.service -> imcp2.service; binary path
  /opt/imcp2/imcp2; deploy/build scripts, Dockerfile, Caddyfile, CI comment
- Display name in docs: README title and NOTICE now read "IMCP2"

Lowercase `imcp2` is used for machine identifiers (crate/binary/unit/paths) to
stay idiomatic and match the existing repo name and /opt/imcp2 + imcp-status
infra; "IMCP2" is used as the human-facing display name.

Verified: `cargo check --locked --all-targets` builds the renamed crate
(bin "imcp2"); the only warnings are pre-existing dead-code ones.

Note for deployment: the systemd unit changed name, so the next deploy installs
imcp2.service while the old mcp-poc.service keeps running until it is stopped
and disabled on the host (systemctl disable --now mcp-poc).

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
@aterga aterga changed the title Add NOTICE copyright file Add NOTICE file and rename project mcp-poc → IMCP2 Jul 20, 2026
@aterga
aterga requested a review from Copilot July 20, 2026 17:46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Apache-2.0 attribution notice material and completes a repo-wide rename from mcp-poc to IMCP2 / imcp2, updating build, deploy, and documentation references to match the new crate/binary/service identifiers.

Changes:

  • Added a NOTICE file with Apache-2.0 attribution/copyright notice.
  • Renamed the Rust package/binary from mcp-poc to imcp2 (plus display-name updates to IMCP2 in docs).
  • Updated Docker, native deploy scripts/systemd unit, Caddy config, and the deploy workflow to use the new identifiers.

Reviewed changes

Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates project display name and service-name references in docs.
NOTICE Adds Apache-2.0 notice/attribution file for publishing.
Dockerfile Renames runtime binary path and container entrypoint to imcp2.
deploy/native/README.md Updates native deployment documentation to the new app/service name.
deploy/native/imcp2.service Renames ExecStart target to /opt/imcp2/imcp2 and updates unit description.
deploy/native/deploy.sh Updates deploy flow to ship/restart imcp2 and install imcp2.service.
deploy/native/Caddyfile Updates comments referring to the service name.
deploy/native/build.sh Updates cross-build output and copied binary name to imcp2.
Cargo.toml Renames the Rust package to imcp2.
Cargo.lock Updates the root package entry name to imcp2.
.github/workflows/deploy.yml Updates workflow comments to reflect the new deployment target name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread deploy/native/deploy.sh Resolved
Stop, disable, and remove the old mcp-poc.service during deploy if it is still
present, so the renamed imcp2.service doesn't contend with it for :8000 on hosts
first deployed before the rename. Guarded by `systemctl cat`, so it is a no-op
on fresh hosts and idempotent on repeat deploys — no manual operator step needed.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01865bH6b5MHB9BhA2QUjepF
@aterga
aterga marked this pull request as ready for review July 21, 2026 08:03
Copilot AI review requested due to automatic review settings July 21, 2026 08:03
@aterga
aterga merged commit a1fc969 into main Jul 21, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 2 comments.

Comment thread deploy/native/deploy.sh
[ -x "$repo_root/build-out/imcp2" ] || { echo "build-out/imcp2 missing — run deploy/native/build.sh first"; exit 1; }

echo ">> staging $REMOTE_DIR"
$SSH "sudo install -d -o \$(id -un) -g \$(id -gn) $REMOTE_DIR"
Comment thread NOTICE
Comment on lines +9 to +10
This product includes software developed at DFINITY Stiftung
(https://dfinity.org/).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants