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
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,16 @@ pids/
tmp/
temp/
.vercel

# Credentials, never commit. This repo's remote is a PUBLIC fork
# (appressman/GoHighLevel-MCP), so a stray `git add -A` here publishes secrets.
# CREDENTIALS.md sat untracked and unguarded from before 2026-08-11; it was
# never committed (verified against full history on all branches), so this is a
# guard rather than a cleanup.
CREDENTIALS.md
credentials.md
*.credentials
*credentials*.json
secrets*
*.pem
*.key
3 changes: 3 additions & 0 deletions .mcp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"mcpServers": {}
}
18 changes: 16 additions & 2 deletions package-lock.json

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

8 changes: 5 additions & 3 deletions src/tools/social-media-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,13 @@ export class SocialMediaTools {
postType: params.postType
});

const posts = response.data?.results?.posts || response.data?.posts || [];
const count = response.data?.results?.total ?? response.data?.count ?? posts.length;
return {
success: true,
posts: response.data?.posts || [],
count: response.data?.count || 0,
message: `Found ${response.data?.count || 0} social media posts`
posts,
count,
message: `Found ${count} social media posts`
};
}

Expand Down
8 changes: 6 additions & 2 deletions src/types/ghl-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2689,8 +2689,12 @@ export interface GHLAttachTikTokAccountRequest {

// Response Interfaces
export interface GHLSearchPostsResponse {
posts: GHLSocialPost[];
count: number;
posts?: GHLSocialPost[];
count?: number;
results?: {
posts: GHLSocialPost[];
total: number;
};
}

export interface GHLGetPostResponse {
Expand Down