* Trump forges deal for 3-month debt ceiling reprieve
* Energy shares gain after crude oil rises on Wednesday
TOKYO, Sept 7 (Reuters) - Japan's Nikkei share average rose on Thursday, pulling away from the previous session's four-month intraday lows after news of an agreement to extend the U.S. debt limit cheered Wall Street.
The Nikkei was up 0.4 percent at 19,430.19 at the end of morning trade.
Major U.S. stock indexes finished higher overnight, with the S&P 500 ending within 15 points of its record closing high, after President Donald Trump forged a surprising deal with Democrats in Congress on Wednesday to extend the U.S. debt limit and provide government funding until Dec. 15.
Investors also pondered news that U.S. Federal Reserve Vice Chair Stanley Fischer will step down from his position in mid-October, potentially accelerating Trump's opportunity to reshape the direction of the central bank.
Trump also said on Wednesday that he would get into "great detail" over the next two weeks on his U.S. tax reform plan, which has been short on specifics.
He also warned on Wednesday that the United States would no longer tolerate North Korea's actions after its sixth nuclear test, but said the use of military force against Pyongyang would not be his "first choice."
"North Korean fears have calmed, and you have some glimmers visible at the end of the tunnel, with Trump talking about tax reform," said Gavin Parry, managing director of Parry International Trading in Hong Kong.
"Talk of tax reform tends to bring a little bit of 'animal spirit' back to markets," he said. "This carries over to Japan, where the Bank of Japan's monetary policy is expected to remain easy, with no tapering on the horizon there."
Data released earlier on Wednesday showed that foreign investors remained net sellers of Japanese stocks for the week ending on Sept. 2.
Energy shares gained, with the Tokyo Stock Exchange's oil and coal subindex up 0.8 percent.
Crude oil prices rose more than 1 percent on Wednesday as strong global refining margins and the reopening of U.S. Gulf Coast refineries after Hurricane Harvey closures provided a more bullish outlook.
Investors remained wary of Hurricane Irma, which could strike Florida over the weekend.
McDonald's Holdings Company Japan rose 1.3 percent, after the fast food restaurant operator said its August same-store sales rose 14.5 percent from a year earlier.
Construction-related shares gained, with Komatsu Ltd and Hitachi Construction Machinery Co both rising 2.7 percent.
But small-to-mid cap stocks largely lagged broader gains, with the Mothers market of start-up shares down 0.4 percent, moving back toward more than four-month lows plumbed on Wednesday.
Toshiba Corp fell 0.9 percent after Kyodo News reported that Western Digital Corp was in talks to gain voting rights of just under 16 percent in Toshiba's memory chip unit on the assumption that it will be listed in the future. Toshiba is now aiming to reach a final agreement with the Western Digital-backed consortium by Sept. 13, said sources briefed on the talks.
The broader Topix was 0.6 higher at 1,601.35 and the JPX-Nikkei Index 400 also added 0.6 percent to 14,193.17. (Reporting by Lisa Twaronite; Editing by Sam Holmes)