MCP pieces
Update MCP Piece
Get Started
Endpoints
- Projects
- User Invitations
- Project Members
- Connections
- Flows
- Flow Runs
- Sample Data
- Pieces
- Project Releases
- Global Connections
- Git Sync
- Folders
- Flow Templates
- MCP Servers
- MCP pieces
MCP pieces
Update MCP Piece
Update MCP tool status
POST
/
v1
/
mcp-pieces
/
{id}
curl --request POST \
--url https://cloud.activepieces.com/api/v1/mcp-pieces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "ENABLED",
"connectionId": "<string>"
}'
{
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"projectId": "<string>",
"token": "<string>",
"pieces": [
{
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"pieceName": "<string>",
"connectionId": "<string>",
"mcpId": "<string>",
"status": "ENABLED",
"connection": {
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"externalId": "<string>",
"displayName": "<string>",
"type": "OAUTH2",
"pieceName": "<string>",
"projectIds": [
"<string>"
],
"platformId": "<string>",
"scope": "PROJECT",
"status": "ACTIVE",
"ownerId": "<string>",
"owner": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"status": "ACTIVE",
"externalId": "<string>",
"lastChangelogDismissed": "<string>",
"platformId": "<string>",
"platformRole": "ADMIN",
"lastName": "<string>",
"created": "<string>",
"updated": "<string>"
},
"metadata": {}
}
}
]
}
Authorizations
Use your api key generated from the admin console
Path Parameters
Response
200 - application/json
Default Response
Available options:
ENABLED
App connection is a connection to an external app.
Available options:
OAUTH2
Available options:
PROJECT
Available options:
ACTIVE
Available options:
ACTIVE
Available options:
ADMIN
curl --request POST \
--url https://cloud.activepieces.com/api/v1/mcp-pieces/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"status": "ENABLED",
"connectionId": "<string>"
}'
{
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"projectId": "<string>",
"token": "<string>",
"pieces": [
{
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"pieceName": "<string>",
"connectionId": "<string>",
"mcpId": "<string>",
"status": "ENABLED",
"connection": {
"id": "<string>",
"created": "<string>",
"updated": "<string>",
"externalId": "<string>",
"displayName": "<string>",
"type": "OAUTH2",
"pieceName": "<string>",
"projectIds": [
"<string>"
],
"platformId": "<string>",
"scope": "PROJECT",
"status": "ACTIVE",
"ownerId": "<string>",
"owner": {
"id": "<string>",
"email": "<string>",
"firstName": "<string>",
"status": "ACTIVE",
"externalId": "<string>",
"lastChangelogDismissed": "<string>",
"platformId": "<string>",
"platformRole": "ADMIN",
"lastName": "<string>",
"created": "<string>",
"updated": "<string>"
},
"metadata": {}
}
}
]
}