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

Method getProfileBySlug

server/src/db/member-db.ts:108–115  ·  view source on GitHub ↗

* Get profile by slug

(slug: string)

Source from the content-addressed store, hash-verified

106 * Get profile by slug
107 */
108 async getProfileBySlug(slug: string): Promise<MemberProfile | null> {
109 const result = await query<MemberProfile>(
110 'SELECT * FROM member_profiles WHERE slug = $1',
111 [slug]
112 );
113
114 return result.rows[0] ? this.deserializeProfile(result.rows[0]) : null;
115 }
116
117 /**
118 * Get profile by primary brand domain

Callers 6

setupAuthRoutesMethod · 0.95
createAdminToolHandlersFunction · 0.95
handleToolCallMethod · 0.80
createMemberToolHandlersFunction · 0.80
member-db.test.tsFile · 0.80

Calls 1

deserializeProfileMethod · 0.95

Tested by

no test coverage detected