MCPcopy Create free account
hub / github.com/Silentely/eSIM-Tools / generateOAuthProtectedResource

Function generateOAuthProtectedResource

scripts/generate-agent-metadata.js:129–144  ·  view source on GitHub ↗

* 生成 OAuth Protected Resource Metadata (RFC 9728)

()

Source from the content-addressed store, hash-verified

127 * 生成 OAuth Protected Resource Metadata (RFC 9728)
128 */
129function generateOAuthProtectedResource() {
130 return JSON.stringify({
131 resource: `${SITE_URL}`,
132 authorization_servers: [
133 'https://id.giffgaff.com'
134 ],
135 scopes_supported: [
136 'openid',
137 'profile'
138 ],
139 bearer_methods_supported: [
140 'header'
141 ],
142 resource_documentation: `${SITE_URL}/docs/api`
143 }, null, 2);
144}
145
146/**
147 * 生成 MCP Server Card (SEP-2127)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected