Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ permissions: {}
jobs:
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '-rc') && !contains(github.ref, '-alpha') && !contains(github.ref, '-beta') }}
permissions:
contents: write
steps:
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mia-platform/console-mcp-server",
"version": "1.2.2",
"version": "1.3.0-rc.4",
"mcpName": "io.github.mia-platform/console-mcp-server",
"description": "Mia-Platform Console MCP Server",
"main": "mcp-server/index.js",
Expand Down
2 changes: 2 additions & 0 deletions src/tools/configuration/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function addConfigurationCapabilities (server: McpServer, client: IAPICli

const revisions = await client.getConfigurationRevisions(projectId)
return {
structuredContent: revisions,
content: [
{
type: 'text',
Expand Down Expand Up @@ -74,6 +75,7 @@ export function addConfigurationCapabilities (server: McpServer, client: IAPICli

const config = await client.getConfiguration(projectId, refId)
return {
structuredContent: config,
content: [
{
type: 'text',
Expand Down
9 changes: 9 additions & 0 deletions src/tools/deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ export function addDeployCapabilities (server: McpServer, client: IAPIClient) {

const data = await client.compareProjectEnvironmentFromRevisionForDeploy(projectId, environment, revision, refType)
return {
structuredContent: {
lastDeployedManifests: data.lastDeployedManifests,
revisionManifests: data.revisionManifests,
},
content: [
{
type: 'text',
Expand Down Expand Up @@ -113,6 +117,11 @@ export function addDeployCapabilities (server: McpServer, client: IAPIClient) {
const status = await client.waitProjectDeployForCompletion(projectId, pipelineId)

return {

structuredContent: {
id: status.id,
status: status.status,
},
content: [
{
type: 'text',
Expand Down
6 changes: 6 additions & 0 deletions src/tools/governance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient
}
})
return {
structuredContent: { projects: mappedData },
content: [
{
type: 'text',
Expand Down Expand Up @@ -98,6 +99,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient
await assertAiFeaturesEnabledForProject(client, project)

return {
structuredContent: project,
content: [
{
type: 'text',
Expand Down Expand Up @@ -181,6 +183,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient
})

return {
structuredContent: { tenants: filteredTenants },
content: [
{
type: 'text',
Expand Down Expand Up @@ -224,6 +227,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient
}
})
return {
structuredContent: { templates: mappedBlueprint },
content: [
{
type: 'text',
Expand Down Expand Up @@ -259,6 +263,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient

const data = await client.companyIAMIdentities(tenantId, identityType)
return {
structuredContent: { identities: data },
content: [
{
type: 'text',
Expand Down Expand Up @@ -295,6 +300,7 @@ export function addGovernanceCapabilities (server: McpServer, client: IAPIClient

const data = await client.companyAuditLogs(tenantId, from, to)
return {
structuredContent: { auditLogs: data },
content: [
{
type: 'text',
Expand Down
5 changes: 5 additions & 0 deletions src/tools/marketplace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export function addMarketplaceCapabilities (server: McpServer, client: IAPIClien
}
})
return {
structuredContent: { marketplaceItems: mappedData },
content: [
{
type: 'text',
Expand Down Expand Up @@ -91,6 +92,7 @@ export function addMarketplaceCapabilities (server: McpServer, client: IAPIClien

const data = await client.marketplaceItemVersions(marketplaceItemTenantId, marketplaceItemId)
return {
structuredContent: { versions: data },
content: [
{
type: 'text',
Expand Down Expand Up @@ -131,6 +133,7 @@ export function addMarketplaceCapabilities (server: McpServer, client: IAPIClien
marketplaceItemVersion,
)
return {
structuredContent: data,
content: [
{
type: 'text',
Expand Down Expand Up @@ -220,6 +223,7 @@ export function addMarketplaceCapabilities (server: McpServer, client: IAPIClien
}, [])

return {
structuredContent: { itemTypeDefinitions: mappedData },
content: [
{
type: 'text',
Expand Down Expand Up @@ -259,6 +263,7 @@ export function addMarketplaceCapabilities (server: McpServer, client: IAPIClien
unset(data, 'metadata.publisher.image')

return {
structuredContent: data,
content: [
{
type: 'text',
Expand Down
2 changes: 2 additions & 0 deletions src/tools/runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ export function addRuntimeCapabilities (server: McpServer, client: IAPIClient) {

const pods = await client.listPods(projectId, environmentId)
return {
structuredContent: { pods },
content: [
{
type: 'text',
Expand Down Expand Up @@ -74,6 +75,7 @@ export function addRuntimeCapabilities (server: McpServer, client: IAPIClient) {

const logs = await client.podLogs(projectId, environmentId, podName, containerName, 100)
return {
structuredContent: { logs },
content: [
{
type: 'text',
Expand Down
Loading