Skip to content

Missing tools when isAdmin is not passed #39

@islam3zzat

Description

@islam3zzat

Describe the bug

When configuring the MCP with isAdmin set to false some tools don't show up.

It looks that for many resources, no actions are exposed when the isAdmin is not passed

e.g

To Reproduce

npx -y @commercetools/mcp-essentials \
--tools=standalone-price.read,standalone-price.create,standalone-price.update \
--authType=client_credentials \
--clientId=CLIENT_ID \
--clientSecret=CLIENT_SECRET \
--projectKey=PROJECT_KEY \
--authUrl=AUTH_URL \
--apiUrl=API_URL
Image

When passing all tools

npx -y @commercetools/mcp-essentials \
--tools=all \
--authType=client_credentials \
--clientId=CLIENT_ID \
--clientSecret=CLIENT_SECRET \
--projectKey=PROJECT_KEY \
--authUrl=AUTH_URL \
--apiUrl=API_URL

Only subset of tools are available to the client
Image

Expected behavior

Enabled tools get exposed to the client

Code snippets

OS

macOs

Language version

TS

Library version

@commercetools/mcp-essentials

API version

2.3.0"

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions