Tolgee MCP by usefulapi

v1.2.1
io.usefulapi/tolgee Checked 3 days ago Published 1 day ago

Read projects, keys, translations and tasks; set translations and review states in Tolgee.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

tolgee_get_current_user Get the current user

Return the Tolgee account behind the token: name, username and email. Good first call to confirm which account is connected. Tolgee API: GET /v2/user.

tolgee_list_projects List projects

List the Tolgee projects this token can access, with ids, names, base language and settings. Call this first to find a projectId. Tolgee API: GET /v2/projects.

ParameterTypeDescription
pageintegerPage number, starting at 0.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_get_project Get a project

Return one project: name, slug, base language, namespace and branching settings, and the caller's permission. Tolgee API: GET /v2/projects/{projectId}.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).

tolgee_list_languages List project languages

List the languages of a project with their tags (for example en, de-DE), names and which one is the base language. Tolgee API: GET /v2/projects/{projectId}/languages.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
pageintegerPage number, starting at 0.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_list_namespaces List namespaces

List the namespaces of a project (keys can be grouped in namespaces). Tolgee API: GET /v2/projects/{projectId}/namespaces.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
pageintegerPage number, starting at 0.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_list_branches List branches

List the branches of a project (when branching is on, keys and translations differ per branch). Tolgee API: GET /v2/projects/{projectId}/branches.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
pageintegerPage number, starting at 0.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_list_members List project members

List the people with access to a project, with their permissions and roles. Tolgee API: GET /v2/projects/{projectId}/users.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
pageintegerPage number, starting at 0.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_list_keys List keys

List the localization keys of a project, one page at a time, with names, namespaces and descriptions. Tolgee API: GET /v2/projects/{projectId}/keys.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
branchstringBranch name, when the project uses branching.
pageintegerPage number, starting at 0.
sizeintegerItems per page (1-100).

tolgee_get_key Get a key

Return one localization key with its id, name, namespace, description and character limit. Tolgee API: GET /v2/projects/{projectId}/keys/{id}.

ParameterTypeDescription
keyId *integerKey id (from tolgee_list_keys).
projectId *integerTolgee project id (from tolgee_list_projects).

tolgee_search_translations Search translations

Find keys with their translations, filtered by text, key name, namespace or missing language. Returns one cursor page; pass the returned cursor to get the next page. Tolgee API: GET /v2/projects/{projectId}/translations.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
branchstringBranch name, when the project uses branching.
cursorstringCursor from the previous page, to get the next page.
filterKeyNamestringOnly keys with exactly this name. Use search for a text match.
filterNamespacestringOnly keys in this namespace. Send an empty string for the default namespace.
filterUntranslatedInLangstringOnly keys with no translation in this language tag.
languagesstringComma-separated language tags to return, for example en,de.
searchstringText to search for.
sizeintegerItems per page (1-100).

tolgee_list_tasks List tasks

List translation tasks of a project, with state, language, assignees and progress. Filter by state or language. Tolgee API: GET /v2/projects/{projectId}/tasks.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
branchstringBranch name, when the project uses branching.
filterLanguagestringLanguage ids to keep, comma-separated numbers from tolgee_list_languages (not tags).
filterStatestringTask states to keep: NEW, IN_PROGRESS, FINISHED or CANCELED (comma-separated for several).
pageintegerPage number, starting at 0.
sizeintegerItems per page (1-100).

tolgee_get_task Get a task

Return one translation task by its number: name, language, due date, assignees and progress. Tolgee API: GET /v2/projects/{projectId}/tasks/{taskNumber}.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
taskNumber *integerTask number (from tolgee_list_tasks).

tolgee_set_translations Set translations

Create a key if it is missing, then set its translation text for the given languages. Existing text in those languages is overwritten. Other languages stay as they are. Tolgee API: POST /v2/projects/{projectId}/translations.

ParameterTypeDescription
key *stringKey name, for example checkout.button.pay.
projectId *integerTolgee project id (from tolgee_list_projects).
translations *objectMap of language tag to text, for example {"en": "Pay now", "de": "Jetzt zahlen"}.
branchstringBranch name, when the project uses branching.
namespacestringNamespace of the key (default namespace when omitted).

tolgee_set_translation_state Set translation state

Set one translation to TRANSLATED or REVIEWED. Use the translation id from tolgee_search_translations. Tolgee API: PUT /v2/projects/{projectId}/translations/{translationId}/set-state/{state}.

ParameterTypeDescription
projectId *integerTolgee project id (from tolgee_list_projects).
state *stringThe new state.
translationId *integerTranslation id (from tolgee_search_translations).