Skip to content

feat: mcpp-first README + project templates (openai default); release prep 0.2.7#17

Merged
Sunrisepeak merged 3 commits into
mainfrom
feat/mcpp-templates-readme
Jun 10, 2026
Merged

feat: mcpp-first README + project templates (openai default); release prep 0.2.7#17
Sunrisepeak merged 3 commits into
mainfrom
feat/mcpp-templates-readme

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

Summary

  • README (en/zh/zh-hant): now leads with the mcpp ecosystem workflow — mcpp new myagent --template llmapi, mcpp add llmapi — mirroring imgui-m's style. The xmake package usage moved out of the README into docs/{en,zh,zh-hant}/xmake.md; getting-started rewritten mcpp-first.

  • Project templates (consumed by mcpp new <name> --template llmapi[:<tmpl>], mcpp ≥ 0.0.48):

    template description
    openai (default) minimal one-shot OpenAI chat
    chat interactive streaming chat CLI
    anthropic Claude via AnthropicConfig
    deepseek OpenAI-compatible endpoint via baseUrl

    Generated projects pin {{self.version}} under [dependencies.mcpplibs] so the scaffold version-tracks the library.

  • Release prep: mcpp.toml version → 0.2.7; workspace mcpp pin 0.0.13 → 0.0.53 (0.0.13 is no longer resolvable from the xim index); mcpp.lock regenerated (lock v2).

Verification

  • mcpp build green locally on mcpp 0.0.53 (gcc 16.1.0).
  • mcpp test fails identically on origin/main (pre-existing, CI only gates mcpp build).
  • Note: mcpp new --template llmapi additionally needs an mcpp-side fix for namespaced template packages (fetch loses the mcpplibs namespace) — tracked separately in mcpp-community/mcpp.

Part of the llmapi mcpp-ecosystem closed loop: release 0.2.7 → mcpp-index entry → mcpp-res (gitcode CN mirror) → mcpp new xxx --template llmapi verified end-to-end.

README now leads with the mcpp ecosystem workflow (mcpp new --template
llmapi / mcpp add llmapi) like imgui-m; the xmake package usage moved
from README into docs/{en,zh,zh-hant}/xmake.md and getting-started is
rewritten mcpp-first. All three README languages stay in sync.
templates/openai (default): minimal one-shot OpenAI chat.
templates/chat: interactive streaming chat CLI.
templates/anthropic: Claude via AnthropicConfig.
templates/deepseek: OpenAI-compatible endpoint via baseUrl.
Generated projects pin {{self.version}} under [dependencies.mcpplibs],
so the scaffold can never drift from the library version it shipped
with. Consumed by mcpp package templates:
`mcpp new app --template llmapi[:chat|anthropic|deepseek]` /
`mcpp new --list-templates llmapi`.
mcpp 0.0.13 is no longer resolvable from the xim index locally; 0.0.53
is the current release (and the floor for package templates is 0.0.48).
mcpp.lock regenerated by mcpp 0.0.53 (lock v2, tinyhttps 0.2.3).
@Sunrisepeak Sunrisepeak merged commit 8e7e09d into main Jun 10, 2026
1 check passed
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.

1 participant