Habitat's road to release: 07 bridging traditional SaaS apps
content
$type
pub.leaflet.content
pages
0
id
01a0b69d-41f1-7114-84d6-1b6375bf8e0d
$type
pub.leaflet.pages.linearDocument
blocks
0
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
facets
0
index
byteEnd
220
byteStart
190
features
0
uri
https://habitat.leaflet.pub/3muprwpqccc2g
$type
pub.leaflet.richtext.facet#link
plaintext
Habitat's is bringing the affordances of atproto to organizations. With atproto, users access to all their personal data through a single identity and with Habitat, users can access all the data across their organization in one place. One of the many benefits of this model is tha…
1
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
However, existing organizations don't currently have all their data in atproto repos tied to identity. Existing organizational data sits across SaaS apps, emails, and files. For a member of an organization to reference data from an agent, they need to wrangle all these different …
2
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
This week, we're taking the first steps towards bridging that gap. In order to make Habitat the single entry point to your organization's data, we need link it to your existing identities across other SaaS apps. As a proof of concept for this, with developed an MCP gateway.
There are many examples of existing services that offer similar functionality (Cloudflare, Composio). Basically, an MCP Gateway merges multiple MCP server connections into one so a user only needs to authenticate once on the server, rather than once per MCP client.
4
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
The motivation behind this is that in Habitat, your organization's data server is the central access point to atproto data but what if we also made it the central access point to all types of data! We added support for an organization admin to connect MCP servers that all members…
So how do MCP clients connect to Habitat? Though MCP supports OAuth, it has its own idiosyncrasies that makes it incompatible with atproto OAuth directly. While atproto uses draft-parecki-oauth-client-id-metadata-document, MCP uses dynamic client registration. While atproto uses …
9
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
facets
0
index
byteEnd
123
byteStart
91
features
0
uri
https://pear.habitat.network/mcp
$type
pub.leaflet.richtext.facet#link
plaintext
To resolve these discrepancies, we added new OAuth resource and authorization endpoints to https://pear.habitat.network/mcp so that MCP clients can connect to it. You can try this out in any agent with MCP capabilities.
Here's the exciting part though: while we need slightly different entry points between the two OAuth flavors, they can still issue the same type of token. This means that apps built on Habitat can use their existing user credentials to now access MCP servers that are already auth…
12
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
In the future, we can extend account linking beyond MCP and let Habitat be a proxy directly to external SaaS APIs. An example of this would be Chalk getting access to Google Calendar to link meeting notes.
13
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
plaintext
Through this proxy model, every app built on Habitat can access data from external SaaS apps as well, similar to how in atproto any app can request access to any collection (solving the data cold-start problem). We believe the next generation of collaboration requires breaking do…
14
$type
pub.leaflet.pages.linearDocument#block
block
$type
pub.leaflet.blocks.text
facets
0
index
byteEnd
83
byteStart
44
features
0
uri
https://home.habitat.network/opensocial
$type
pub.leaflet.richtext.facet#link
plaintext
You can play around with the MCP Gateway at https://home.habitat.network/opensocial by creating an organization and navigating to its MCP servers tab.