@aventurevc/mcp-server 0.8.237 → 0.8.239

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{f as e}from"./env-CpA6E7ay.js";import{w as t}from"./tool-policy-C37kGt8n.js";import{a as n,o as r,t as i}from"./logging-BHp-5JwI.js";import{c as a,r as o}from"./openapi-call-B9zrl6Yl.js";import{t as s}from"./provider-catalog-k5VPfOoO.js";var c=5e3;function l(){let e,t;return async()=>(e===void 0&&(e=await(t??=u().finally(()=>{t=void 0}))),e)}async function u(){let l=`getAuthProviderCatalog`,u=await a(e(),{method:`GET`,path:o(l,{}),headers:{},operationId:l,timeoutMs:c},s).catch(e=>{r({component:`aventure-mcp-server`,event:`oauth_catalog_unavailable`,message:i(e),fields:{requestId:t()},error:e})});if(u===void 0)return;if(!u.ok||u.redirect){r({component:`aventure-mcp-server`,event:`oauth_catalog_unavailable`,message:`the API did not return an OAuth provider catalog`,fields:{requestId:t()}});return}let d=u.data.oauthClient;if(d==null){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published no OAuth client; retrying on the next request that needs one`,fields:{requestId:t()}});return}let f=d.mcpResource;if(f==null){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published an OAuth client without an MCP resource indicator, so this server has no resource to advertise or audience to verify; retrying on the next request that needs one`,fields:{requestId:t()}});return}if(!URL.canParse(f)){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published an unusable MCP resource indicator: ${f}`,fields:{requestId:t()}});return}let p=new URL(f);return n({component:`aventure-mcp-server`,event:`oauth_discovery_ready`,fields:{requestId:t(),resource:p.href,authorizationServer:d.authorizationServer}}),{client:d,resourceUrl:p}}export{l as catalogOAuthDiscovery};
1
+ import{f as e}from"./env-CpA6E7ay.js";import{w as t}from"./tool-policy-C37kGt8n.js";import{a as n,o as r,t as i}from"./logging-BHp-5JwI.js";import{c as a,r as o}from"./openapi-call-N8RraQ85.js";import{t as s}from"./provider-catalog-k5VPfOoO.js";var c=5e3;function l(){let e,t;return async()=>(e===void 0&&(e=await(t??=u().finally(()=>{t=void 0}))),e)}async function u(){let l=`getAuthProviderCatalog`,u=await a(e(),{method:`GET`,path:o(l,{}),headers:{},operationId:l,timeoutMs:c},s).catch(e=>{r({component:`aventure-mcp-server`,event:`oauth_catalog_unavailable`,message:i(e),fields:{requestId:t()},error:e})});if(u===void 0)return;if(!u.ok||u.redirect){r({component:`aventure-mcp-server`,event:`oauth_catalog_unavailable`,message:`the API did not return an OAuth provider catalog`,fields:{requestId:t()}});return}let d=u.data.oauthClient;if(d==null){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published no OAuth client; retrying on the next request that needs one`,fields:{requestId:t()}});return}let f=d.mcpResource;if(f==null){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published an OAuth client without an MCP resource indicator, so this server has no resource to advertise or audience to verify; retrying on the next request that needs one`,fields:{requestId:t()}});return}if(!URL.canParse(f)){r({component:`aventure-mcp-server`,event:`oauth_discovery_disabled`,message:`the API published an unusable MCP resource indicator: ${f}`,fields:{requestId:t()}});return}let p=new URL(f);return n({component:`aventure-mcp-server`,event:`oauth_discovery_ready`,fields:{requestId:t(),resource:p.href,authorizationServer:d.authorizationServer}}),{client:d,resourceUrl:p}}export{l as catalogOAuthDiscovery};