Configuring Team Foundation Server to use a Remote WSS/SPS Installation

Here is an article on how to use an existing or remote instance of SharePoint with Team Foundation Server

https://msdn2.microsoft.com/en-us/teamsystem/aa718901.aspx