MCP toolsAccount and sitesUpdated

Change your portfolio

mttr_portfolio_setYour claimed sites

This page as Markdown

What does mttr_portfolio_set do?

Publishes or hides your portfolio, sets a display name and a home site that says who is behind it, and names each site on it or keeps it to its code. A key may make this call on the sites it has claimed.

When to use it

  • You want to share your portfolio, or stop sharing it.
  • You want one site on it by its code instead of its name.

What you ask

You say“Publish my portfolio under the name North Studio.”

Your assistant calls
mttr_portfolio_set({
  publish: "publish",
  name: "Hollow Creek Studio",
  home: "example.com",
  site: "example.com",
  shown: "named"
})
ArgumentTypeNeededWhat it is
publishTrue or falseNoTrue to publish, false to hide.
nameTextNoA display name, at most 40 characters.
homeTextNoOne of the person's sites proved by DNS or a file, as a domain.
siteTextNoA site in the portfolio, to set how it is shown.
shownOne of theseNonamed, or code for its code on the profile. Give it with site.namedcode

What comes back

  • The portfolio as Your portfolio answers it, with the change made.
What it answersSample
SettingNow
PublishedYes
Display nameNorth Studio
Home sitenorth.example
example.comNamed

Made-up sites and figures, to show the shape of the answer. The answer itself is JSON.

Over HTTP

It is POST /api/v1/portfolio, with your key as a bearer token:

HTTP
curl -X POST "https://mttr.si/api/v1/portfolio" \
  -H "Authorization: Bearer $MTTR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"publish":"publish","name":"Hollow Creek Studio","home":"example.com","site":"example.com","shown":"named"}'

When it fails

WhenStatusWhat to do
Your assistant has no key yet401 over MCPSign up with mttr_signup, then connect again with the key it gives.

Every error’s wording is in the API reference.

The call in full, with its HTTP address, each argument’s type, who may make it and the call in four languages, is mttr_portfolio_set in the API reference.

Goes with

Sources