MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / getProfile

Method getProfile

server/src/db/community-db.ts:209–218  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

207 }
208
209 async getProfile(userId: string): Promise<CommunityProfile | null> {
210 const result = await query<CommunityProfile>(
211 `SELECT workos_user_id, slug, headline, bio, avatar_url, expertise, interests,
212 linkedin_url, twitter_url, github_username, is_public, open_to_coffee_chat, open_to_intros,
213 city
214 FROM users WHERE workos_user_id = $1`,
215 [userId]
216 );
217 return result.rows[0] || null;
218 }
219
220 getProfileCompleteness(user: {
221 headline?: string | null;

Callers 4

updateProfileMethod · 0.95
checkAndAwardBadgesMethod · 0.95
createCommunityRoutersFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected