Open-source social media scheduler built for AI agents and the teams behind them. Create, schedule and publish posts to every network through MCP or the REST API, or write them yourself in a composer your team will love.
PHP ai-agentsblueskyfacebookinstagramlaravellinkedinmastodonmcpmcp-serveropen-sourcerest-apiself-hostedsocial-mediasocial-media-managementsocial-media-schedulerthreadstiktokvuejsxyoutube
Fix MCP OAuth discovery with upstream authentication metadata (#439)
Diego Morales2fd2e99f2e6f
diff --git a/composer.json b/composer.jsonindex ccf5e5b64..d4c100b20 100644--- a/composer.json+++ b/composer.json@@ -42,7 +42,7 @@"laravel/cashier": "^16.2","laravel/framework": "^13.0","laravel/horizon": "^5.45",- "laravel/mcp": "^0.9.1",+ "laravel/mcp": "^1.1","laravel/nightwatch": "^1.22","laravel/passport": "^13.7","laravel/reverb": "^1.0",diff --git a/composer.lock b/composer.lockindex 24fbca4a3..81a1d6514 100644--- a/composer.lock+++ b/composer.lock@@ -4,7 +4,7 @@"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies","This file is @generated automatically"],- "content-hash": "e3a23bc95c6ce1228c92160553619e17",+ "content-hash": "03ab80c010a4fa91c4de382f6572bbff","packages": [{"name": "aws/aws-crt-php",@@ -2066,30 +2066,31 @@},{"name": "laravel/boost",- "version": "v2.5.0",+ "version": "v2.10.3","source": {"type": "git","url": "https://github.com/laravel/boost.git",- "reference": "f6b054dcbc0aacf1d187128edf7d917c6d99792a"+ "reference": "75c269a8a53e931c7252e7cd562e1a209356a7c6"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/boost/zipball/f6b054dcbc0aacf1d187128edf7d917c6d99792a",- "reference": "f6b054dcbc0aacf1d187128edf7d917c6d99792a",+ "url": "https://api.github.com/repos/laravel/boost/zipball/75c269a8a53e931c7252e7cd562e1a209356a7c6",+ "reference": "75c269a8a53e931c7252e7cd562e1a209356a7c6","shasum": ""},"require": {- "guzzlehttp/guzzle": "^7.9",+ "guzzlehttp/guzzle": "^7.9|^8.0","illuminate/console": "^11.45.3|^12.41.1|^13.0","illuminate/contracts": "^11.45.3|^12.41.1|^13.0","illuminate/routing": "^11.45.3|^12.41.1|^13.0","illuminate/support": "^11.45.3|^12.41.1|^13.0",- "laravel/mcp": "^0.7.1|^0.8.0|^0.9.0",+ "laravel/mcp": "^0.7.1|^0.8.0|^0.9.0|^1.0","laravel/prompts": "^0.3.10","laravel/roster": "^1.0.0","php": "^8.2"},"require-dev": {+ "jasonmccreary/double": "^1.0","laravel/pint": "^1.27.0","mockery/mockery": "^1.6.12","orchestra/testbench": "^9.15.0|^10.6|^11.0",@@ -2128,7 +2129,7 @@"issues": "https://github.com/laravel/boost/issues","source": "https://github.com/laravel/boost"},- "time": "2026-08-04T21:10:39+00:00"+ "time": "2026-10-07T19:07:19+00:00"},{"name": "laravel/cashier",@@ -2528,16 +2529,16 @@},{"name": "laravel/mcp",- "version": "v0.9.1",+ "version": "v1.1.0","source": {"type": "git","url": "https://github.com/laravel/mcp.git",- "reference": "a08884d79a95c5143498507aec5badf751cdbec4"+ "reference": "a40cc388c11d5629977d159fd11ddda84885f639"},"dist": {"type": "zip",- "url": "https://api.github.com/repos/laravel/mcp/zipball/a08884d79a95c5143498507aec5badf751cdbec4",- "reference": "a08884d79a95c5143498507aec5badf751cdbec4",+ "url": "https://api.github.com/repos/laravel/mcp/zipball/a40cc388c11d5629977d159fd11ddda84885f639",+ "reference": "a40cc388c11d5629977d159fd11ddda84885f639","shasum": ""},"require": {@@ -2555,6 +2556,7 @@"symfony/process": "^7.4.5|^8.0.5"},"require-dev": {+ "jasonmccreary/double": "^1.0","laravel/pint": "^1.20","orchestra/testbench": "^9.15|^10.8|^11.0","pestphp/pest": "^3.8.5|^4.3.2",@@ -2598,7 +2600,7 @@"issues": "https://github.com/laravel/mcp/issues","source": "https://github.com/laravel/mcp"},- "time": "2026-07-21T13:23:52+00:00"+ "time": "2026-10-20T13:58:04+00:00"},{"name": "laravel/nightwatch",diff --git a/tests/Feature/Mcp/McpToolCalledTrackingTest.php b/tests/Feature/Mcp/McpToolCalledTrackingTest.phpindex ae103a799..61a6720c6 100644--- a/tests/Feature/Mcp/McpToolCalledTrackingTest.php+++ b/tests/Feature/Mcp/McpToolCalledTrackingTest.php@@ -136,7 +136,7 @@ test('a method that is not a string still gets the JSON-RPC error, not a server'Authorization' => "Bearer {$this->mcpToken}",'Accept' => 'application/json, text/event-stream',])->postJson(route('mcp.trypost'), ['jsonrpc' => '2.0', 'id' => 1, 'method' => $method])- ->assertOk()+ ->assertBadRequest()->assertJsonPath('error.code', -32600);Queue::assertNotPushed(TrackMcpToolCalled::class);diff --git a/tests/Feature/Mcp/OAuthRegistrationTest.php b/tests/Feature/Mcp/OAuthRegistrationTest.phpindex 4b20faaf3..e94a490ce 100644--- a/tests/Feature/Mcp/OAuthRegistrationTest.php+++ b/tests/Feature/Mcp/OAuthRegistrationTest.php@@ -93,6 +93,28 @@ test('oauth discovery metadata is never rate limited', function (string $routeNa'nested authorization server' => ['mcp.oauth.authorization-server.nested', ['path' => 'mcp/trypost']],]);+test('oauth discovery advertises the authentication method used by public clients', function (string $routeName, array $parameters) {+ $registration = $this->postJson(route('mcp.oauth.register'), [+ 'client_name' => 'Discovery Test Client',+ 'redirect_uris' => ['https://client.example/callback'],+ 'grant_types' => ['authorization_code'],+ 'response_types' => ['code'],+ 'token_endpoint_auth_method' => 'none',+ ])->assertCreated()->assertJsonPath('token_endpoint_auth_method', 'none');++ $metadata = $this->getJson(route($routeName, $parameters))+ ->assertOk()+ ->assertJsonPath('token_endpoint', route('passport.token'))+ ->assertJsonPath('registration_endpoint', route('mcp.oauth.register'));++ expect($metadata->json('token_endpoint_auth_methods_supported'))+ ->toBeArray()+ ->toContain($registration->json('token_endpoint_auth_method'));+})->with([+ 'authorization server' => ['mcp.oauth.authorization-server', []],+ 'nested authorization server' => ['mcp.oauth.authorization-server.nested', ['path' => 'mcp/trypost']],+]);+test('mcp custom schemes config lists every supported native agent', function () {expect(config('mcp.custom_schemes'))->toEqual(mcpNativeAgentSchemes());});