Skip to content

Commit ecbbc91

Browse files
authored
fix(mcp): get_sdk_config base64 decodes for android/ios now. (#8966)
1 parent 4f54e5d commit ecbbc91

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
- [fixed] Handle foreign key constraint error as FailedPrecondition.
55
- [Added] Support for creating Firestore Enterprise databases using `firestore:databases:create --edition enterprise`. (#8952)
66
- [Added] Support for Firestore Enterprise database index configurations. (#8939)
7+
- [fixed] MCP: The `get_sdk_config` tool now properly returns decoded file content for Android and iOS.

src/mcp/tools/core/get_sdk_config.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,17 @@ export const get_sdk_config = tool(
4343
`Could not find an app for platform '${inputPlatform}' in project '${projectId}'`,
4444
);
4545
const sdkConfig = await getAppConfig(appId, platform);
46-
// TODO: return as string with comment about filename for ios and android
46+
if ("configFilename" in sdkConfig) {
47+
return {
48+
content: [
49+
{
50+
type: "text",
51+
text: `SDK config content for \`${sdkConfig.configFilename}\`:\n\n\`\`\`\n${Buffer.from(sdkConfig.configFileContents, "base64").toString("utf-8")}\n\`\`\``,
52+
},
53+
],
54+
};
55+
}
56+
4757
return toContent(sdkConfig, { format: "json" });
4858
},
4959
);

0 commit comments

Comments
 (0)