Skip to content

feat(cli): add create scaffolding command#554

Open
FiammaMuscari wants to merge 3 commits intobasementstudio:canaryfrom
FiammaMuscari:cli-create-command
Open

feat(cli): add create scaffolding command#554
FiammaMuscari wants to merge 3 commits intobasementstudio:canaryfrom
FiammaMuscari:cli-create-command

Conversation

@FiammaMuscari
Copy link
Copy Markdown

Closes #539

Adds create scaffolding for tools, resources, and prompts, plus README docs for the new CLI usage.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 12, 2026

@FiammaMuscari is attempting to deploy a commit to the xmcp Team on Vercel.

A member of the Team first needs to authorize it.

@FiammaMuscari
Copy link
Copy Markdown
Author

FiammaMuscari commented Apr 12, 2026

Added CLI documentation here:

README

It covers:

  • create tool
  • create resource
  • create prompt
  • expected output structure

@0xKoller
Copy link
Copy Markdown
Collaborator

Hey @FiammaMuscari ! Thanks for the PR! 👍

Could you add this behavior to the website docs?

If you want to check how it looks on the website later, go to the root directory, run pnpm website, and you should be good to go.

Don’t forget to add a Basehub token. You can get one by registering here and generating an API token.

Comment thread packages/cli/src/commands/create.ts Outdated
Comment thread packages/cli/src/commands/create.ts Outdated
Comment thread packages/cli/src/commands/create.ts Outdated
@FiammaMuscari
Copy link
Copy Markdown
Author

Addressed requested changes:

  • Removed unnecessary annotations from boilerplate templates
  • Fixed schema handling to avoid runtime errors when empty
  • Applied fix consistently across tool, resource, and prompt scaffolding
  • Added CLI documentation to website docs

Verified locally via website build

Copy link
Copy Markdown
Collaborator

@0xKoller 0xKoller left a comment

Choose a reason for hiding this comment

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

Everything looks good. One thing to change is in the docs: when it mentions the scaffolding, it would be nice to describe the result in a more explicit way.

Right now, it says that it is a file with the expected structure and boilerplate. The issue is that the user doesn’t know what the structure or boilerplate looks like until they run the command.

@FiammaMuscari
Copy link
Copy Markdown
Author

Updated the docs to make the scaffold output explicit

@0xKoller
Copy link
Copy Markdown
Collaborator

0xKoller commented Apr 15, 2026

LGTM!

Remember to resolve pending merge conflicts

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.

[Feature]: Add CLI scaffolding commands to create tools, resources, and prompts

2 participants